summary refs log tree commit diff stats
path: root/lib/pure/math.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-01-05 23:46:50 +0100
committerAraq <rumpf_a@web.de>2011-01-05 23:46:50 +0100
commit5635fde06024b00bb874126bea208f07b4b8db9d (patch)
treee54cbee31f63078f125574b52e763ce883f07c22 /lib/pure/math.nim
parent63ac32e6de018b5e175efb6f61675bfe36394973 (diff)
downloadNim-5635fde06024b00bb874126bea208f07b4b8db9d.tar.gz
transf: big refactoring; other small fixes
Diffstat (limited to 'lib/pure/math.nim')
-rwxr-xr-xlib/pure/math.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index d347006b7..c9f71b64b 100755
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -159,6 +159,7 @@ when not defined(ECMAScript):
     ## same as ``sqrt(x*x + y*y)``.
   
   proc sinh*(x: float): float {.importc: "sinh", header: "<math.h>".}
+  proc sin*(x: float): float {.importc: "sin", header: "<math.h>".}
   proc tan*(x: float): float {.importc: "tan", header: "<math.h>".}
   proc tanh*(x: float): float {.importc: "tanh", header: "<math.h>".}
   proc pow*(x, y: float): float {.importc: "pow", header: "<math.h>".}
@@ -209,6 +210,7 @@ else:
   proc cosh*(x: float): float = return (exp(x)+exp(-x))*0.5
   proc hypot*(x, y: float): float = return sqrt(x*x + y*y)
   proc sinh*(x: float): float = return (exp(x)-exp(-x))*0.5
+  proc sin*(x: float): float {.importc: "Math.sin", nodecl.}  
   proc tan*(x: float): float {.importc: "Math.tan", nodecl.}
   proc tanh*(x: float): float =
     var y = exp(2.0*x)