Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

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