Cube Root Project - geofhagopian.net

advertisement
Cube Root Project In this lab we develop an algorithm for finding the cube root of a given number. Precondition: A userā€supplied real number, A. Postcondition: The real cube root of that number . You may not use a math library for this project. Instead implement the following pseudocode. 1. Get a number, A, from the user. 2. Set the initial guess to some (likely bad) approximation (not 0) like, say A/3. 3. Iterate until |
|
1
10
Download