|
|
|
|
|
by jedbrown
5550 days ago
|
|
> that problem would take you hours to solve I don't know, two Newton iterations are enough: *GHCi> let croot f x = x - (x^3 - f) / (3*x^2) in take 5 . iterate (croot 0.0093) $ 0.2
[0.2,0.21083333333333332,0.2102957483409451,0.2102943717551532,0.21029437174614204]
Guessing 0.2 as a starting point is obvious enough because 0.2^3 = 0.008. |
|