Path Travelled by Electric Charge in a Variable Magnetic Field

Used Glowscript IDE (for VPython), to create a simulation program of the path traveled by an electric charge in a magnetic field, then observe the change in its path when the magnetic field changes gradually as the particle moves in its path. To calculate the velocity and position of the particle in each time interval while accounting for the change in acceleration used the Rungee-Kutta method.

View my project