Spreadsheet: Mathematical functionsABS Absolute valueABS(x) returns the absolute value of the number x. ACOS Arccosine functionACOS(x) returns the arccosine of x. ALOGIT Antilogit functionALOGIT(l) returns the antilogit of the (logit) number l: alogit(l)=exp(l)/(1+exp(l)). ASIN Arcsine functionASIN(x) returns the arcsine of x. ATAN Arctangent functionATAN(x) returns the arctangent of x. COS Cosine functionCOS(x) returns the cosine of an angle x. The result range is [-1..1]. EXP Natural exponential functionEXP(x) returns the natural exponential of x: 2.71828x. FACT Factorial functionFACT(x) returns the factorial of x. The factorial of a number n is equal to 1*2*3*...*n. INT Integer value functionINT(x) rounds the number x down to an integer. LN Natural logarithm functionLN(x) returns the natural logarithm of the positive number x to the base e (e = 2.71828). LOG Logarithm functionLOG(x) returns the logarithm of the positive number x in the base 10. LOGIT Logit functionLOGIT(p) returns the logit of the proportion p: logit(p)=log(p/(1-p)). MOD Modulo functionMOD(x,d) returns the remainder after x is divided by d. PI Pi functionThe function Pi() takes no argument and returns the value 3.14159265358979. POWER Power functionPOWER(n,p) returns n raised to the power p. RAND Random number function (Uniform distribution)RAND(x) returns a computer-generated random number (a) when x < 1 the result is a number between 0 and 1, or (b) when x > 1 then the result is a number between 1 and x. RANDNORM Random number function (Normal distribution)The function RANDNORM(m,s) returns a random number from a Normal distribution with mean m and standard deviation s. ROUND Round functionROUND(x,n) rounds the number x to the number of digits n. If n is negative, then x is rounded to the left of the decimal point. SIGN Sign valueSIGN(x) returns a number that indicates the sign x: -1 if x is negative; 0 if x equals 0; or 1 if x is positive. SIN Sine functionSIN(x) returns the sine of the angle x. SQRT Square root functionSQRT(x) returns the square root of the positive number x. SQRT(x) = x^(1/2). If the argument x of the function is negative, then the function returns an error (missing value). TAN Tangent functionTAN(x) returns the tangent of the angle x. TRUNC Truncate functionTRUNC(x) truncates the number x to an integer by removing the fractional part of the number x. See also |