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

相关推荐
茉莉玫瑰花茶11 天前
线性代数 [ 矩阵与线性变化 ]
线性代数·math·1024程序员节
茉莉玫瑰花茶11 天前
线性代数 [ 矩阵乘法与线性变换复合的联系 ]
python·线性代数·math
茉莉玫瑰花茶12 天前
线性代数 [ 序言 ]
线性代数·math·1024程序员节
茉莉玫瑰花茶12 天前
线性代数 [ 线性组合·张成的空间与基 ]
线性代数·math·1024程序员节
茉莉玫瑰花茶12 天前
线性代数 [ 向量究竟是什么 ]
线性代数·math·1024程序员节
spencer_tseng16 天前
8th math 2026.10.20 [AB + BD = AC]
math·homework·8th
spencer_tseng18 天前
8th math [isosceles triangle] 2026.10.18
math·triangle·isosceles·8th
spencer_tseng23 天前
8th math [equilateral triangle] 2026.10.11
math·equilateral·triangle
spencer_tseng1 个月前
8th triangle ABC 2026.09.21
math·homework
spencer_tseng2 个月前
1y * 1y = 1 * y * 1 * y = 1 * y^2
math·homework