x^3 - 3x + 1 = 0

x^3 - 3x + 1 = 0

x^3 - x - 2x +1 = 0

x(x^2 - 1) - 2x + 1 = 0

x(x + 1)(x-1) - 2x + 2 - 1 = 0

x(x + 1)(x - 1) - 2(x-1) = 1

(x-1)( x^2 + x -2) = 1

????

x^3 = 3x - 1

CubicEquation20251114.java

=== 二分法求解(近似解,精度1e-8)===

验证 x = -1.87938524: 左边=-6.63815571, 右边=-6.63815572, 误差=9.08377640e-09

验证 x = 0.34729636: 左边=0.04188907, 右边=0.04188907, 误差=4.80404330e-09

验证 x = 1.53208889: 左边=3.59626666, 右边=3.59626666, 误差=2.86361246e-09

=== 卡尔达诺公式求解(精确解)===

验证 x = -3.25519073: 左边=-34.49286895, 右边=-10.76557218, 误差=2.37272968e+01

验证 x = 2.65365579: 左边=18.68674971, 右边=6.96096738, 误差=1.17257823e+01

验证 x = 0.60153493: 左边=0.21766197, 右边=0.80460480, 误差=5.86942826e-01

相关推荐
spencer_tseng21 小时前
math [2026 college entrance examination ] 19
math·homework
spencer_tseng2 天前
7th grade [math] (2026.06.09)
math·homework
spencer_tseng5 天前
2026.06.06 6666666
math
spencer_tseng5 天前
a^2 - b^2 = 1573
math·homework
spencer_tseng12 天前
7th grade math (2026.05.30)
math·homework
spencer_tseng13 天前
7th grade math (2026.05.29) [Linear equation in three variables]
math·homework
spencer_tseng1 个月前
7th grade math (2026.05.15)Binary Linear Equation Group
math
spencer_tseng1 个月前
math 7 (2026.05.10)
math·homework
spencer_tseng1 个月前
math 9 (zhejiang)
math·homework
spencer_tseng3 个月前
Count the matches 13805029595
math·homework