From 5b62616c1e2fd2af67f62f9b4c4fcf1190470845 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Fri, 11 Jul 2014 12:20:00 +0200 Subject: beta 2014.07.11 12:20 --- metapost/context/base/mp-tool.mpiv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'metapost/context/base') diff --git a/metapost/context/base/mp-tool.mpiv b/metapost/context/base/mp-tool.mpiv index 7845467a4..17bb0e9c2 100644 --- a/metapost/context/base/mp-tool.mpiv +++ b/metapost/context/base/mp-tool.mpiv @@ -292,12 +292,12 @@ enddef; %D Some missing functions can be implemented rather straightforward (thanks to %D Taco and others): -pi := 3.14159265358979323846 ; radian := 180/pi ; % 2pi*radian = 360 ; +% oldpi := 3.14159265358979323846 ; % from +pi := 3.14159265358979323846264338327950288419716939937510 ; % 50 digits +radian := 180/pi ; % 2pi*radian = 360 ; % let +++ = ++ ; -numeric Pi ; Pi := pi ; % for some old compatibility reasons i guess - vardef sqr primary x = x*x enddef ; vardef log primary x = if x=0: 0 else: mlog(x)/mlog(10) fi enddef ; vardef ln primary x = if x=0: 0 else: mlog(x)/256 fi enddef ; -- cgit v1.2.3