Function Calculator
Evaluate a mathematical function f(x) at a given value using the built-in expression parser.
About Function Calculator
This calculator evaluates any mathematical expression at a given value of x using the built-in expression parser. Supported operations include arithmetic (+, -, *, /, ^), trigonometric functions (sin, cos, tan), logarithms (ln, log), exponentials (exp), square roots (sqrt), and more.
Formula
Function evaluation
f(x) = [your expression evaluated at the given x]
- x
- The input value
- f(x)
- The computed result
Worked example
With the default values below, Function Calculator returns f(x) of 5.00000000. Change any input above and every figure here is recalculated in your browser.
Inputs used
- f(x)
- x^2 + 3*x - 5
- x value
- 2
Results
- f(x)
- 5.00000000
- Expression Evaluated
- f(2) = 5
Step by step
- 1Values used
- 2Function evaluation
- 3f(x)= 5.00000000
- 4Expression Evaluated= f(2) = 5
Assumptions and limits
- The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 8 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
What functions are supported?
sin, cos, tan, asin, acos, atan, ln, log (base 10), exp, sqrt, cbrt, abs, floor, ceil, round, and constants pi and e.
How do I write exponents?
Use ^ for exponentiation: x^2 means x squared, x^(1/3) means cube root of x.
