Plot a function in the browser

No library, no plugin and no eval — the expression is tokenised, converted to reverse Polish notation and evaluated on a stack.

How Graphing Calculator works

This is a calculation, not a lookup: the expression is evaluated in the page and the steps are shown so the answer can be checked by hand. Because nothing is looked up remotely, the tool keeps working with the network off and cannot quietly change its answer between visits.

That is the whole architecture: static files, one script, no upload endpoint to leak or log. Close the tab and the work is gone.

Good to know

  • Works offline once loaded, including on flights and in locked-down networks.
  • No file size limit beyond your device's own memory.
  • Free to use, with no account and no usage counter.
  • Results are produced locally, so they are not logged or shared with anyone.

Questions

Which functions are supported?

sin, cos, tan, sqrt, abs, log (base 10), ln, exp, floor, ceil, round, plus the constants pi and e and the variable x.

Why not just use eval?

Because eval runs whatever it is given, and this site's content policy blocks it anyway. A parser cannot execute anything — it can only produce a number.

How is the vertical range chosen?

From the sampled values in the window, with 8% padding. That is why a function with a pole can look compressed — narrow the x range to see the detail.

Can I plot two functions?

Not in this version. Plot them one at a time and compare against the grid.

Keep going

More math tools