diff options
author | Marius <mariausol@gmail.com> | 2012-12-25 17:00:20 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-12-25 17:00:20 +0200 |
commit | 290581646ba1e91eb2be7086ec32653d1a33841f (patch) | |
tree | f631a876b6288a11fc3b9545de2816691d9a0023 /tex/context/base/syst-con.lua | |
parent | 31c8bf0930a6d3e353a552d6bab71f62bc25f34e (diff) | |
download | context-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.lua | 32 |
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 |