<< Chapter < Page Chapter >> Page >

Screen output

The text shown in Figure 5 should appear in your browser window when the html file is opened in your browser.

Figure 5 . Screen output for Listing #3.
Start Script t = 0.00 sec h = 6 ft v = 100.00 ft/sec a = 0.00 ft/(sec*sec)t = 0.25 sec h = 30 ft v = 95.97 ft/sec a = 0.00 ft/(sec*sec) t = 0.50 sec h = 52 ft v = 87.92 ft/sec a = -32.20 ft/(sec*sec)t = 0.75 sec h = 72 ft v = 79.87 ft/sec a = -32.20 ft/(sec*sec) t = 1.00 sec h = 90 ft v = 71.82 ft/sec a = -32.20 ft/(sec*sec)t = 1.25 sec h = 106 ft v = 63.77 ft/sec a = -32.20 ft/(sec*sec) t = 1.50 sec h = 120 ft v = 55.72 ft/sec a = -32.20 ft/(sec*sec)t = 1.75 sec h = 132 ft v = 47.67 ft/sec a = -32.20 ft/(sec*sec) t = 2.00 sec h = 142 ft v = 39.62 ft/sec a = -32.20 ft/(sec*sec)t = 2.25 sec h = 149 ft v = 31.57 ft/sec a = -32.20 ft/(sec*sec) t = 2.50 sec h = 155 ft v = 23.52 ft/sec a = -32.20 ft/(sec*sec)t = 2.75 sec h = 159 ft v = 15.47 ft/sec a = -32.20 ft/(sec*sec) t = 3.00 sec h = 161 ft v = 7.42 ft/sec a = -32.20 ft/(sec*sec)t = 3.25 sec h = 161 ft v = -0.63 ft/sec a = -32.20 ft/(sec*sec) t = 3.50 sec h = 159 ft v = -8.68 ft/sec a = -32.20 ft/(sec*sec)t = 3.75 sec h = 155 ft v = -16.73 ft/sec a = -32.20 ft/(sec*sec) t = 4.00 sec h = 148 ft v = -24.78 ft/sec a = -32.20 ft/(sec*sec)t = 4.25 sec h = 140 ft v = -32.83 ft/sec a = -32.20 ft/(sec*sec) t = 4.50 sec h = 130 ft v = -40.88 ft/sec a = -32.20 ft/(sec*sec)t = 4.75 sec h = 118 ft v = -48.93 ft/sec a = -32.20 ft/(sec*sec) t = 5.00 sec h = 103 ft v = -56.98 ft/sec a = -32.20 ft/(sec*sec)t = 5.25 sec h = 87 ft v = -65.03 ft/sec a = -32.20 ft/(sec*sec) t = 5.50 sec h = 69 ft v = -73.08 ft/sec a = -32.20 ft/(sec*sec)t = 5.75 sec h = 49 ft v = -81.13 ft/sec a = -32.20 ft/(sec*sec) t = 6.00 sec h = 26 ft v = -89.18 ft/sec a = -32.20 ft/(sec*sec)t = 6.25 sec h = 2 ft v = -97.23 ft/sec a = -32.20 ft/(sec*sec) t = 6.50 sec h = -24 ft v = -105.28 ft/sec a = -32.20 ft/(sec*sec) End Script

A graphical representation of acceleration

The acceleration values shown in Figure 5 are plotted in Figure 1 along with the height values and the velocity values.

Analysis of the results

The main difference between Figure 5 and Figure 4 is the addition of an acceleration column on the right in Figure 5 . (In addition, I abbreviated feet and seconds as ft and sec, and reduced the space between columns tomake it all fit in the available space.)

Except for the first two values at the top of the acceleration column, every acceleration value is -32.2 ft/(sec*sec). This is what we predicted earlier whenwe observed that the velocity curve is a straight line with a constant negative slope. (Note that the procedure used to estimate the acceleration did not allow for anaccurate estimate of acceleration for the first two values in the acceleration column.)

Free fall

According to Wikipedia , free fall is any motion of a body where gravity is the only force acting upon it.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Game 2302 - mathematical applications for game development. OpenStax CNX. Jan 09, 2016 Download for free at https://legacy.cnx.org/content/col11450/1.33
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Game 2302 - mathematical applications for game development' conversation and receive update notifications?

Ask