![]() Return the square root of a given number. If you want the modulus (remainder), look for the modulo % operator instead. Return the integral and fractional parts of the given number. Return the minimum or maximum value from a variable length list of arguments. Math.exp, math.log math.exp(myval) returns e (the base of natural logarithms) raised to the power myval. Return the cosine, sine and tangent value for a given value in radians.Ĭonvert from radians to degrees and vice versa. Return the integer no greater than or no less than the given value (even for negatives). It will use the sign of both arguments to place the result into the correct quadrant, and also produces correct values when one of its arguments is 0 or very close to 0. Using two arguments should usually be preferred, particularly when converting rectangular co-ordinates to polar co-ordinates. ![]() We can do this by supplying y/x ourselvesor we can pass y and x to math.atan to do this for us. Return the inverse cosine and sine in radians of the given value. Return the absolute, or non-negative value, of a given value. Each is described, with an example, on this page. ![]() Below is a summary of the functions and variables provided. ![]() The math library is documented in section 6.7 of the Reference Manual. Lua-users wiki: Math Library Tutorial Math Library Tutorial ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |