If you like #randomwalks and #histograms - I have this for you. An animated histogram using #WebVPython
If you like #randomwalks and #histograms - I have this for you. An animated histogram using #WebVPython
There isn't a built in histogram in #WebVPython - here's how to make one yourself (bonus, normal distribution function included). #python
#randomwalks are just fun to model in #python. Here's a very detailed post about how to make it work in #webvpython. Oh, technically, it could be #physics too.
https://rjallain.medium.com/modeling-random-walks-in-python-for-fun-and-no-profit-3938fb833f3b
In case you have not already heard, Bruce Sherwood is stepping down as lead developer for VPython and Web VPython. Steve Spickelmire will now fill that role. #VPython #WebVPython #GlowScript
New #python #physics video. Here I attempt to model a chain sliding off a table using #WebVPython.
New #physics #lagrangian video - a chain sliding off a table (yes, animated in #webvpython of course)
New #python video - using #webVpython to animate a class question about circular motion.
New #python video - modeling the motion of a wolf chasing a hare with #webVpython
(code included)
https://youtu.be/fJaTv_BNSwA
Modeling a wave pulse on a string with #python and #physics #finitedifference #webvpython
For my #physics students, here are all the #python tools you need using #WebVPython
#WebVPython doesn't have a built in way to find the best fit line - so I built a least squares function. #python
One of the best things about #python and #WebVPython is the ability to create visualizations. Here is how to show the shape of the magnetic field around a wire.
From Bruce Sherwood:
“Ruth Chabay has updated the VPython documentation for the new group option. In the Help, use the search option to find "group", or go directly to
https://www.glowscript.org/docs/VPythonDocs/group.html
The new group feature is not yet available in the vpython module used with installed Python.”
Because this is brand new, the documentation is not yet in the Help, but here are two sample programs whose code you can examine to get the main ideas:
https://www.glowscript.org/#/user/Bruce_Sherwood/folder/Examples/program/group-car
https://www.glowscript.org/#/user/Bruce_Sherwood/folder/Examples/program/group-miscellany
From Bruce Sherwood:
“Thanks to major help from Steve Spicklemire, plus useful comments by Ruth Chabay, there is a new feature in Web VPython (not yet available in the vpython module for installed Python). You can now create a "group" and place objects in that group. You can then move all the grouped objects together, with a single statement. In addition to moving the group, you can rotate the group, make all the objects invisible or visible, or change the colors of the objects.” #WebVPython
From Bruce Sherwood just now:
“Many thanks to Ruth Chabay for creating much better, searchable VPython documentation!
(It is possible that you might need to clear the browser cache to get the Help.)”
In Web VPython, the helix object has a new feature. You can set the property ccw = True to get counterclockwise coils. Setting cow = False gives clockwise coils. #ITeachPhysics #WebVPython
New #physics #python video - sometimes it's easier to use physics to create a nice visualization of the electric field. Here's how to do that with #WebVpython (code included)
New #physics #python video - going over the important parts of python lists for numerical calculations. Note: this is for #WebVPython - not using numpy arrays.
https://youtu.be/qlJbfvLOU00
Here's my #python tutorial to make an animated electromagnetic wave using #WebVPython and #phyiscs