1
0
Fork 0

add tangens function

This commit is contained in:
mfranz 2009-03-25 17:52:43 +00:00
parent 7ef387cc0a
commit d1df1132c6

View file

@ -11,5 +11,7 @@ var asin = func(y) { atan2(y, sqrt(1-y*y)) }
var acos = func(x) { atan2(sqrt(1-x*x), x) }
var tan = func(x) sin(x) / (cos(x) or die("tangens infinity"));
var _iln10 = 1/ln(10);
var log10 = func(x) { ln(x) * _iln10; }