solver.h

来自「This contains Graphic gems code」· C头文件 代码 · 共 16 行

H
16
字号
/*****************************************************************								** 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 + =
减小字号Ctrl + -
显示快捷键?