Answered step by step
Verified Expert Solution
Question
1 Approved Answer
List of Tasks Let the point charge actually be an electron. Make sure that you use appropriate units. The E and B fields have to
List of Tasks
Let the point charge actually be an electron.
Make sure that you use appropriate units.
The and fields have to be inputted. The vectors should be entered as two vectors with three components.
Your code should contain a function cross that calculates the cross product of two vectors.
The main body of your code should then calculate the trajectory using the Newtonian kinematics.
Your simulation of the trajectory should run for a large enough number of steps to see enough of the trajectory; therefore, choose your
time step accordingly.
Your code should produce an output file, Sdat, with three columns and the coardinates of the particle at each time step
You may take initial position vector and initial velocity vector components as vec and vec
Allowed Libraries
math
random
mathplotlib.pyplot or any other equivalent plotting library
for constants, see the links on top.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started