hasibai

Math

Scientific calculator

Type an expression or use the keypad. Every result is kept on the tape so you can check the steps rather than trusting one number.

0
Tape
Results appear here as you calculate.

What it understands

TypeAccepted
Operators+ − * / ^ ( ) and ! for factorial
Trigonometrysin cos tan asin acos atan sinh cosh tanh
Logarithmsln (natural), log (base 10), exp
Rootssqrt, cbrt, or fractional powers such as 8^(1/3)
Two-argumentmod, pow, root, min, max, gcd — written as mod(10, 3)
Otherabs, round, floor, ceil, pi, e, Ans, % for percent

Implicit multiplication works: 2pi, 3(4+1) and 2sin(30) all parse as you would expect. The expression is parsed properly rather than passed to the browser's evaluator, so it cannot execute anything other than arithmetic.

One thing worth knowing: % is the percent key, exactly as on a physical scientific calculator, so 15% becomes 0.15 and 200*15% gives 30. It is not the remainder operator that % means in most programming languages. If you want a remainder, use mod(10, 3), which returns 1.

Order of operations

The calculator follows standard precedence: brackets, then exponents, then multiplication and division left to right, then addition and subtraction left to right. Exponents are right-associative, so 2^3^2 is 29 = 512, not 82 = 64.

Unary minus binds tighter than addition but looser than exponentiation, which is the usual mathematical convention: -3^2 evaluates to −9, because the power applies to 3 before the sign. Write (-3)^2 if you want 9.

Degrees and radians

The toggle above the keypad switches between them, and it is the single most common source of wrong trigonometric answers. In degree mode sin(30) is 0.5; in radian mode the same expression is −0.988, because 30 radians is roughly 4.8 full turns.

Calculus and most programming languages use radians. School geometry and surveying generally use degrees. If a result looks wildly wrong, check the mode indicator first.

Floating point, and why 0.1 + 0.2 is awkward

Computers store numbers in binary, and some decimal fractions have no exact binary representation — 0.1 is one of them, in the same way that 1/3 has no exact decimal form. Arithmetic on such values carries a tiny error, which is why 0.1 + 0.2 evaluates to 0.30000000000000004 in most languages.

Results here are rounded at the tenth decimal place to hide this, which is right for everyday use. If you are working to more than ten significant figures, or comparing two computed values for exact equality, be aware that the underlying arithmetic has limits at around 15-17 significant digits.

Common questions

Why does sin(30) give a different answer than my other calculator?

Almost certainly an angle-mode difference. In degrees sin(30) = 0.5; in radians it is −0.988. Check the DEG/RAD toggle on both.

How do I calculate a root other than a square root?

Use a fractional exponent. The cube root of 27 is 27^(1/3), and the fifth root of 32 is 32^(1/5). The brackets matter — 27^1/3 would be read as (27^1) ÷ 3.

What does Ans do?

It holds the result of the last calculation you confirmed with =. Pressing Ans inserts that value, so you can chain calculations without retyping. It is useful for long working where each step builds on the previous one.

Can I use this for logarithms in another base?

Yes, using the change-of-base rule: log base b of x is ln(x)/ln(b). For log base 2 of 64, enter ln(64)/ln(2) to get 6.

Does % mean percent or remainder?

Percent, as it does on a physical scientific calculator: 10% becomes 0.1, so 200*15% gives 30. It is not the remainder operator that % means in most programming languages. For remainders use mod(10, 3), which returns 1.