Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Put the following lines into a glowscript script and run them: theta = 5.8484 particle_position = vector(1.0,1.0,0) obslocation=vector(cos(theta), sin(theta), e) r=obslocation-particle_position rmag-sqrt(r.x**2+r.y**2+r.z**2) rhat=r/rmag Check all
Put the following lines into a glowscript script and run them: theta = 5.8484 particle_position = vector(1.0,1.0,0) obslocation=vector(cos(theta), sin(theta), e) r=obslocation-particle_position rmag-sqrt(r.x**2+r.y**2+r.z**2) rhat=r/rmag Check all of the variables that are vectors: True: obslocation True: r False: theta True: rhat True: particle_position False: rmag You are correct. Your receipt no. is 148-3681 Previous Tries (c.) What is the length of the vector r? Feel free to put a print statement in your code. Also note that length and magnitude are synonyr Submit Answer Incorrect. Tries 3/99 Previous Tries (d.) What is the length of the vector rhat? Look at the line of code where rhat is defined. Notice that rhat is r divided by its length. Submit Answer Incorrect. Tries 1/99 Previous Tries
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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