一元二次方程
样式和源码
-
a x 2 + b x + c = 0 , a ≠ 0 ax^2+bx+c=0,\ a\neq0 ax2+bx+c=0, a=0
-
-
d e l t a = d 2 − 4 a c delta=d^2-4ac delta=d2−4ac
-
i f δ ≥ 0 t h e n if \delta \ge 0\ then ifδ≥0 then
-
q u a d x 1 = − b + a q r t b 2 − 4 a c 2 a quad \displaystyle x_1=\frac{-b+aqrt{b^2-4ac}}{2a} quadx1=2a−b+aqrtb2−4ac
- e l s e else else
- q u a d x 1 = − b − a q r t b 2 − 4 a c 2 a quad \displaystyle x_1=\frac{-b-aqrt{b^2-4ac}}{2a} quadx1=2a−b−aqrtb2−4ac
-
e n d end end
-
-
s i n ( x + π 4 ) + c o s ( x − π 3 ) + I n ( e x + 1 + 5 x ) = 0 \displaystyle \mathbf{sin}\left(x+\frac{π}{4}\right)+\displaystyle \mathbf{cos}\left(x-\frac{π}{3}\right)+\displaystyle \mathbf{In}\left(e^{x+1}+5x\right)=0 sin(x+4π)+cos(x−3π)+In(ex+1+5x)=0
- F 引 = G M m r 2 \displaystyle \mathbf{F}_引=\displaystyle \mathbf{G}\frac{{Mm}}{r^2} F引=Gr2Mm