mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Switched to a new coding style, which plays nicely with the Reader/Writer. This new style allows REFLECT to be used instead of REFLECT_N in most places.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@15 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -21,23 +21,23 @@
|
||||
/// Solve a linear equation a x + b = 0
|
||||
/** Returns the number of real roots, and the roots themselfs in the output parameter.
|
||||
*/
|
||||
UInt solveLinear(double a, double b, double* root);
|
||||
UInt solve_linear(double a, double b, double* root);
|
||||
|
||||
/// Solve a quadratic equation a x^2 + b x + c == 0
|
||||
/** Returns the number of real roots, and the roots themselfs in the output parameter.
|
||||
*/
|
||||
UInt solveQuadratic(double a, double b, double c, double* roots);
|
||||
UInt solve_quadratic(double a, double b, double c, double* roots);
|
||||
|
||||
// Solve a cubic equation a x^3 + b x^2 + c x + d == 0
|
||||
/** Returns the number of real roots, and the roots themselfs in the output parameter.
|
||||
*/
|
||||
UInt solveCubic(double a, double b, double c, double d, double* roots);
|
||||
UInt solve_cubic(double a, double b, double c, double d, double* roots);
|
||||
|
||||
// Solve a cubic equation x^3 + a x^2 + b x + c == 0
|
||||
/** Returns the number of real roots, and the roots themselfs in the output parameter.
|
||||
* Based on http://en.wikipedia.org/wiki/Cubic_equation
|
||||
*/
|
||||
UInt solveCubic(double a, double b, double c, double* roots);
|
||||
UInt solve_cubic(double a, double b, double c, double* roots);
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user