Difference between revisions of "Math"
|  (Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === `math` table holds most commonly used math functions and constants{|-...") | |||
| Line 1: | Line 1: | ||
| __NOTOC__ | __NOTOC__ | ||
| − | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> | 
| '''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
| === Description === | === Description === | ||
| − | `math` table holds most commonly used math functions and constants{|- | + | `math` table holds most commonly used math functions and constants | 
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | {|- | ||
| | style="width: 50%;"| | | style="width: 50%;"| | ||
| === Methods === | === Methods === | ||
| + | [[math.abs]] - returns absolute value of v<br/> | ||
| + | [[math.acos]] - returns arc cosine value of v in radians<br/> | ||
| + | [[math.asin]] - returns arc sine value of v in radians<br/> | ||
| + | [[math.atan]] - returns arc tangent value of v in radians<br/> | ||
| + | [[math.atan2]] - returns arc tangent value of v1/v2 in radians<br/> | ||
| + | [[math.ceil]] - returns smallest integer >= v<br/> | ||
| + | [[math.cos]] - returns cosine value of angle rad<br/> | ||
| + | [[math.deg]] - returns angle in degrees of radians rad<br/> | ||
| + | [[math.exp]] - returns e^v<br/> | ||
| + | [[math.floor]] - returns largest integer <= v<br/> | ||
| + | [[math.fmod]] - returns remainder of v1/v2 which is v1 - iV2 for some integer i<br/> | ||
| + | [[math.frexp]] - returns mantissa [0.5,1- and exponent values of v<br/> | ||
| + | [[math.ldexp]] - returns v1*2^v2<br/> | ||
| + | [[math.log]] - returns natural logarithm of v<br/> | ||
| + | [[math.log10]] - returns logarithm 10 of v<br/> | ||
| + | [[math.max]] - returns maximum in a list of one or more values<br/> | ||
| + | [[math.min]] - returns minimum in a list of one or more values<br/> | ||
| + | [[math.pow]] - returns v1 raised to the power of v2<br/> | ||
| + | [[math.rad]] - returns angle in radians of degrees deg<br/> | ||
| + | [[math.random]] - returns random real [0,1-, integer [1,n] or real [1,u](with n=1-<br/> | ||
| + | [[math.randomseed]] - sets seed for pseudo-random number generator<br/> | ||
| + | [[math.sin]] - returns sine value of angle rad<br/> | ||
| + | [[math.sqrt]] - returns square root of v<br/> | ||
| + | [[math.tan]] - returns tangent value of angle rad<br/> | ||
| | style="width: 50%;"| | | style="width: 50%;"| | ||
| === Events === | === Events === | ||
| === Constants === | === Constants === | ||
| + | [[huge]] | ||
| + | [[pi]] | ||
| |} | |} | ||
Revision as of 08:56, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
`math` table holds most commonly used math functions and constants
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
| Methodsmath.abs - returns absolute value of v | EventsConstants | 
