对于二次、三次单变元方程来说,方程具有解析解.然而,计算过程中的舍入等误差使得计算结果不稳定.基于算术表达式的可信计算算法及其软件ISReal,给出了一元二次、三次方程的可信求解算法,并用C++语言编程实现可信求解器.
There are analytical solutions for univariate quadratic and cubic equations. However, the er-rors in the process of calculation make the result unstable, especially the rounding error. Based on the reli-able computing algorithm and its software ISReal for the arithmetic expression, two reliable solution algo-rithms are given for univariate quadratic and cubic equations, and two reliable solvers are implemented u-sing C+ + programming language by them.