Equation Converter

Type math like you would in Desmos. Get a function you can paste into code.

Equation

          

Graph

Syntax help

Click an example to try it.

  • x^2, x^{n+1} powers; sqrt(x), \sqrt[3]{x} roots
  • a/b or \frac{a}{b} fractions; 2x and 2sin x multiply implicitly
  • pi, tau, e; Greek as theta, \theta or θ; subscripts x_1, v_{max}
  • |x| absolute value; \sum_{n=1}^{10} n^2 and \prod
  • {x<0: -x, x} piecewise: conditions first, default last
  • Functions: sin cos tan asin acos atan atan2 sinh cosh tanh exp ln log log_2 min max mod round floor ceil sign
  • f(x, y) = … names the function; a = b without a name is an implicit curve