x^y, sqrt, log, ln, sin, cos, tan and their inverses, !, nCr, abs and mean, each with an example in the first table below. Type the name and the value in parentheses, such as log(1000), which gives 3.Try it in one click: sin(30), log(1000) or nCr(52, 5). Jump to: core functions, calculator buttons, trigonometry, statistics, order of operations or common mistakes. The graphing calculator and math solver read the same syntax.
The 12 functions most people use
This short list covers most homework and exam questions. Every result was produced by the calculator in its default settings, degree mode for angles.
| Function | What to type | Example | Result |
|---|---|---|---|
| Power | x^y | 2^10 | 1024 |
| Square root | sqrt(x) or √x | sqrt(144) | 12 |
| Common logarithm (base 10) | log(x) | log(1000) | 3 |
| Natural logarithm (base e) | ln(x) | ln(e^3) | 3 |
| Sine, cosine, tangent | sin(x), cos(x), tan(x) | sin(30) | 0.5 |
| Inverse sine (sin⁻¹) | asin(x) | asin(0.5) | 30 |
| Factorial | x! | 10! | 3628800 |
| Combinations (nCr) | nCr(n, r) | nCr(52, 5) | 2598960 |
| Permutations (nPr) | nPr(n, r) | nPr(10, 3) | 720 |
| Absolute value | abs(x) or |x| | abs(-7.5) | 7.5 |
| Mean (average) | mean(a, b, …) | mean(2, 4, 9) | 5 |
| Sample standard deviation | stdev(a, b, …) | stdev(2, 4, 4, 4, 5, 5, 7, 9) | 2.138089935 |
What the buttons on a scientific calculator do
Handheld calculators print each function on a key, often with a second function above it that you reach with SHIFT or 2nd. The table matches common key labels to what they do and what to type here, so you can follow a textbook or a Casio, Sharp or TI worked example.
| Key | What it does | Type here | Example |
|---|---|---|---|
| SHIFT or 2nd | Switches the next key to the function printed above it | The name of that function | 2nd then sin gives sin⁻¹ |
| xʸ or ^ | Raises x to the power y | ^ | 5^3 = 125 |
| x², x³, x⁻¹ | Square, cube, reciprocal | ², ³, ⁻¹ | 3⁻¹ = 1/3 |
| √, ∛, ʸ√x | Square, cube and nth root | sqrt, cbrt, root(x, n) | root(32, 5) = 2 |
| log and 10ˣ | Base-10 logarithm and its inverse | log(x), 10^x | 10^2 = 100 |
| ln and eˣ | Natural logarithm and its inverse | ln(x), e^x | e^1 = 2.718281828 |
| sin, cos, tan and sin⁻¹, cos⁻¹, tan⁻¹ | Trigonometric functions and their inverses | sin, asin and so on | tan(45) = 1 |
| DRG or MODE | Chooses degrees, radians or gradians | The angle setting on the keypad | sin(30) = 0.5 in degrees |
| EXP, EE or ×10ˣ | Enters scientific notation | e or ×10^ | 1.5e3 = 1500 |
| x!, nCr, nPr | Factorial, combinations, permutations | !, nCr, nPr | nCr(5, 2) = 10 |
| % | Divides by 100 | % | 200×15% = 30 |
| Ans | Reuses the last result | Ans | Ans^2 |
| M+, M−, MR, MC, STO | Memory: add, subtract, recall, clear, store | Keypad keys or 5 -> A | See memory and variables |
| S⇔D | Switches a result between fraction and decimal | The S⇔D key | 1/3 ↔ 0.3333333333 |
How to read this reference
- Names are not case-sensitive.
sin,SinandSINare the same function, andncrworks likenCr. Constant names are case-sensitive, so typepi, notPI. - Aliases are listed under the syntax. For example
avgandaverageboth meanmean, andarcsinmeansasin. - Optional arguments are shown in the syntax:
log(x)is base 10, whilelog(x, b)uses base b. Distribution parameters μ and σ default to 0 and 1. - Angle units. Trigonometric examples assume degree mode. Functions such as
sinread their argument in the current angle unit, and inverse functions such asasin,atan2andargreturn their result in it. Insidediff,integralandlimit, radians are always used. - Argument separator. Separate arguments with commas:
log(8, 2). With the decimal comma setting, use semicolons instead:log(8; 2). - Parentheses are optional for a single argument:
sin 30,ln 2and√16work. See the syntax notes below for how far such an argument reaches.
The 14 tables below are the complete scientific calculator functions list: all 80 functions, each with its syntax, any other names it accepts, what it does and a worked example with the result. Type in the Find a function box to narrow them down, or use Print or save as PDF for a copy without the site menus.
Showing all 80 functions.
Powers and roots
| Syntax | What it does | Example |
|---|---|---|
sqrt(x) or √xAlso: √ | Principal square root. | sqrt(144) = 12 |
cbrt(x) or ∛xAlso: ∛ | Real cube root (negative inputs give negative results). | cbrt(-27) = -3 |
root(x, n) | The nth root of x. Odd roots of negative numbers are real. | root(32, 5) = 2 |
hypot(a, b, …) | Square root of the sum of squares, √(a² + b² + …). | hypot(3, 4) = 5 |
Exponentials and logarithms
| Syntax | What it does | Example |
|---|---|---|
exp(x) | e raised to the power x. | exp(1) = 2.718281828 |
ln(x) | Natural logarithm (base e). | ln(e^3) = 3 |
log(x), log(x, b) or log_b(x) | Common logarithm (base 10); with a second argument, the logarithm of x in base b. | log(8, 2) = 3 |
log2(x) | Binary logarithm (base 2). | log2(1024) = 10 |
log10(x)Also: lg | Common logarithm (base 10). | log10(0.001) = -3 |
Trigonometry
| Syntax | What it does | Example |
|---|---|---|
sin(x) | Sine of an angle in the current angle unit. | sin(30) = 0.5 (degree mode) |
cos(x) | Cosine of an angle in the current angle unit. | cos(60) = 0.5 (degree mode) |
tan(x) | Tangent of an angle. Undefined at odd multiples of 90°. | tan(45) = 1 (degree mode) |
sec(x) | Secant, 1/cos(x). | sec(60) = 2 (degree mode) |
csc(x)Also: cosec | Cosecant, 1/sin(x). | csc(30) = 2 (degree mode) |
cot(x) | Cotangent, cos(x)/sin(x). | cot(45) = 1 (degree mode) |
asin(x) or sin^-1(x)Also: arcsin | Inverse sine, returned in the current angle unit (range −90° to 90°). | asin(0.5) = 30 (degree mode) |
acos(x) or cos^-1(x)Also: arccos | Inverse cosine (range 0° to 180°). | acos(0) = 90 (degree mode) |
atan(x) or tan^-1(x)Also: arctan | Inverse tangent (range −90° to 90°). | atan(1) = 45 (degree mode) |
atan2(y, x) | Angle of the point (x, y) measured from the positive x-axis, using the signs of both coordinates (range −180° to 180°). | atan2(1, -1) = 135 (degree mode) |
acot(x)Also: arccot | Inverse cotangent, atan(1/x), with acot(0) = 90°. | acot(1) = 45 (degree mode) |
asec(x)Also: arcsec | Inverse secant, acos(1/x). | asec(2) = 60 (degree mode) |
acsc(x)Also: arccsc | Inverse cosecant, asin(1/x). | acsc(2) = 30 (degree mode) |
Hyperbolic functions
| Syntax | What it does | Example |
|---|---|---|
sinh(x) | Hyperbolic sine, (eˣ − e⁻ˣ)/2. | sinh(1) = 1.175201194 |
cosh(x) | Hyperbolic cosine, (eˣ + e⁻ˣ)/2. | cosh(0) = 1 |
tanh(x) | Hyperbolic tangent, sinh(x)/cosh(x). | tanh(0.5) = 0.4621171573 |
sech(x) | Hyperbolic secant, 1/cosh(x). | sech(0) = 1 |
csch(x) | Hyperbolic cosecant, 1/sinh(x). | csch(1) = 0.8509181282 |
coth(x) | Hyperbolic cotangent, cosh(x)/sinh(x). | coth(1) = 1.313035285 |
asinh(x)Also: arsinh, arcsinh | Inverse hyperbolic sine. | asinh(1) = 0.8813735870 |
acosh(x)Also: arcosh, arccosh | Inverse hyperbolic cosine (x ≥ 1). | acosh(2) = 1.316957897 |
atanh(x)Also: artanh, arctanh | Inverse hyperbolic tangent (−1 < x < 1). | atanh(0.5) = 0.5493061443 |
Angles
| Syntax | What it does | Example |
|---|---|---|
x° or deg(x) | Marks an angle as degrees and converts it to the current angle unit. | 180° (in radian mode) = 3.141592654 |
rad(x) | Marks an angle as radians and converts it to the current angle unit. | rad(pi) (in degree mode) = 180 |
grad(x)Also: gon | Marks an angle as gradians (400 to a full turn) and converts it to the current unit. | grad(100) (in degree mode) = 90 |
Rounding and parts
| Syntax | What it does | Example |
|---|---|---|
abs(x) or |x| | Absolute value; for a complex number, its modulus. | abs(-7.5) = 7.5 |
sign(x)Also: sgn | Sign of x: −1, 0 or 1. | sign(-3) = -1 |
floor(x) | Greatest integer less than or equal to x. | floor(-2.5) = -3 |
ceil(x)Also: ceiling | Least integer greater than or equal to x. | ceil(2.1) = 3 |
round(x) or round(x, n) | Rounds half away from zero, to n decimal places (negative n rounds to tens, hundreds…). | round(2.675, 2) = 2.68 |
trunc(x) or int(x)Also: int | Integer part of x (rounds toward zero). | trunc(-4.8) = -4 |
frac(x) | Fractional part of x, x − trunc(x). | frac(3.25) = 0.25 |
Number theory
| Syntax | What it does | Example |
|---|---|---|
mod(a, n) | Remainder of a ÷ n, taking the sign of n (floored division). | mod(-7, 3) = 2 |
rem(a, n) | Remainder of a ÷ n, taking the sign of a (truncated division). | rem(-7, 3) = -1 |
gcd(a, b, …) | Greatest common divisor of whole numbers. | gcd(84, 126) = 42 |
lcm(a, b, …) | Least common multiple of whole numbers. | lcm(4, 6, 10) = 60 |
Combinatorics
| Syntax | What it does | Example |
|---|---|---|
x! or factorial(x)Also: fact | n! = 1 × 2 × … × n. Non-integers use Γ(x + 1). | 10! = 3628800 |
nCr(n, r)Also: ncr, binomial, choose, comb | Combinations: ways to choose r items from n when order does not matter. | nCr(52, 5) = 2598960 |
nPr(n, r)Also: npr, perm | Permutations: ordered arrangements of r items chosen from n. | nPr(10, 3) = 720 |
Statistics
| Syntax | What it does | Example |
|---|---|---|
mean(x₁, x₂, …)Also: avg, average | Arithmetic mean of the arguments. | mean(2, 4, 9) = 5 |
median(x₁, x₂, …) | Middle value of the sorted arguments. | median(7, 1, 3, 10) = 5 |
stdev(x₁, x₂, …)Also: sd, stdevs | Sample standard deviation (divides by n − 1). | stdev(2, 4, 4, 4, 5, 5, 7, 9) = 2.138089935 |
stdevp(x₁, x₂, …)Also: sdp | Population standard deviation (divides by n). | stdevp(2, 4, 4, 4, 5, 5, 7, 9) = 2 |
variance(x₁, x₂, …)Also: var | Sample variance (divides by n − 1). | variance(1, 2, 3, 4) = 1.666666667 |
variancep(x₁, x₂, …)Also: varp | Population variance (divides by n). | variancep(1, 2, 3, 4) = 1.25 |
min(x₁, x₂, …) | Smallest argument. | min(4, -2, 9) = -2 |
max(x₁, x₂, …) | Largest argument. | max(4, -2, 9) = 9 |
total(x₁, x₂, …) | Sum of the arguments. For a sum over an index, use sum(). | total(1.5, 2.5, 6) = 10 |
Probability distributions
| Syntax | What it does | Example |
|---|---|---|
normalpdf(x, μ, σ)Also: normpdf | Normal probability density at x (μ = 0, σ = 1 if omitted). | normalpdf(0) = 0.3989422804 |
normalcdf(lower, upper, μ, σ)Also: normcdf | Probability that a normal variable lies between lower and upper. Use -inf or inf for open bounds. | normalcdf(-1.96, 1.96) = 0.9500042097 |
invnorm(p, μ, σ)Also: invNorm, norminv | Value with left-tail area p under the normal curve. | invnorm(0.975) = 1.959963985 |
binompdf(n, p, k) | Binomial probability of exactly k successes in n trials. | binompdf(10, 0.5, 3) = 0.1171875 |
binomcdf(n, p, k) | Binomial probability of at most k successes in n trials. | binomcdf(10, 0.5, 3) = 0.171875 |
poissonpdf(λ, k) | Poisson probability of exactly k events when the mean is λ. | poissonpdf(3, 2) = 0.2240418077 |
poissoncdf(λ, k) | Poisson probability of at most k events when the mean is λ. | poissoncdf(3, 2) = 0.4231900811 |
Special functions
| Syntax | What it does | Example |
|---|---|---|
gamma(x) | Gamma function Γ(x); Γ(n) = (n − 1)! for whole n. | gamma(0.5) = 1.772453851 |
lngamma(x)Also: lgamma | Natural logarithm of |Γ(x)|, useful when Γ(x) overflows. | lngamma(200) = 857.9336698 |
beta(a, b) | Beta function B(a, b) = Γ(a)Γ(b)/Γ(a + b) for positive a and b. | beta(2, 3) = 0.08333333333 |
erf(x) | Error function. | erf(1) = 0.8427007929 |
erfc(x) | Complementary error function, 1 − erf(x). | erfc(1) = 0.1572992071 |
Complex numbers
| Syntax | What it does | Example |
|---|---|---|
re(z)Also: real | Real part of z. | re(3+4i) = 3 |
im(z)Also: imag | Imaginary part of z. | im(3+4i) = 4 |
conj(z) | Complex conjugate of z. | conj(3+4i) = 3 − 4i |
arg(z)Also: angle | Argument (angle) of z in the current angle unit, from −180° to 180°. | arg(1+i) = 45 (degree mode) |
Calculus
| Syntax | What it does | Example |
|---|---|---|
diff(f, x, a)Also: derivative | Derivative of f with respect to x, evaluated at x = a. Angles are always in radians inside calculus functions. | diff(x^3, x, 2) = 12 |
integral(f, x, a, b)Also: integrate | Definite integral of f from x = a to x = b (adaptive Gauss–Kronrod quadrature; a or b may be ±inf). | integral(x^2, x, 0, 3) = 9 |
sum(f, k, a, b)Also: Σ | Sum of f for k = a, a + 1, …, b (whole-number bounds, up to 1,000,000 terms). | sum(k^2, k, 1, 10) = 385 |
prod(f, k, a, b)Also: product, Π | Product of f for k = a, a + 1, …, b. | prod(k, k, 1, 6) = 720 |
limit(f, x, a) or limit(f, x, a, ±1)Also: lim | Numerical limit of f as x approaches a (inf allowed). A fourth argument of 1 or −1 takes the right- or left-hand limit. | limit(sin(x)/x, x, 0) = 1 |
Random numbers
| Syntax | What it does | Example |
|---|---|---|
rand()Also: random | Uniform random number in [0, 1). | rand() = e.g. 0.4170220047 |
randint(a, b) | Uniform random whole number from a to b inclusive. | randint(1, 6) = e.g. 4 |
Operator precedence
Operators are applied in the order below, from the first row to the last. Operators in the same row are applied from left to right, except powers, which group from right to left.
| Level | Operators | Example | Result |
|---|---|---|---|
| 1 | Parentheses, function calls, absolute value bars |x| | 2*(3 + 4) | 14 |
| 2 | Postfix: factorial !, percent %, degree mark ° | 3!^2 | 36 |
| 3 | Powers ^, grouped right to left | 2^3^2 | 512, that is 2⁹ |
| 4 | Sign: a leading - or + | -2^2 | −4, because the power comes first |
| 5 | Multiplication, division and implicit multiplication, left to right | 100/10/5 | 2 |
| 6 | Addition and subtraction, left to right | 10 - 4 - 3 | 3 |
| 7 | Comparisons =, <, >, <=, >=, != (graphing and solver) | y >= 2x + 1 | A shaded region |
| 8 | Assignment := and store -> | 5 -> A | Stores 5 in A |
An exponent may carry its own sign, so 2^-1 is 1/2. Write (-2)^2 to square a negative number; it gives 4. Comparisons cannot be chained: write x > 1 and x < 2 as two conditions rather than 1 < x < 2.
Implicit multiplication
You can leave out the multiplication sign between a number and a name, a bracket, a root or a function: 2x, 3(4 + 1), (1 + 2)(3 + 4), 2π, x y and 3sin(30) all multiply. A power binds before the implied product, so 2x^2 means 2 × x². Two plain numbers side by side, such as 2 3, are an error, because the meaning would be ambiguous.
By default an implied product has the same priority as × and ÷, so 6÷2(1+2) = 9 and 1/2x means (1/2) × x. The Implicit multiplication setting can give it higher priority instead, making these 1 and 1/(2x). See Calculator settings.
Other syntax notes
| Notation | Meaning | Example |
|---|---|---|
sin 30, ln 2 | A function without parentheses takes the following term, including implied products and powers | sin 2x = sin(2x); sin 30^2 = sin(900) |
sin x cos x | The argument stops at the next function name | sin(x) × cos(x) |
sin^-1(x), sin⁻¹ x | Inverse function | sin^-1(0.5) = 30 |
sin^2(x) | The function value squared | sin^2(30) = 0.25 |
log_2(8), log_b(x) | Logarithm in base 2 or base b | log_2(8) = 3 |
x², x³, x⁻¹ | Superscript powers | 5² = 25 |
√x, ∛x | Root of the following term; use parentheses for more | √16 = 4, √(2×8) = 4 |
30°15'20" | Degrees, minutes and seconds | 30.25555556 in degree mode |
1.5e-3, 2e3 | Scientific notation (an e followed by digits is an exponent) | 2e3 = 2000 |
**, ×, ÷, −, { } | Alternatives for ^, *, /, - and parentheses | 2**3 = 8 |
Unclosed ( | Closed automatically at the end | sqrt(16 = 4 |
Absolute value bars cannot be nested; write abs(abs(-3) - 5) rather than ||-3| - 5|. To multiply by Euler’s number directly before digits, add a sign, as in 2e*3, since 2e3 is read as 2000.
Common mistakes
Most wrong answers on a scientific calculator come from the setup rather than the function. Check these first when a result looks off.
| Mistake | What you get | Fix |
|---|---|---|
| Wrong angle mode | sin(30) = −0.9880316241 in radians | Switch to degrees for 0.5, or type sin(π/6) in radians |
| Squaring a negative without brackets | -2^2 = −4 | Type (-2)^2 = 4 |
| Root of a sum without brackets | √16+9 = 13 | Type √(16+9) = 5 |
| Mixing up log and ln | log is base 10, ln is base e | Use log(x, b) for any other base |
| Reading 6÷2(1+2) as 6 ÷ 6 | 6÷2(1+2) = 9, left to right | Add brackets: 6÷(2(1+2)) = 1 |
| Expecting a phone-style percent | 50 + 10% = 50.1, because % means ÷ 100 | Type 50 × 1.1 = 55 to add 10% |
| Swapping n and r | nCr(2, 5) = 0 | Put the larger number first: nCr(5, 2) = 10 |
| Sample or population spread | stdev = 2.138089935, stdevp = 2 for the same data | Use stdevp only when the data is the whole population |
| Input outside the domain | asin(2) and log(-1) give an error | Check the input, or switch to complex mode |
For a slower walk through the keypad, modes and display, see how to use a scientific calculator. The settings page explains angle units, decimal places and the implicit multiplication option, and constants lists the names to type for π, e and physical constants.