915 chars
EditorMarkdown + LaTeX
PreviewRendered output

Welcome to Fermat

Write Markdown and LaTeX together, seamlessly.


Inline Math

Euler's identity: eiπ+1=0e^{i\pi} + 1 = 0

The quadratic formula gives us x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} inline.

Block Math

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}

Maxwell's equations in differential form:

E=ρε0\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0} ×B=μ0J+μ0ε0Et\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}

Mixed Content

Here's a list with math:

  • The Pythagorean theorem: a2+b2=c2a^2 + b^2 = c^2
  • Bayes' theorem: P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) \, P(A)}{P(B)}
  • A matrix: (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix}

"I have discovered a truly marvelous proof of this, which this margin is too narrow to contain." — Pierre de Fermat

# Code blocks are left alone
def fermat(n):
    return n ** 2