aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-12-10 12:09:00 -0500
committerErik Schnetter <schnetter@gmail.com>2012-12-10 13:01:28 -0500
commitaa0b49ea3eca0f253e3eaf835e8f79629db82308 (patch)
tree57a0a74fe3f2ddc3d91509d0beaea2eaa2fa5721 /Tools
parent008feafaaa39f0cfc81258191994bdc1a6ee646e (diff)
Expand Pi and E to their numerical values
Diffstat (limited to 'Tools')
-rw-r--r--Tools/CodeGen/CodeGenCactus.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/CodeGen/CodeGenCactus.m b/Tools/CodeGen/CodeGenCactus.m
index 2e73554..194cf50 100644
--- a/Tools/CodeGen/CodeGenCactus.m
+++ b/Tools/CodeGen/CodeGenCactus.m
@@ -671,6 +671,8 @@ DefFn[
x_Integer /; Abs[x]>10^10 :> 1.0*x,
(* generate sufficient precision *)
x_Rational :> N[x,30],
+ Pi -> N[Pi,30],
+ E -> N[E,30],
kneg[x_] -> -x,