Math

From GiderosMobile
Revision as of 14:19, 23 August 2018 by Hgy29 (talk | contribs)

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description

math table holds most commonly used math functions and constants

Methods

math.abs Template:Returns absolute value of v
math.acos Template:Returns arc cosine value of v in radians
math.asin Template:Returns arc sine value of v in radians
math.atan Template:Returns arc tangent value of v in radians
math.atan2 Template:Returns arc tangent value of v1/v2 in radians
math.ceil {{returns smallest integer >= v}}
math.cos Template:Returns cosine value of angle rad
math.deg Template:Returns angle in degrees of radians rad
math.exp Template:Returns e^v
math.floor {{returns largest integer <= v}}
math.fmod Template:Returns remainder of v1/v2 which is v1 - iV2 for some integer i
math.frexp {{returns mantissa [0.5,1- and exponent values of v}}
math.ldexp Template:Returns v1*2^v2
math.log Template:Returns natural logarithm of v
math.log10 Template:Returns logarithm 10 of v
math.max Template:Returns maximum in a list of one or more values
math.min Template:Returns minimum in a list of one or more values
math.pow Template:Returns v1 raised to the power of v2
math.rad Template:Returns angle in radians of degrees deg
math.random {{returns random real [0,1-, integer [1,n] or real [1,u](with n=1-}}
math.randomseed Template:Sets seed for pseudo-random number generator
math.sin Template:Returns sine value of angle rad
math.sqrt Template:Returns square root of v
math.tan Template:Returns tangent value of angle rad

Events

Constants

huge
pi