Example Expressions
Basic Operations
Simple addition
Adding two numbers: 5 plus 3 equals 8
Simple subtraction
Subtracting 4 from 10 equals 6
Simple multiplication
Multiplying 6 by 7 equals 42
Simple division
Dividing 20 by 5 equals 4
Multiple operations (addition and subtraction)
First 10+5=15, then 15-3=12. Addition and subtraction have the same precedence and are evaluated from left to right.
Multiple operations (multiplication and division)
First 4*3=12, then 12/2=6. Multiplication and division have the same precedence and are evaluated from left to right.
Order of Operations
Multiplication before addition
Multiplication has higher precedence than addition: 3*4=12, then 2+12=14
Parentheses change the order
Operations in parentheses are performed first: (2+3)=5, then 5*4=20
Division before subtraction
Division has higher precedence than subtraction: 4/2=2, then 10-2=8
Multiple divisions (left to right)
When operations have the same precedence, evaluate from left to right: 8/4=2, then 2/2=1
Parentheses, multiplication, and subtraction
First (3+4)=7, then 2*7=14, finally 14-5=9
Division with parentheses
First (2+3)=5, then 10/5=2
Exponents & Roots
Simple exponent
2 raised to the power of 3: 2*2*2=8
Square root
The square root of 16 is 4, because 4*4=16
Exponents and addition
Exponents are calculated before addition: 2^3=8, then 8+4=12
Multiple square roots
sqrt(9)=3, sqrt(16)=4, so sqrt(9)+sqrt(16)=3+4=7
Exponent with expression in parentheses
The expression in parentheses is evaluated first: 3+1=4, then 2^4=16
Cube root
The cube root of 27 is 3, because 3*3*3=27
Trigonometry
Sine of 0 radians
The sine of 0 radians is 0
Cosine of 0 radians
The cosine of 0 radians is 1
Sine of π/2 radians (90 degrees)
The sine of π/2 radians is 1
Cosine of π radians (180 degrees)
The cosine of π radians is -1
Tangent of π/4 radians (45 degrees)
The tangent of π/4 radians is 1
Sum of trigonometric functions
sin(π/6)=0.5 and cos(π/3)=0.5, so the sum is 0.5+0.5=1
Logarithms
Base-10 logarithm of 10
The base-10 logarithm of 10 is 1, because 10¹=10
Base-10 logarithm of 100
The base-10 logarithm of 100 is 2, because 10²=100
Natural logarithm of e
The natural logarithm (base e) of e is 1, because e¹=e
Natural logarithm of e raised to a power
The natural logarithm (base e) of e^3 is 3, because ln(e^x)=x
Logarithm of a power of 10
log(10^3)=3, because log(10^n)=n
Special Functions
Absolute value
The absolute value of -15 is 15
Floor function (round down)
The floor function rounds down to the nearest integer: floor(7.8)=7
Ceiling function (round up)
The ceiling function rounds up to the nearest integer: ceil(3.2)=4
Rounding to nearest integer
The round function rounds to the nearest integer: round(4.7)=5
Maximum value
Returns the largest value from the given numbers: max(4,9,2)=9
Minimum value
Returns the smallest value from the given numbers: min(5,2,8)=2
Complex Expressions
Combined operations with parentheses
First (5+3)=8 and (10-7)=3, then 8*3=24, finally 24/2=12
Pythagorean theorem calculation
3^2=9, 4^2=16, so sqrt(9+16)=sqrt(25)=5
Trigonometric identity
This is the Pythagorean identity: sin²(θ)+cos²(θ)=1 for any angle θ
Factorial
5! = 5×4×3×2×1 = 120
Product of powers with same base
2^3=8, 2^2=4, so 2^3*2^2=8*4=32. Also equals 2^(3+2)=2^5=32
Change of base formula
This is equivalent to log₁₀(100), which equals 2
This evaluator supports basic arithmetic operations (+, -, *, /), exponents (^), parentheses, and functions like sin(), cos(), sqrt(), log(), abs(), floor(), ceil(), and more. Click the book icon to explore mathematical terms.