Function Calculator

Enter any function of x, evaluate it at a point, generate a table of values, and see the graph. Built with precise math parsing so you can use common math notation like sin(x), ln(x), sqrt(x), e^x, and powers x^2.

Examples: x^2, sin(x), (x^2 + 3)/(x-1), exp(0.5*x), log(x,10). Use pi and e.

Graph

If the function is defined on the chosen interval, it will be sampled and drawn below.

Supported function syntax

This function calculator uses a math engine (math.js) that supports:

  • Arithmetic: +, -, *, /, ^
  • Constants: pi, e
  • Trigonometry: sin, cos, tan, asin, acos, atan
  • Exponentials & logs: exp, ln, log10, log(a,b)
  • Roots: sqrt(x), nthRoot(x, n)
  • Piecewise via conditional ? trueExpr : falseExpr structure (basic)

If the function is undefined at some x (for example, division by zero), those points are skipped in the table and chart.

FAQs

How is this different from a simple calculator?

A normal calculator evaluates single expressions. A function calculator treats your input as f(x), so you can evaluate it at many x values, graph it, and see the derivative.

Can I plot discontinuous functions?

Yes, but points where the function is undefined will simply be missing from the chart, resulting in gaps.

Can I find inverse functions?

This tool focuses on evaluation, tables and plotting. For complex symbolic operations like inverses for arbitrary functions, you typically need a CAS (computer algebra system) such as Symbolab or WolframAlpha.