Arithmetic¶
43 built-in function(s) in this category.
Abs— Abs[z] gives the absolute value (modulus) of numeric z, Sqrt[Re[z]^2 + Im[z]^2] for complex z. (Stable)Accumulate— Accumulate[list] (Stable)Accuracy— Accuracy[x] (Stable)Arg— Arg[z] gives the argument (phase angle in (-Pi, Pi]) of numeric z; 0 for nonnegative reals, Pi for negative reals. (Stable)Binomial— Binomial[n, m] (Stable)Ceiling— Ceiling[x] (Stable)Complex— Complex[re, im] (Stable)Conjugate— Conjugate[z] gives the complex conjugate Re[z] - I Im[z] of numeric z; real and real-valued (Re/Im/Abs/Arg) arguments are returned unchanged. (Stable)Differences— Differences[list] (Stable)DigitCount— DigitCount[n] gives a list of the counts of digits 1, 2, ..., 9, 0 in the base-10 representation of n. (Stable)Divide— x / y or Divide[x, y] represents x / y; rewritten by the evaluator to (Stable)Factorial— n! or Factorial[n] (Stable)Factorial2— Factorial2[n] (also typeset n!!) gives the double factorial of n. (Stable)FactorialPower— FactorialPower[n, k] (Stable)Fibonacci— Fibonacci[n] (Stable)Floor— Floor[x] (Stable)FromDigits— FromDigits[list] constructs an integer from a list of decimal digits, most-significant first. (Stable)Im— Im[z] gives the imaginary part of numeric z, and 0 for real or real-valued (Re/Im/Abs/Arg) arguments. (Stable)IntegerDigits— IntegerDigits[n] gives a list of the decimal digits in the integer n. (Stable)IntegerExponent— IntegerExponent[n, b] gives the highest power of b that divides n. (Stable)IntegerLength— IntegerLength[n] gives the number of decimal digits in the integer n. (Stable)IntegerString— IntegerString[n] gives a string consisting of the decimal digits in the integer n. (Stable)LucasL— LucasL[n] (Stable)MantissaExponent— MantissaExponent[x] gives a list {m, e} containing the mantissa and exponent of the real number x, such that x = m * 10^e and 1/10 <= |m| < 1 (or m = 0 when x = 0). (Stable)N— N[expr] (Stable)Plus— x + y + ... or Plus[x, y, ...] represents a sum of terms. (Stable)Power— x ^ y or Power[x, y] represents x to the power y. (Stable)Precision— Precision[x] (Stable)Rational— Rational[n, d] (Stable)Rationalize— Rationalize[x] (Stable)Ratios— Ratios[list] (Stable)Re— Re[z] gives the real part of numeric z; Re[Re[z]], Re[Im[z]], Re[Abs[z]], Re[Arg[z]] fold since those heads are real-valued. (Stable)ReIm— ReIm[z] gives {Re[z], Im[z]}, the real and imaginary parts of numeric z as a list; real-valued arguments give {z, 0}. (Stable)RealDigits— RealDigits[x] gives a list {digits, exp} of the digits in the approximate real number x together with the exponent such that the first digit is the coefficient of 10^(exp - 1). (Stable)RealExponent— RealExponent[x] gives Log[10, |x|] -- the base-10 real exponent of x. (Stable)Round— Round[x] (Stable)SetAccuracy— SetAccuracy[x, n] (Stable)SetPrecision— SetPrecision[x, n] (Stable)Sign— Sign[x] gives -1, 0, or 1 for real numeric x according to its sign, and z/Abs[z] for a nonzero numeric complex z. (Stable)Sqrt— Sqrt[z] (Stable)Subtract— x - y or Subtract[x, y] represents x - y; rewritten by the evaluator (Stable)Times— x * y * ... or Times[x, y, ...] represents a product of terms. (Stable)Total— Total[list] (Stable)