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,v2) 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 coardinates 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
random
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 to Expert-Tailored 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

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

I receive the training I need to do my job well.

Answered: 1 week ago