summaryrefslogtreecommitdiff
path: root/tex/context/base/syst-con.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-12-03 21:20:13 +0200
committerMarius <mariausol@gmail.com>2012-12-03 21:20:13 +0200
commit4d13b54052e73da1c5acc266be1fd5ddca50e8e0 (patch)
treeee9e2e1d58c6f01cde91171e9dca6645bb038166 /tex/context/base/syst-con.lua
parent4891978ea1c8810e1a50fe7189e0bcf93160bc51 (diff)
downloadcontext-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.lua11
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