]> gitweb.michael.orlitzky.com - numerical-analysis.git/blobdiff - src/Roots/Fast.hs
Add a Normed instance for Float.
[numerical-analysis.git] / src / Roots / Fast.hs
index d6e4d7c23f4091c7a573f01eb4d5c6572a1ca2c8..5efdf3be99eec871931d18c6095333b8bd31ce83 100644 (file)
@@ -8,7 +8,7 @@ where
 
 import Data.List (find)
 
-import Vector
+import Normed
 
 
 has_root :: (Fractional a, Ord a, Ord b, Num b)
@@ -104,7 +104,7 @@ fixed_point_iterations f x0 =
 --
 --   We also return the number of iterations required.
 --
-fixed_point_with_iterations :: (Vector a, RealFrac b)
+fixed_point_with_iterations :: (Normed a, RealFrac b)
                             => (a -> a)  -- ^ The function @f@ to iterate.
                             -> b        -- ^ The tolerance, @epsilon@.
                             -> a        -- ^ The initial value @x0@.