[gnumeric] amath: avoid trigonometric functions on 1e26.



commit 402b865899e8a8e6786436d17678b063f305cd51
Author: Morten Welinder <terra gnome org>
Date:   Thu Nov 7 22:35:45 2013 -0500

    amath: avoid trigonometric functions on 1e26.
    
    1e26 isn't representable and reference values assume it is.

 samples/amath.gnumeric |  Bin 43302 -> 43204 bytes
 tools/process-amath.pl |    4 ++++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/samples/amath.gnumeric b/samples/amath.gnumeric
index 132c601..a78b5c1 100644
Binary files a/samples/amath.gnumeric and b/samples/amath.gnumeric differ
diff --git a/tools/process-amath.pl b/tools/process-amath.pl
index b3382ae..ca0ea12 100755
--- a/tools/process-amath.pl
+++ b/tools/process-amath.pl
@@ -121,6 +121,10 @@ my %invalid_tests =
     (# Magically changed to something else
      'cos(1.0)' => 1,
      'cos(0.0)' => 1,
+     'cos(1e26)' => 1, # 1e26 not representable
+     'cot(1e26)' => 1, # 1e26 not representable
+     'sin(1e26)' => 1, # 1e26 not representable
+     'tan(1e26)' => 1, # 1e26 not representable
     );
 
 sub def_expr_handler {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]