📄 solver.h
字号:
/***************************************************************** ** Polynomial root finder (polynoms up to degree 4) ** AUTHOR: Jochen SCHARZE (See 'Cubic & Quartic Roots' in ** 'Graphics Gems 1', AP) ** *****************************************************************/#include <math.h>#define EQN_EPS 1e-9int isZero(double x);int solveQuadric(double c[3], double s[2]);int solveCubic(double c[4], double s[3]);int solveQuartic(double c[5], double s[4]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -