|
- Modify the projectile demo program
so that it tries a range of angles from 10 to 80 degrees and reports
the angle that results in the longest shot. Use the Histogram
class to record the distribution of shot distances and then print
out the values from the histogram.
- Use either or both of the bisection and Newton methods to solve for
the roots of two different functions of your choice.
- For a function of your choice, compare the Newton method using an
analytical derivative to the discrete method. Show, for example, if
the number of steps to find the roots differ significantly.
- Create a class for the bisection method and rewrite the projectile
motion example to use it.
- Create a class for the Newton's methods and rewrite the projectile
motion example to use it.
|
|