iter
:: (Num a
, Ord a
) => (a
-> a
) -> a
-> a
-> a
-> a
iter f eps fx x | (fx - x)^2 < eps = fx
root4 a = iter (\x -> (3*x + a/(x*x*x))/4) 1e-32 (a/4) 0
aXRlciA6OiAoTnVtIGEsIE9yZCBhKSA9PiAoYSAtPiBhKSAtPiBhIC0+IGEgLT4gYSAtPiBhCml0ZXIgZiBlcHMgZnggeCB8IChmeCAtIHgpXjIgPCBlcHMgPSBmeAogICAgICAgICAgICAgICAgfCBvdGhlcndpc2UgPSBpdGVyIGYgZXBzIChmIGZ4KSBmeAoKcm9vdDQgOjogRG91YmxlIC0+IERvdWJsZQpyb290NCBhID0gaXRlciAoXHggLT4gKDMqeCArIGEvKHgqeCp4KSkvNCkgMWUtMzIgKGEvNCkgMAoKbWFpbiA9IHByaW50IChyb290NCAxNikK