Module:User:DePiep/doc

From blackwiki
Jump to navigation Jump to search

This is the documentation page for Module:User:DePiep

Math2

abs

math.abs math.abs( x ) Returns the absolute value of x.

ceil

math.ceil math.ceil( x ) Returns the smallest integer larger than or equal to x.

floor

math.floor math.floor( x ) Returns the largest integer smaller than or equal to x.

deg

math.deg math.deg( x ) Returns the angle x (given in radians) in degrees.

rad

math.rad( x ) Returns the angle x (given in degrees) in radians.


exp

math.exp math.exp( x ) Returns the value e x {\displaystyle e^{x}} e^{x}.

frexp

math.frexp math.frexp( x ) Returns two values m and e such that:

   If x is finite and non-zero: x = m × 2 e {\displaystyle x=m\times 2^{e}} x=m\times 2^{e}, e is an integer, and the absolute value of m is in the range [ 0.5 , 1 ) {\displaystyle [0.5,1)} [0.5,1)
   If x is zero: m and e are 0
   If x is NaN or infinite: m is x and e is not specified


ldexp

math.ldexp math.ldexp( m, e ) Returns m × 2 e {\displaystyle m\times 2^{e}} m\times 2^{e} (e should be an integer). Returns the base-10 logarithm of x.

modf

math.modf math.modf( x ) Returns two numbers, the integral part of x and the fractional part of x. For example, math.modf( 1.25 ) yields 1, 0.25.

pow

math.pow( x, y ) Equivalent to x^y.

sqrt

math.sqrt( x ) Returns the square root of x. Equivalent to x^0.5.

huge

math.huge The value representing positive infinity; larger than or equal to any other numerical value.

pi

math.pi The value of π {\displaystyle \pi } \pi .