<< Chapter < Page | Chapter >> Page > |
Then those values are displayed in the browser window as shown in Figure 16 .
Now let's fix the problem
We said earlier that we can cause the tent pole to be in equilibrium by adding one additional 10-newton force at an angle of 315 degrees. We can easilyaccomplish this by making the changes shown in Figure 17 to the code in Listing 1 .
Figure 17 . Changes to Listing #1. . |
---|
Change the code that reads:
while(ang<= 270){
to readwhile(ang<= 315){ |
This change will cause one more 10-newton force vector at an angle of 315 degrees to be added to the sum of the vectors.
Make the change
Make that change and open the modified html file in your browser. When you do, the text shown in Figure 18 should appear in your browser window.
Figure 18 . Screen output for modified Listing #1. |
---|
Start Script
The resultant is:Magnitude = 0.00
Angle = 198.43End Script |
Magnitude of resultant vector is zero
The significant thing about Figure 18 is that the magnitude of the resultant vector is now 0, which satisfies the requirement for equilibrium stated earlier .
Pay no attention to the angle shown in Figure 18 . It is meaningless. It is not possible to compute a valid angle for a vector that has a magnitude ofzero.
I encourage you to run the script and perform the calculations that I have presented in this lesson to confirm that you get the same results. Experiment withthe code and the calculations, making changes, and observing the results of your changes. Make certain that you can explain why your changes behave as they do.
I will publish a module containing consolidated links to resources on my Connexions web page and will update and add to the list as additional modulesin this collection are published.
This section contains a variety of miscellaneous information.
Financial : Although the openstax CNX site makes it possible for you to download a PDF file for the collection that contains thismodule at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, you should beaware that some of the HTML elements in this module may not translate well into PDF.
You also need to know that Prof. Baldwin receives no financial compensation from openstax CNX even if you purchase the PDF version of the collection.
In the past, unknown individuals have copied Prof. Baldwin's modules from cnx.org, converted them to Kindle books, and placed them for sale on Amazon.com showing Prof. Baldwin as the author.Prof. Baldwin neither receives compensation for those sales nor does he know who doesreceive compensation. If you purchase such a book, please be aware that it isa copy of a collection that is freely available on openstax CNX and that it was made and published without the prior knowledge of Prof. Baldwin.
Affiliation : Prof. Baldwin is a professor of Computer Information Technology at Austin Community College in Austin, TX.
-end-
Notification Switch
Would you like to follow the 'Accessible physics concepts for blind students' conversation and receive update notifications?