diff options
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 |