Skip to guide content
Graph Studio by NUM8ERSStudent guideOpen calculator
LEARN · TRY · EXPLORE

Reference & troubleshooting65 / 68

Mathematical function reference

Use the built-in functions below as a starting reference. Arguments must satisfy each function’s domain.

Find it

Expressions; Examples drawer and Quick guide

A named function, evaluation and sine curve in radians.
A named function, evaluation and sine curve in radians.Click to enlarge ↗

Try it step by step

  1. Choose the function family you need.
  2. Enter parentheses around arguments and brackets around lists.
  3. For less common names, use the supported operator-name notation shown by examples.
  4. Check the result message when an argument is outside the domain.

Examples to try

Each card is one input. For definitions, enter the cards in order. Formula-only cards belong in the tool described above.

The average is 4.

The determinant is −2.

Options explained

Arithmetic / elementary
Addition, subtraction, multiplication, division, powers, roots, absolute value, exponentials and logarithms. Brackets control the order of operations.
Trigonometry
sin, cos, tan, sec, csc, cot and their supported inverse functions; angle mode matters.
Hyperbolic
sinh, cosh, tanh, sech, csch, coth and supported inverse hyperbolic functions.
Rounding / integer work
Supported floor, ceil, round, sign, modulo, factorial and combinatorial operations.
List statistics
Supported count/length, total, mean, median, variance, standard deviation, quantiles, quartiles, five-number summary, mean absolute deviation, covariance and correlation functions.
Random / lists
random, shuffle, sample and repeat; use seeds for reproducible sampling.
Complex / matrices
complex, real, imag, conj, arg; matrix, matmul, det, inverse, transpose, rref, identity and trace.
Distributions
normaldist(mean,sd), uniformdist(lower,upper), tdist(df), chisqdist(df), binomialdist(trials,p), poissondist(mean), exponentialdist(rate), geodist(p), with their pdf/cdf/quantile/sample methods.
Calculus / definitions
Named functions, supported derivatives, integrals, finite sums/products, piecewise branches and restrictions.

Function dictionary

Signatures show literal input syntax. Examples use radians. Optional arguments show their defaults; list and work limits still apply.

abs
abs(x)

x: a real or complex value; returns its magnitude.

Result: 3

Learn more
sqrt
sqrt(x)

x: nonnegative for real output; complex inputs use the supported principal branch.

Result: 3

Learn more
exp
exp(x)

x: a finite exponent; very large results can exceed numerical range.

Result: 1

Learn more
ln
ln(x)

x: positive for real logarithms.

Result: 1

Learn more
log
log(x)

x: positive; base-10 logarithm. Use ln for the natural logarithm.

Result: 2

Learn more
sin
sin(x)

x: angle in the selected mode. Examples use radians. Reciprocal functions are undefined where their denominator is zero.

Result: 0

Learn more
cos
cos(x)

x: angle in the selected mode. Examples use radians. Reciprocal functions are undefined where their denominator is zero.

Result: 1

Learn more
tan
tan(x)

x: angle in the selected mode. Examples use radians. Reciprocal functions are undefined where their denominator is zero.

Result: 0

Learn more
sec
sec(x)

x: angle in the selected mode. Examples use radians. Reciprocal functions are undefined where their denominator is zero.

Result: 1

Learn more
csc
csc(x)

x: angle in the selected mode. Examples use radians. Reciprocal functions are undefined where their denominator is zero.

Result: 1

Learn more
cot
cot(x)

x: angle in the selected mode. Examples use radians. Reciprocal functions are undefined where their denominator is zero.

Result: 1

Learn more
arcsin
arcsin(x)

Domain: −1 ≤ x ≤ 1. The result follows the selected angle mode.

Result: 0

Learn more
arccos
arccos(x)

Domain: −1 ≤ x ≤ 1. The result follows the selected angle mode.

Result: 0

Learn more
arctan
arctan(x)

Domain: any finite real x. The result follows the selected angle mode.

Result: 0

