From: Michael Orlitzky Date: Thu, 18 Oct 2012 15:20:02 +0000 (-0400) Subject: Use the 2-norm instead of the infty-norm for the fixed point error ratios. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d4f9559d79a84d55516bffca073eab302855a946;p=numerical-analysis.git Use the 2-norm instead of the infty-norm for the fixed point error ratios. --- diff --git a/src/Roots/Simple.hs b/src/Roots/Simple.hs index 3237d60..f9b36fa 100644 --- a/src/Roots/Simple.hs +++ b/src/Roots/Simple.hs @@ -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