Welcome to Fermat
Write Markdown and LaTeX together, seamlessly.
Inline Math
Euler's identity: eiπ+1=0
The quadratic formula gives us x=2a−b±b2−4ac inline.
Block Math
∫−∞∞e−x2dx=π
Maxwell's equations in differential form:
∇⋅E=ε0ρ
∇×B=μ0J+μ0ε0∂t∂E
Mixed Content
Here's a list with math:
- The Pythagorean theorem: a2+b2=c2
- Bayes' theorem: P(A∣B)=P(B)P(B∣A)P(A)
- A matrix: (acbd)
"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