OpenWalnut
1.5.0dev
|
Testsuite for the WPolynomialEquationSolvers functions. More...
#include <WPolynomialEquationSolvers_test.h>
Public Member Functions | |
void | testRealQuadraticEquationWithNoSolution (void) |
If there is no solution an exception should be thrown. More... | |
void | testRealQuadraticEquationWithOnlyOneSolution (void) |
x^2 = 0 has only one solution: 0.0. More... | |
void | testRealQuadraticEquationWithTwoRealSolutions (void) |
x^2 - 1 = 0 has two solutions: 1.0 and -1.0. More... | |
void | testRealQuadraticEquationWithTwoImaginarySolutions (void) |
x^2 + 1 = 0 has two solutions: i and -i. More... | |
void | testRealQuadraticEquationToTestNumericalIssuesAndPrecisions (void) |
This test numerical stability: x^2 + 9999999999x -9e10 = 0, has solutions according to wolfram alpha: x_1 = -1.00000000079999999928x10^10 x_2 = 8.99999999280000001224. More... | |
Testsuite for the WPolynomialEquationSolvers functions.
Definition at line 40 of file WPolynomialEquationSolvers_test.h.
|
inline |
This test numerical stability: x^2 + 9999999999x -9e10 = 0, has solutions according to wolfram alpha: x_1 = -1.00000000079999999928x10^10 x_2 = 8.99999999280000001224.
Definition at line 111 of file WPolynomialEquationSolvers_test.h.
|
inline |
If there is no solution an exception should be thrown.
Definition at line 46 of file WPolynomialEquationSolvers_test.h.
References WException::what().
|
inline |
x^2 = 0 has only one solution: 0.0.
Definition at line 55 of file WPolynomialEquationSolvers_test.h.
|
inline |
x^2 + 1 = 0 has two solutions: i and -i.
Definition at line 87 of file WPolynomialEquationSolvers_test.h.
|
inline |
x^2 - 1 = 0 has two solutions: 1.0 and -1.0.
Definition at line 66 of file WPolynomialEquationSolvers_test.h.