summaryrefslogtreecommitdiff
path: root/tex/context/base/syst-con.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-12-25 17:00:20 +0200
committerMarius <mariausol@gmail.com>2012-12-25 17:00:20 +0200
commit290581646ba1e91eb2be7086ec32653d1a33841f (patch)
treef631a876b6288a11fc3b9545de2816691d9a0023 /tex/context/base/syst-con.lua
parent31c8bf0930a6d3e353a552d6bab71f62bc25f34e (diff)
downloadcontext-290581646ba1e91eb2be7086ec32653d1a33841f.tar.gz
beta 2012.12.25 15:14
Diffstat (limited to 'tex/context/base/syst-con.lua')
-rw-r--r--tex/context/base/syst-con.lua32
1 files changed, 17 insertions, 15 deletions
diff --git a/tex/context/base/syst-con.lua b/tex/context/base/syst-con.lua
index 3a9b966ca..48f02da3a 100644
--- a/tex/context/base/syst-con.lua
+++ b/tex/context/base/syst-con.lua
@@ -43,18 +43,20 @@ end
local cosd, sind, tand = math.cosd, math.sind, math.tand
local cos, sin, tan = math.cos, math.sin, math.tan
--- function commands.sind(n) context("%0.6f",sind(n)) end
--- function commands.cosd(n) context("%0.6f",cosd(n)) end
--- function commands.tand(n) context("%0.6f",tand(n)) end
-
--- function commands.sin (n) context("%0.6f",sin (n)) end
--- function commands.cos (n) context("%0.6f",cos (n)) end
--- function commands.tan (n) context("%0.6f",tan (n)) end
-
-function commands.sind(n) context(sind(n)) end
-function commands.cosd(n) context(cosd(n)) end
-function commands.tand(n) context(tand(n)) end
-
-function commands.sin (n) context(sin (n)) end
-function commands.cos (n) context(cos (n)) end
-function commands.tan (n) context(tan (n)) end
+-- unfortunately %s spits out: 6.1230317691119e-017
+--
+-- function commands.sind(n) context(sind(n)) end
+-- function commands.cosd(n) context(cosd(n)) end
+-- function commands.tand(n) context(tand(n)) end
+--
+-- function commands.sin (n) context(sin (n)) end
+-- function commands.cos (n) context(cos (n)) end
+-- function commands.tan (n) context(tan (n)) end
+
+function commands.sind(n) context("%0.6f",sind(n)) end
+function commands.cosd(n) context("%0.6f",cosd(n)) end
+function commands.tand(n) context("%0.6f",tand(n)) end
+
+function commands.sin (n) context("%0.6f",sin (n)) end
+function commands.cos (n) context("%0.6f",cos (n)) end
+function commands.tan (n) context("%0.6f",tan (n)) end