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_tseng3 天前
Birthday Probability
math
spencer_tseng6 天前
3 + 3^2 + ... + 3 ^ 2026
math
Physicist in Geophy.21 天前
挂谷猜想--germini
math
Physicist in Geophy.21 天前
sat 求解器
math
Code Talk1 个月前
VS Code markdown preview 与 github markdown渲染数学公式中的“_”不一致的问题
github·markdown·math
spencer_tseng1 个月前
29a + 30b + 31c = 366
math·homework
智_永无止境5 个月前
Apache Commons Math3 使用指南:强大的Java数学库
apache·math
Shaun8881 年前
Perspective Projection Matrix of OpenGL and Direct3D
3d·math
景天科技苑1 年前
【Golang】关于Go语言数学计算、随机数生成模块--math
后端·golang·math·go语言math·go语言数学计算·math/rand·go语言随机数