API

To get a mathematical expression into an image

The formula service provides an API to get mathematical expressions into images in the simple manner below.

SYNOPSIS

https://formula.s21g.com/?{expr}.png

Where expr is a mathematical expression in LaTeX format. For example,

https://formula.s21g.com/f(x)=\int_0^{x}g(t)\,dt.png

You can get the image below if you request the URI above from a HTML document.

Typically the request is caused from IMG tag, like this

<img src=https://formula.s21g.com/?f(x)=\int_0^{x}g(t)\,dt.png" />
<img src=https://formula.s21g.com/?f(x)=\int_0%5E%7Bx%7Dg(t)\,dt.png" />

The expr can be escaped as an URI parameter.

Requirements

This API has several requirements to use.

And we appreciate any kind of feedbacks. Feel free to contact us.