]> gitweb.michael.orlitzky.com - numerical-analysis.git/commitdiff
Use the 2-norm instead of the infty-norm for the fixed point error ratios.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 18 Oct 2012 15:20:02 +0000 (11:20 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 18 Oct 2012 15:20:02 +0000 (11:20 -0400)
src/Roots/Simple.hs

index 3237d60217aeb9e94bafe6983cf8f6a5dd353727..f9b36fad6578733fe8cad0308e573a77aa37640b 100644 (file)
@@ -260,6 +260,6 @@ fixed_point_error_ratios f x0 x_star p =
   zipWith (/) en_plus_one en_exp
   where
     xn = F.fixed_point_iterations f x0
-    en = map (\x -> norm (x_star - x)) xn
+    en = map (\x -> norm_2 (x_star - x)) xn
     en_plus_one = tail en
     en_exp = map (^p) en