Docsity

Physics 241 Assignment 1: Fibonacci Numbers, Radian Conversion, and Projectile Motion, Assignments of Physics

Toggle sidebar
bg1
PHYSICS 241 -- Assignment 1 -- Due Thursday 9/4/2008.
Read Pratap Pages 1-43. It is recommended that you read the book in front of a
computer and try a number of the examples as they are given.
[Note that you are reading 6 lessons which Pratap estimates take 15 minutes each.]
After you have gotten some hands on Matlab experience, you should be able to do
the following:
1) Write a script to calculate the first "n" Fibonacci numbers.
2) Show that in the limit of large "n" the ratio of successive Fibonacci numbers
converges to the golden ratio.
(The property of the golden ratio X is that X-1=1/X).
3) Write a script to convert an array of numbers in degrees to an array of numbers
in radians. Demonstrate that it works by using it to plot the sine of the integers
from 0 to 720 (after they have been converted to radians).
4) Using the simple formulae you know for projectile motion, plot the altitude vs.
time of a ball with an initial upward velocity of 20 m/s. Read from your graph at
what time it will land and check your result with an analytical solution. Select
your time so that you can see the landing time accurate to within 0.02 seconds.
---------------------------------------------
Submit the scripts (or m-files) you create for problems 1-4.
The script from Problem 4 should create a figure. Print the figure to a jpeg
file as follows:
>> print('problem4','-djpeg')
This would create a file called 'problem4.jpg'

Partial preview of the text

Download Physics 241 Assignment 1: Fibonacci Numbers, Radian Conversion, and Projectile Motion and more Assignments Physics in PDF only on Docsity!

PHYSICS 241 -- Assignment 1 -- Due Thursday 9/4/2008. Read Pratap Pages 1-43. It is recommended that you read the book in front of a computer and try a number of the examples as they are given. [Note that you are reading 6 lessons which Pratap estimates take 15 minutes each.] After you have gotten some hands on Matlab experience, you should be able to do the following:

  1. Write a script to calculate the first "n" Fibonacci numbers.
  2. Show that in the limit of large "n" the ratio of successive Fibonacci numbers converges to the golden ratio. (The property of the golden ratio X is that X-1=1/X).
  3. Write a script to convert an array of numbers in degrees to an array of numbers in radians. Demonstrate that it works by using it to plot the sine of the integers from 0 to 720 (after they have been converted to radians).
  4. Using the simple formulae you know for projectile motion, plot the altitude vs. time of a ball with an initial upward velocity of 20 m/s. Read from your graph at what time it will land and check your result with an analytical solution. Select your time so that you can see the landing time accurate to within 0.02 seconds.

Submit the scripts (or m-files) you create for problems 1-4. The script from Problem 4 should create a figure. Print the figure to a jpeg file as follows:

print('problem4','-djpeg') This would create a file called 'problem4.jpg'