Answered step by step
Verified Expert Solution
Link Copied!

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 E and B fields have to be inputted. The vectors should be entered as two vectors with three components.
Your code should contain a function cross(v1,w2) 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, S23.dat, with three columns x,y and z(the coordinates of the particle at each time step).
You may take initial position vector and initial velocity vector components as vec(r)0=(0,0,0) and vec(v)0=(0,0,0).
Allowed Libraries
math
randor
mathplotlib.pyplot or any other equivalent plotting library
for constants, see the links on top.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions