From d4f9559d79a84d55516bffca073eab302855a946 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 18 Oct 2012 11:20:02 -0400 Subject: [PATCH 1/1] Use the 2-norm instead of the infty-norm for the fixed point error ratios. --- src/Roots/Simple.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2