diff options
author | Marius <mariausol@gmail.com> | 2012-12-03 21:20:13 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-12-03 21:20:13 +0200 |
commit | 4d13b54052e73da1c5acc266be1fd5ddca50e8e0 (patch) | |
tree | ee9e2e1d58c6f01cde91171e9dca6645bb038166 /tex/context/base/syst-con.lua | |
parent | 4891978ea1c8810e1a50fe7189e0bcf93160bc51 (diff) | |
download | context-4d13b54052e73da1c5acc266be1fd5ddca50e8e0.tar.gz |
beta 2012.12.03 20:04
Diffstat (limited to 'tex/context/base/syst-con.lua')
-rw-r--r-- | tex/context/base/syst-con.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tex/context/base/syst-con.lua b/tex/context/base/syst-con.lua index 2eaf98fd7..f3f1b98cf 100644 --- a/tex/context/base/syst-con.lua +++ b/tex/context/base/syst-con.lua @@ -39,3 +39,14 @@ function commands.format(fmt,...) -- used ? fmt = gsub(fmt,"@","%%") context(fmt,...) 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 |