本文档用于测试在 Markdown 中使用 $$ 符号渲染数学公式。
基础代数
让我们从一些基本的代数表达式开始。
二次方程的求根公式为:
x=2a−b±b2−4ac
一个简单的线性方程:
y=mx+c
二项式平方的展开:
(a+b)2=a2+2ab+b2
微积分
Here are some common expressions from calculus.
The limit definition of a derivative:
f′(x)=limh→0hf(x+h)−f(x)
A definite integral:
∫abf(x)dx
The Taylor series expansion of ex around x=0:
ex=∑n=0∞n!xn=1+x+2!x2+3!x3+⋯
三角函数
Some basic trigonometric identities.
Pythagorean identity:
sin2θ+cos2θ=1
Angle addition formula for sine:
sin(α+β)=sinαcosβ+cosαsinβ
Euler’s formula:
eiθ=cosθ+isinθ
统计和概率
Formulas commonly used in statistics and probability.
The formula for the mean (μ) of a set of n numbers x1,x2,…,xn:
μ=n1∑i=1nxi
The probability density function of a normal distribution:
f(x∣μ,σ2)=2πσ21e−2σ2(x−μ)2
Bayes’ theorem:
P(A∣B)=P(B)P(B∣A)P(A)
线性代数
Examples from linear algebra.
A 2x2 matrix:
A=(acbd)
The determinant of a 2x2 matrix:
det(A)=ad−bc
Matrix multiplication of two matrices A and B:
C=AB
物理学
A couple of well-known physics equations.
Einstein’s mass-energy equivalence:
E=mc2
Newton’s second law of motion:
F=ma
This should provide a good test of how various mathematical formulas are rendered.