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

相关推荐
智_永无止境2 个月前
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语言随机数
EleganceJiaBao1 年前
【C语言】数学函数详解
c语言·开发语言·c++·算法·math·exp·pow
HopeTurbo1 年前
【python】模块-标准库(sys,os,math,random)
python·random·os·math·sys
spencer_tseng2 年前
Plane Geometry (Junior High School)
math·homework
梁辰兴2 年前
Java 复习笔记 - 常用API 上
java·笔记·api·system·math
Yngz_Miao2 年前
【Math】导数、梯度、雅可比矩阵、黑塞矩阵
梯度·导数·雅可比矩阵·黑塞矩阵·math