import NumericPrelude hiding (abs)
import qualified Algebra.Absolute as Absolute
+import qualified Algebra.Additive as Additive
+import qualified Algebra.Algebraic as Algebraic
import qualified Algebra.Field as Field
import qualified Algebra.RealRing as RealRing
import qualified Algebra.RealField as RealField
-- We also return the number of iterations required.
--
fixed_point_with_iterations :: (Normed a,
- Field.C b,
- Absolute.C b,
- Ord b)
+ Algebraic.C a,
+ RealField.C b,
+ Algebraic.C b)
=> (a -> a) -- ^ The function @f@ to iterate.
-> b -- ^ The tolerance, @epsilon@.
-> a -- ^ The initial value @x0@.