[gnumeric] amath: use exp2 and exp10 tests too.



commit db5bbdf3886357d305cfbe7763324bbe3646c65f
Author: Morten Welinder <terra gnome org>
Date:   Tue Nov 12 14:26:18 2013 -0500

    amath: use exp2 and exp10 tests too.

 samples/amath.gnumeric |  Bin 43204 -> 43761 bytes
 tools/process-amath.pl |    6 ++++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/samples/amath.gnumeric b/samples/amath.gnumeric
index a78b5c1..e00f855 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 ca0ea12..a65a325 100755
--- a/tools/process-amath.pl
+++ b/tools/process-amath.pl
@@ -89,6 +89,8 @@ my %name_map =
      'bessel_k1' => 'besselk1', # Really named besselk
      'bessel_kv' => 'besselk',
      'exp' => 'exp',
+     'exp2' => 'exp2',
+     'exp10' => 'exp10',
      'expm1' => 'expm1',
      'ln' => 'ln',
      'ln1p' => 'ln1p',
@@ -194,6 +196,8 @@ my %expr_handlers =
      'besselk0' => sub { my ($f,$pa) = @_; &def_expr_handler ('besselk',[ $pa,0]); },
      'besselk1' => sub { my ($f,$pa) = @_; &def_expr_handler ('besselk',[ $pa,1]); },
      'besselk' => sub { &reorder_handler ("2,1", @_); },
+     'exp2' => sub { my ($f,$pa) = @_; &def_expr_handler ('power',[2,@$pa]); },
+     'exp10' => sub { my ($f,$pa) = @_; &def_expr_handler ('power',[10,@$pa]); },
      'ln' => \&positive_handler,
      'log10' => \&positive_handler,
      'log2' => \&positive_handler,
@@ -207,7 +211,9 @@ my %constants =
      'pi_4' => 0.78539816339744830962,
      'pi_6' => 0.52359877559829887308,
      'sqrt2' => 1.4142135623730950488,
+     '-sqrt2' => -1.4142135623730950488,
      'sqrt3' => 1.7320508075688772935,
+     '-sqrt3' => 1.7320508075688772935,
      'sqrt_5' => 0.7071067811865475244,
     );
 


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