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
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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

What concepts should be included in a financial literacy scorecard?

Answered: 1 week ago

Question

5. How would you describe your typical day at work?

Answered: 1 week ago

Question

7. What qualities do you see as necessary for your line of work?

Answered: 1 week ago