Function Grapher
Plot functions online and export ready-to-use SVG. Supports explicit y=f(x), polar r=f(theta), parametric pairs and implicit F(x,y)=0, with adjustable domain, sample count and grid style.
Plot type:
From:
To:
Samples:
Grid:
Colour:
Plot preview
—
Statistics Result
Download CSV
| Item | Value |
|---|
Introduction to the tool and how to use it
Plot an equation online and turn a mathematical expression straight into a figure, outputting standard SVG code — handy for web illustrations, teaching diagrams, or exercise answers.
Four equation types:
· Explicit function y=f(x) — the most common; just enter an expression in x, for example x^2/4-3, sin(x), or exp(-x^2/2);
· Polar r=f(θ) — enter the radius as an expression of the angle in radians; write theta or t for θ; for example 2*cos(3*theta) draws a three-leaf rose;
· Parametric — enter two lines, the first x(t) and the second y(t) (semicolon on one line also works); for example cos(t) and sin(t) draw a circle;
· Implicit F(x,y)=0 — enter an expression in x and y, drawn with the contour method; for example x^2+y^2-25 draws a circle and x^2/9+y^2/4-1 draws an ellipse.
Supported syntax:
· Operators + - * / % ^ (power); parentheses may nest, and the multiplication sign may be omitted (2x and 3(x+1) both parse);
· Constants pi, tau, e;
· Functions sin / cos / tan / asin / acos / atan / sinh / cosh / tanh / exp / ln / log (base 10) / log2 / sqrt / cbrt / abs / sign / floor / ceil / round / sec / csc / cot / radians / degrees;
· Two-argument functions atan2, pow, hypot, mod, plus variadic min / max.
Note: expressions are evaluated by this page's own parser (eval is not used), and a typo yields a specific message; points beyond ±10000 (such as tan's vertical asymptote) are broken automatically, and implicit functions are drawn by the contour method; both axes scale equally, so a plotted circle looks like a circle.
Four equation types:
· Explicit function y=f(x) — the most common; just enter an expression in x, for example x^2/4-3, sin(x), or exp(-x^2/2);
· Polar r=f(θ) — enter the radius as an expression of the angle in radians; write theta or t for θ; for example 2*cos(3*theta) draws a three-leaf rose;
· Parametric — enter two lines, the first x(t) and the second y(t) (semicolon on one line also works); for example cos(t) and sin(t) draw a circle;
· Implicit F(x,y)=0 — enter an expression in x and y, drawn with the contour method; for example x^2+y^2-25 draws a circle and x^2/9+y^2/4-1 draws an ellipse.
Supported syntax:
· Operators + - * / % ^ (power); parentheses may nest, and the multiplication sign may be omitted (2x and 3(x+1) both parse);
· Constants pi, tau, e;
· Functions sin / cos / tan / asin / acos / atan / sinh / cosh / tanh / exp / ln / log (base 10) / log2 / sqrt / cbrt / abs / sign / floor / ceil / round / sec / csc / cot / radians / degrees;
· Two-argument functions atan2, pow, hypot, mod, plus variadic min / max.
Note: expressions are evaluated by this page's own parser (eval is not used), and a typo yields a specific message; points beyond ±10000 (such as tan's vertical asymptote) are broken automatically, and implicit functions are drawn by the contour method; both axes scale equally, so a plotted circle looks like a circle.
How to use
- Enter the expression on the left (switching type pre-fills the common variable range for that type).
- Set the variable range (constants such as pi may be used, for example -2*pi to 2*pi), the sample count (more points make it smoother), and the grid style.
- Choose the curve color.
- Click start: the preview shows above, the SVG code prints on the right (copy or export), and the table below gives the type, expression, sample count, and value range.
Message board
-
No messages yet — be the first to say something.