Exercise 5.3.1 Write a function for cube roots using fixedPoint and averageDamp.
Both fixedPoint and averageDamp functions remain the same. Instead of sqrt, now theres a cbrt function which calculates the cube root. The math library is used to avail of the exponential function.
No comments:
Post a Comment