# 0.10 Phy1070: motion -- uniform and relative velocity  (Page 4/13)

 Page 4 / 13

Perform the arithmetic

Then Listing 1 declares a variable named time and sets its value equal to distance divided by velocity . Once again, note the treatment of the units in the comments, showing that the units for the result of the division are hours.

Display the results

Finally, Listing 1 calls the document.write method several times in succession to display the results shown in Figure 1 .

## An exercise on average velocity

A hockey puck is struck by a player causing it to travel northeast at a uniform velocity of 50 feet per second for 15 feet, at which point it is struck by another player.

When struck by the second player, the direction of motion is changed to northwest witha uniform velocity of 60 feet per second.

It is stopped by a third player after traveling 20 feet in the northwest direction.

• What is the time required for the puck to complete each leg of its journey?
• What is the average velocity of the puck from the start to the end of its journey?

Tactile graphics

An svg file named Phy1070a1.svg is provided for the creation of a tactile displacement vector diagram for this scenario. The table of key-value pairs forthis file is provided in Figure 2 . Some of the values shown are based on a JavaScript solution to the problem shown later in Figure 4 .

Figure 2 . Key-value pairs for the image in Phy1070a1.svg.
```m: An exercise on average velocity n: 25 ft @ 39.5 ft/sec 98.1 degreeso: 15 ft @ 50 ft/sec 45 degrees p: 20 ft @ 60 ft/sec 135 degreesq: File: Phy1070a1.svg r: As: C t: Bu: Displacement vector A B v: Displacement vector B Cw: Resultant vector A C```

The image contained in this file is shown in Figure 3 for the benefit of your assistant who will manually emboss the diagram. Anon-mirror-image version is shown in Figure 14 .

Figure 3 . Mirror image contained in the file named Phy1070a1.svg. Let's write a script to solve the problem

Please copy the code from Listing 2 into an html file and open it in your browser.

Listing 2 . An exercise on average velocity.
```<!---------------- File JavaScript02.html ---------------------><html><body><script language="JavaScript1.3">document.write("Start Script</br>"); //The purpose of this function is to receive the adjacent// and opposite side values for a right triangle and to // return the angle in degrees in the correct quadrant.function getAngle(x,y){ if((x == 0)&&(y == 0)){ //Angle is indeterminate. Just return zero.return 0; }else if((x == 0)&&(y>0)){ //Avoid divide by zero denominator.return 90; }else if((x == 0)&&(y<0)){ //Avoid divide by zero denominator.return -90; }else if((x<0)&&(y>= 0)){ //Correct to second quadrantreturn Math.atan(y/x)*180/Math.PI + 180; }else if((x<0)&&(y<= 0)){ //Correct to third quadrantreturn Math.atan(y/x)*180/Math.PI + 180; }else{//First and fourth quadrants. No correction required. return Math.atan(y/x)*180/Math.PI;}//end else }//end function getAngle//Compute the time required to traverse each leg. Identify // the two legs as A and B.var vecAmag = 15;//displacement in feet var vecAang = 45;//displacement angle in degreesvar vecAvel = 50;//velocity magnitude in feet per second var timeA = vecAmag/vecAvel;//feet/(feet/second) = secondsvar vecBmag = 20;//displacement in feet var vecBang = 135;//displacement angle in degreesvar vecBvel = 60;//velocity magnitude in feet per second var timeB = vecBmag/vecBvel;//feet/(feet/second) = seconds//Compute the overall displacement //Compute the horizontal and vertical components// of each vector. var vecAh = vecAmag*Math.cos(vecAang*Math.PI/180);var vecAv = vecAmag*Math.sin(vecAang*Math.PI/180); var vecBh = vecBmag*Math.cos(vecBang*Math.PI/180);var vecBv = vecBmag*Math.sin(vecBang*Math.PI/180); //Compute the sums of the horizontal and vertical// components from the two vectors to get the // horizontal and vertical component of the// resultant vector. var vecResultH = vecAh + vecBh;var vecResultV = vecAv + vecBv; //Use the Pythagorean theorem to compute the magnitude of the// resultant vector in feet. var vecResultMag = Math.sqrt(Math.pow(vecResultH,2) +Math.pow(vecResultV,2)); //Compute the angle of the resultant vector in degrees.vecResultAng = getAngle(vecResultH,vecResultV); var totalTime = timeA + timeB;//secondsvar vecVelMag = vecResultMag/totalTime;//feet/second var vecVelAng = vecResultAng;//degreesdocument.write("Time for leg A = " + timeA.toFixed(2) + " seconds</br>"); document.write("Time for leg B = " + timeB.toFixed(2) +" seconds</br>"); document.write("Displacement magnitude = " +vecResultMag.toFixed(2) + " feet</br>"); document.write("Displacement angle = " +vecResultAng.toFixed(2) + " degrees</br>"); document.write("Total time = " + totalTime.toFixed(2) +" seconds</br>"); document.write("Average velocity magnitude = " +vecVelMag.toFixed(2) + " feet/second</br>"); document.write("Average velocity angle = " +vecVelAng.toFixed(2) + " degrees</br>"); document.write("End Script");</script></body></html>```

#### Questions & Answers

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
Adin
why?
Adin
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
Maciej
characteristics of micro business
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
NANO
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
NANO
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
SUYASH Reply
for screen printed electrodes ?
SUYASH
What is lattice structure?
s. Reply
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
Sanket Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

### Read also:

#### Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Accessible physics concepts for blind students. OpenStax CNX. Oct 02, 2015 Download for free at https://legacy.cnx.org/content/col11294/1.36
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Accessible physics concepts for blind students' conversation and receive update notifications? By Anonymous User       By By By Dravida Mahadeo-J...