REFERENCE

Function & Syntax Reference

Every operator and function the calculator supports, with its input syntax, domain and a worked example. Example results are the values the actual calculation engine produces.

Operators and precedence

Higher-precedence operations are evaluated first. Within the same level, evaluation goes left to right, except powers, which go right to left.

LevelOperationExampleResult
1Brackets ( ), function calls(1+2)×39
2Postfix ! % °3!²36
3Power ^ (right-associative)2^3^2512
4Unary sign - +-2^2−4
5× ÷ mod, implied multiplication6÷2(1+2)9
6+ 10−4−33

-2^2 = −4 follows the same convention as the mathematical notation −2². To square a negative number, bracket it: (-2)^2. A sign in the exponent works as written (2^-3 = 0.125).

Implied multiplication (, 3(4+5), 2x) has the same precedence as ordinary multiplication. So 1/2π is (1/2)×π; for 1/(2π) you need brackets. Two numbers separated by a space, as in 2 3, is an error.

% only divides by 100: 200×15% = 30, 100+10% = 100.1 (the desk-calculator markup rule is not applied).

° converts a value in degrees to the current angle unit. Even in RAD mode, sin(30°) = 0.5.

Numbers and input rules

  • Decimal point: 3.5, .5 · Exponent notation: 6.02E23, 1.6e-19 (E or e immediately after a number, followed by an integer)
  • Without an integer after e, as in 2e, it means multiplication by Euler's number e (2e ≈ 5.43656).
  • Base literals: 0x1F = 31, 0b1011 = 11, 0o17 = 15
  • You can type multiplication as × or *, division as ÷ or /, and subtraction as or -.
  • Functions always need brackets (sin(30)). Separate multiple arguments with commas.
  • Unclosed brackets at the end of an expression are closed automatically: sin(30sin(30).
  • Names are case-sensitive; when written together, the longest name is matched first (2πx = 2·π·x).
  • Starting with an operator, as in ×2, puts the previous result Ans in front.

Trigonometric and inverse trig functions (angle unit applies)

SyntaxDescriptionExampleResult (DEG)
sin(x)Sinesin(30)0.5
cos(x)Cosinecos(60)0.5
tan(x)Tangent. Undefined at odd multiples of 90°tan(45)1
asin(x)Inverse sine, −1 ≤ x ≤ 1. Result in the current angle unitasin(0.5)30
acos(x)Inverse cosine, −1 ≤ x ≤ 1acos(-0.5)120
atan(x)Inverse tangentatan(1)45
atan2(y, x)Argument of point (x, y). Quadrant-aware (−180° to 180°)atan2(1, -1)135

Hyperbolic functions (independent of angle unit)

SyntaxDescriptionExampleResult (DEG)
sinh(x)Hyperbolic sinesinh(1)1.17520119364
cosh(x)Hyperbolic cosinecosh(1)1.54308063482
tanh(x)Hyperbolic tangenttanh(0.5)0.46211715726
asinh(x)Inverse hyperbolic sineasinh(1)0.88137358702
acosh(x)Inverse hyperbolic cosine, x ≥ 1acosh(2)1.31695789692
atanh(x)Inverse hyperbolic tangent, −1 < x < 1atanh(0.5)0.549306144334

Exponentials and logarithms

SyntaxDescriptionExampleResult (DEG)
log(x)Common logarithm (base 10), x > 0log(1000)3
ln(x)Natural logarithm (base e), x > 0ln(e^2)2
log(a, x)Logarithm to base a, logₐx — base comes firstlog(2, 8)3
log2(x)Binary logarithmlog2(1024)10
exp(x)eˣ (same as e^x)exp(1)2.71828182846
10^xPower of ten10^-30.001

Powers and roots

SyntaxDescriptionExampleResult (DEG)
x^yPower. A negative base gives a real result only for fractional exponents with an odd denominator(-8)^(1/3)−2
x² x³Square and cube (x^2, x^3)12²144
sqrt(x) · √xSquare root, x ≥ 0. √ applies only to the number or bracket right after it√(2)1.41421356237
cbrt(x)Cube root (negatives allowed)cbrt(-27)−3
root(x, n)n-th root of x. Negative x only when n is oddroot(81, 4)3
x^(-1)Reciprocal4^(-1)0.25

Factorials and combinatorics

SyntaxDescriptionExampleResult (DEG)
n!Factorial. Integers 0 to 170 (171! overflows)10!3628800
nPr(n, r)Permutations n!/(n−r)!nPr(10, 3)720
nCr(n, r)Combinations n!/(r!(n−r)!)nCr(45, 6)8145060
gcd(a, b)Greatest common divisor (integers)gcd(84, 36)12
lcm(a, b)Least common multiple (integers)lcm(4, 6)12

Rounding and more

SyntaxDescriptionExampleResult (DEG)
round(x) · round(x, n)Round (to n decimal places). .5 rounds away from zeroround(2.675, 2)2.68
floor(x)Round down (floor)floor(-2.5)−3
ceil(x)Round up (ceiling)ceil(-2.5)−2
trunc(x)Drop the fractional part (toward zero)trunc(-2.7)−2
frac(x)Fractional partfrac(3.75)0.75
abs(x)Absolute valueabs(-7.5)7.5
x mod yRemainder. Takes the sign of the divisor-7 mod 32
sign(x)Sign (−1, 0, 1)sign(-4)−1
min(…) · max(…)Minimum and maximum (any number of arguments)max(3, 9, 4)9
hypot(a, b)√(a²+b²)hypot(5, 12)13
deg(x) · rad(x)Convert radians to degrees, degrees to radiansdeg(π/3)60
x%x ÷ 100200×15%30
Degree value in the current angle unitsin(30°)0.5

Constants and variables

SyntaxDescriptionExampleResult (DEG)
π · piPi6.28318530718
eEuler's numbere^12.71828182846
φ · phiGolden ratio (1+√5)/2φ^2-φ1
AnsLast confirmed resultAns0
x · y · zVariables stored with STOx3
MIndependent memory (M+ · M−)M0
c0 · hP · NA …20 physical constants (see the constants table)c0299792458

Example results were computed with this site's calculation engine at build time (2026-09-24) and are shown to 12 significant digits.

Display formats and precision

  • NORM: plain notation when the magnitude is at least 10⁻⁹ and below 10¹²; otherwise switches to scientific notation automatically.
  • SCI: always shows a.bcd×10ⁿ with the chosen number of significant digits.
  • ENG: keeps the exponent a multiple of 3 (×10³ = k, ×10⁻⁶ = μ). Convenient for engineering units.
  • Significant digits: 6 to 15 (default 12). Internal calculation uses IEEE 754 double precision; rounding happens only for display.
  • Fractions: if the result matches a fraction with a denominator up to 10,000 within display precision, the fraction is shown too (0.75 → 3/4).
  • Multiples of π: simple multiples of π are shown as well, e.g. π/2.
  • Number bases: integer results up to 2⁵³ also show binary, octal and hexadecimal values.

Error messages

MessageCauseExample
Syntax errorUnmatched brackets or operators, function without brackets2+, sin 30, 2 3
Unknown nameUnsupported namer, sec(1)
Math errorOutside the domain√(-1), log(0), asin(2), 1/0
UndefinedThe value does not exist at that pointtan(90) (DEG)
OverflowExceeds about 1.797×10³⁰⁸171!, 10^400

→ Open the calculator