三次方程公式:
判别(Δ) = q3 + r2
q = (3c- b2)/9
r = -27d + b(9c-2b2)
s = r + math.sqrt(判别)
t = r - math.sqrt(判别)
term1 = math.sqrt(3.0)*((-t + s)/2)
r13= 2 * math.sqrt(q)
x1=(- term1 + r13*math.cos(q3/3) )
x2=(- term1 + r13*math.cos(q3+(2*math.PI)/3) )
x3=(- term1 + r13*math.cos(q3+(4*math.PI)/3) )
文章源自公式库网-https://www.gongshiku.com/html/201912/yiyuansancifangchengjisuanqi.html 文章源自公式库网-https://www.gongshiku.com/html/201912/yiyuansancifangchengjisuanqi.html
运营不易,
感谢支持!

我的微信
我的微信公众号
我的微信公众号扫一扫

我的公众号