Math & education

Scientific Calculator

Evaluate bounded scientific expressions with functions, constants, powers, factorials, and explicit degree or radian mode—without JavaScript eval.

Runs locallyKeyboard friendlyUpdated: August 30, 2026

Calculation method version: SCIENTIFIC-1.0 · Last reviewed: 2026-08-30

Enter your scenario

Results update as valid inputs change. Correct any highlighted field before relying on the answer.

Supported: + − × ÷ ^, parentheses, %, !, pi, e, sin, cos, tan, asin, acos, atan, sqrt, ln, log, abs, exp, floor, ceil, and round.
This setting affects trigonometric inputs and inverse-trigonometric results.

Primary result

Result1
Expressionsin(30)^2 + cos(30)^2
Angle modeDegrees
Scientific notation1.00000000e+0
The restricted expression parser evaluates the entered expression in degrees mode without executing JavaScript.
Use the result

From calculation to decision

Use the scientific calculator to check a bounded numerical expression while keeping the expression and angle unit visible with the result.

What changes the result most

Parentheses and degree/radian mode usually move the result most. For example, sin(30) is 0.5 in degrees but about −0.988 in radians.

What to do next

Change one high-leverage input, compare the new result with the default, and confirm any current rate, policy, quote, or external rule that controls the real decision.

Save and report

Calculation happens in this browser. Shared links include the visible input values, so inspect the URL before sending a sensitive scenario.

If a result appears wrong, report an issue for this calculator.

When this calculation helps

Use the scientific calculator to check a bounded numerical expression while keeping the expression and angle unit visible with the result.

The result separates the primary answer from supporting values so you can see both the number and the assumptions that produced it. Adjust one field at a time when comparing scenarios; changing several inputs together makes it harder to identify why the answer moved.

Formula / methodology

A restricted recursive-descent parser tokenizes numbers, names, parentheses, and declared operators. Exponentiation binds more tightly than multiplication; multiplication binds more tightly than addition. Exponentiation is right-associative.

sin(30)² + cos(30)² = 1 in degree mode log(1000) = 3 5! = 120 50% = 0.5

The parser caps expression length, token count, nesting depth, and factorial range. It never passes the expression to eval or a function constructor.

Assumptions and limitations

  • Log means base 10; ln means the natural logarithm.
  • Percent is a postfix operator that divides the preceding value by 100.
  • Factorial accepts whole numbers from 0 through 170.
  • Complex numbers, matrices, variables, implicit multiplication, and symbolic algebra are outside this first version.

Worked examples

Trigonometric identity

In degrees, sin(30)^2 + cos(30)^2 returns 1.

Mixed functions

sqrt(81) + log(1000) + 4! returns 36 because 9 + 3 + 24 = 36.

Common mistakes

  • Using degree-sized inputs while radian mode is selected.
  • Writing implicit multiplication such as 2pi instead of 2*pi.
  • Using brackets or function names that are not in the supported list.

FAQ

Can an expression run code?

No. Only explicitly recognized mathematical tokens are accepted, and unknown names or characters become an input error.

Why is a very large factorial rejected?

Factorials above 170 exceed the supported finite-number range and are blocked before calculation.

Sources and assumptions

The operator relationships are mathematical identities documented in the Source Guide. The security boundary is part of this calculator’s method: expressions are parsed, not executed as program code.

Updated: August 30, 2026. Method: SCIENTIFIC-1.0. Inputs remain visitor-entered unless a data timestamp is shown beside them.

Calculator-specific review

Decision supported: Evaluate a bounded scientific expression without executing user-supplied JavaScript.

Inputs and two scenarios

The inputs below are scenario controls, not facts supplied by a source. Change the values to see how this calculator responds to the decision you are making.

published default example: Angle mode: Degrees; Expression: sin(30)^2 + cos(30)^2. Expected output: Result: 1; Expression: sin(30)^2 + cos(30)^2; Angle mode: Degrees; Scientific notation: 1.00000000e+0.

materially different higher scientific calculator scenario: Angle mode: Radians; Expression: log(1000) + 4!. Expected output: Result: 27; Expression: log(1000) + 4!; Angle mode: Radians; Scientific notation: 2.70000000e+1.

What changes the result

Parentheses, operator order, and degree/radian mode can materially change the result.

Method and evidence boundary

A restricted parser applies declared precedence, constants, functions, degree/radian conversion, percent, and factorial rules. The operators and functions are mathematical identities implemented in the local parser.

Editorial review date: 2026-08-30. Recheck the entered assumptions against the current product documentation, quote, code, or professional guidance when the decision is consequential.