Scientific Calculator
Evaluate expressions with functions, constants and powers in your browser. Degrees or radians for trig; unknown names are refused.
What this scientific calculator does
The page parses the expression with its own tokenizer and recursive-descent parser: plus, minus, times, divide, modulo and right-associative powers, parentheses, unary minus, the constants pi and e, and the closed function list sin cos tan asin acos atan log ln sqrt cbrt abs exp, where log is base ten and ln is natural. Two plus three times four is fourteen, because multiplication binds tighter. Degrees are the default for the trig functions and radians the alternative. A name outside the list — foo in foo of two — is refused naming it, and bad parentheses are refused as mismatched.
How to use it
Scientific Calculator: paste the expression into the box above, set Unit (default "degrees"), and press Run to get the value below.
Worked example
Input:
2+3*4
Output:
14
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads expression and returns value; reloading the page discards both.
The page parses the expression with its own tokenizer and recursive-descent parser: plus, minus, times, divide, modulo and right-associative powers, parentheses, unary minus, the constants pi and e, and the closed function list sin cos tan asin acos atan log ln sqrt cbrt abs exp, where log is base ten and ln is natural. Two plus three times four is fourteen, because multiplication binds tighter. Degrees are the default for the trig functions and radians the alternative. A name outside the list — foo in foo of two — is refused naming it, and bad parentheses are refused as mismatched.
Evaluate expressions with functions, constants and powers in your browser. Degrees or radians for trig; unknown names are refused.
How to use it
Scientific Calculator: paste the expression into the box above, set Unit (default "degrees"), and press Run to get the value below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads expression and returns value; reloading the page discards both.
What to Expect
Best for
- Converting expression to value when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
2+3*4
Sample output
14
Frequently asked questions
How do I use the scientific calculator?
Scientific Calculator: paste the expression into the box above, set Unit (default "degrees"), and press Run to get the value below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.