Learn more
sinh
sinh(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 0

Learn more
cosh
cosh(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 1

Learn more
tanh
tanh(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 0

Learn more
sech
sech(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 1

Learn more
csch
csch(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: approximately 0.850918

Learn more
coth
coth(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: approximately 1.313035

Learn more
arcsinh
arcsinh(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 0

Learn more
arccosh
arccosh(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 0

Learn more
arctanh
arctanh(x)

Hyperbolic functions use real numeric arguments, independent of angle mode. csch/coth exclude zero; arccosh needs x ≥ 1; arctanh needs −1 < x < 1.

Result: 0

Learn more
floor
floor(x)

x: a finite real number. floor rounds down, ceil up, round to the nearest integer; sign gives −1, 0 or 1.

Result: 2

Learn more
ceil
ceil(x)

x: a finite real number. floor rounds down, ceil up, round to the nearest integer; sign gives −1, 0 or 1.

Result: 3

Learn more
round
round(x)

x: a finite real number. floor rounds down, ceil up, round to the nearest integer; sign gives −1, 0 or 1.

Result: 3

Learn more
sign
sign(x)

x: a finite real number. floor rounds down, ceil up, round to the nearest integer; sign gives −1, 0 or 1.

Result: −1

Learn more
mod
mod(a,b)

a: dividend; b: nonzero divisor. The result uses the divisor-sign modulo convention.

Result: 1

Learn more
factorial
n!

For integer factorials use nonnegative n. Values beyond the finite numerical range are undefined.

Result: 120

Learn more
gcd
gcd(a,b,…)

Integer arguments; greatest common divisor.

Result: 6

Learn more
lcm
lcm(a,b,…)

Integer arguments; least common multiple.

Result: 12

Learn more
mean
mean(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 4

Learn more
median
median(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 4

Learn more
total
total(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 12

Learn more
count
count(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 3

Learn more
variance
variance(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 4

Learn more
varp
varp(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 8/3

Learn more
stdev
stdev(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 2

Learn more
stdevp
stdevp(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: approximately 1.632993

Learn more
mad
mad(L)

L: a finite numeric list. variance/stdev use sample normalization (at least two values); varp/stdevp use population normalization. mad is the mean absolute deviation from the mean.

Result: 4/3

Learn more
quantile
quantile(L,p)

L: nonempty finite numeric list; p in [0,1]. Uses type-7 linear interpolation.

Result: 2.5

Learn more
percentile
percentile(L,p)

Like quantile, but p is a percentage in [0,100].

Result: 2.5

Learn more
quartile
quartile(L,k)

L: finite numeric list; k is an integer from 0 to 4 (minimum through maximum).

Result: 2

Learn more
stats
stats(L)

L: nonempty finite numeric list; returns minimum, Q1, median, Q3, maximum.

Result: [0,1,2,3,4]

Learn more
cov
cov(X,Y)

X and Y: paired finite lists of equal length. Sample covariance needs two pairs; correlations need nonzero spread. Spearman correlates ranks.

Result: 2

Learn more
covp
covp(X,Y)

X and Y: paired finite lists of equal length. Sample covariance needs two pairs; correlations need nonzero spread. Spearman correlates ranks.

Result: 1

Learn more
corr
corr(X,Y)

X and Y: paired finite lists of equal length. Sample covariance needs two pairs; correlations need nonzero spread. Spearman correlates ranks.

Result: 1

Learn more
spearman
spearman(X,Y)

X and Y: paired finite lists of equal length. Sample covariance needs two pairs; correlations need nonzero spread. Spearman correlates ranks.

Result: 1

Learn more
random
random(count,seed)

count: nonnegative integer; seed: optional finite number. Returns values in [0,1). random() returns one scalar; seeded calls repeat exactly.

Result: A reproducible three-value list

Learn more
shuffle
shuffle(L,seed)

L: list; optional finite seed. Reorders entries without removing any.

Result: A reproducible permutation of [1,2,3]

Learn more
sample
sample(L,count,seed)

L: nonempty list; count: nonnegative integer. Samples with replacement; seed is optional.

Result: Three entries, each 1 or 2

Learn more
repeat
repeat(L,counts)

L and counts: matching lists; each count is a nonnegative integer.

Result: [2,2,4]

Learn more
complex
complex(a,b)

a and b: real parts of a + bi.

Result: 1 + 2i

Learn more
real
real(z)

z: complex value. arg returns its angle in the selected angle mode; examples use radians.

Result: 1

Learn more
imag
imag(z)

z: complex value. arg returns its angle in the selected angle mode; examples use radians.

Result: 2

Learn more
conj
conj(z)

z: complex value. arg returns its angle in the selected angle mode; examples use radians.

Result: 1 − 2i

Learn more
arg
arg(z)

z: complex value. arg returns its angle in the selected angle mode; examples use radians.

Result: approximately 1.107149 radians

Learn more
matrix
matrix(rows)

rows: a rectangular nested numeric list; at most 16 by 16.

Result: A 2 × 2 explicit matrix

Learn more
det
det(A)

A: explicit matrix. det/inverse/trace need a square matrix; inverse also needs a nonsingular matrix.

Result: −2

Learn more
inverse
inverse(A)

A: explicit matrix. det/inverse/trace need a square matrix; inverse also needs a nonsingular matrix.

Result: [[-2,1],[1.5,-0.5]]

Learn more
transpose
transpose(A)

A: explicit matrix. det/inverse/trace need a square matrix; inverse also needs a nonsingular matrix.

Result: [[1,3],[2,4]]

Learn more
rref
rref(A)

A: explicit matrix. det/inverse/trace need a square matrix; inverse also needs a nonsingular matrix.

Result: [[1,0],[0,1]]

Learn more
trace
trace(A)

A: explicit matrix. det/inverse/trace need a square matrix; inverse also needs a nonsingular matrix.

Result: 5

Learn more
identity
identity(n)

n: positive integer at most 16; creates an n × n identity matrix.

Result: [[1,0],[0,1]]

Learn more
matmul
matmul(A,B)

A and B: matrices whose inner dimensions agree; this is a matrix product.

Result: [[1,2],[3,4]]

Learn more
normaldist
normaldist(mean=0,sd=1)

sd > 0. Parameters are optional.

Result: A distribution object; use its methods below.

Learn more
uniformdist
uniformdist(lower=0,upper=1)

upper > lower. Parameters are optional.

Result: A distribution object; use its methods below.

Learn more
tdist
tdist(df)

Positive degrees of freedom, up to 1,000,000.

Result: A distribution object; use its methods below.

Learn more
chisqdist
chisqdist(df)

Positive degrees of freedom, up to 1,000,000.

Result: A distribution object; use its methods below.

Learn more
binomialdist
binomialdist(trials,p=0.5)

Integer trials from 0 to 1,000,000; probability p in [0,1].

Result: A distribution object; use its methods below.

Learn more
poissondist
poissondist(mean)

Mean from 0 to 1,000,000.

Result: A distribution object; use its methods below.

Learn more
exponentialdist
exponentialdist(rate)

Positive rate up to 1,000,000.

Result: A distribution object; use its methods below.

Learn more
geodist
geodist(p)

0 < p ≤ 1; counts trials until the first success, starting at 1.

Result: A distribution object; use its methods below.

Learn more
pdf
d.pdf(x)

d: distribution; x: value. Returns density for continuous distributions or probability mass for discrete ones.

Result: Then d.pdf(0) ≈ 0.398942

Learn more
cdf
d.cdf(x) or d.cdf(lower,upper)

Cumulative probability through x, or interval probability between the supplied bounds.

Result: Then d.cdf(0.5) = 0.5

Learn more
inversecdf
d.inversecdf(p)

p: probability in [0,1]. Infinite endpoint quantiles may be undefined in finite output.

Result: Then d.inversecdf(0.5) = 0

Learn more
distribution sampling
d.random(count,seed)

count: nonnegative integer; seed: optional finite number. Keep the seed to reproduce the sample.

Result: Then d.random(3,42) gives three integers between 0 and 10

Learn more
histogram
histogram(L,width)

L: finite values; width: optional positive bin width. At most 100 bins.

Result: Two occupied bins with two observations each

Learn more
boxplot
boxplot(L,offset,height)

L: finite values; offset: vertical center (default 1); height: positive box height (default 1). Uses type-7 quartiles and min–max whiskers.

Result: Median 2, Q1 1, Q3 3; box centered at y = 2 with height 1

Learn more
dotplot
dotplot(L,width)

L: up to 2,000 finite values; width: optional positive grouping width.

Result: Two stacked dots at 1 and one at 2

Learn more

Screenshot

Copy this text

Your browser could not copy automatically. Select and copy the text below.