Math - SardonyxLang/SardonyxStd GitHub Wiki
require "math"
Basic mathematical and trigonometric functions.
Object Math
Math:sin(x): returns the sine ofx.Math:sinh(x): returns the hyperbolic sine ofx.Math:asin(x): returns the arcsine ofx.Math:asinh(x): returns the hyperbolic arcsine ofx.Math:tan(x): returns the tangent ofx.Math:tanh(x): returns the hyperbolic tangent ofx.Math:atan(x): returns the arctangent ofx.Math:atanh(x): returns the hyperbolic arctangent ofx.Math:cos(x): returns the cosine ofx.Math:cosh(x): returns the hyperbolic cosine ofx.Math:acos(x): returns the arccosine ofx.Math:acosh(x): returns the hyperbolic arccosine ofx.Math:atan2(x, y): returnsatan2(x, y).Math:log(x): returnslog10(x).Math:sqrt(x): returns the square root ofx.Math:abs(x): returns the absolute value ofx.