OpenWalnut 1.2.5
Public Member Functions
WPolynomialEquationSolversTest Class Reference

Testsuite for the WPolynomialEquationSolvers functions. More...

#include <WPolynomialEquationSolvers_test.h>

Inheritance diagram for WPolynomialEquationSolversTest:

List of all members.

Public Member Functions

void testRealQuadraticEquationWithNoSolution (void)
 If there is no solution an exception should be thrown.
void testRealQuadraticEquationWithOnlyOneSolution (void)
 x^2 = 0 has only one solution: 0.0.
void testRealQuadraticEquationWithTwoRealSolutions (void)
 x^2 - 1 = 0 has two solutions: 1.0 and -1.0.
void testRealQuadraticEquationWithTwoImaginarySolutions (void)
 x^2 + 1 = 0 has two solutions: i and -i.
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.

Detailed Description

Testsuite for the WPolynomialEquationSolvers functions.

Definition at line 40 of file WPolynomialEquationSolvers_test.h.


Member Function Documentation

void WPolynomialEquationSolversTest::testRealQuadraticEquationToTestNumericalIssuesAndPrecisions ( void  ) [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.

void WPolynomialEquationSolversTest::testRealQuadraticEquationWithNoSolution ( void  ) [inline]

If there is no solution an exception should be thrown.

Definition at line 46 of file WPolynomialEquationSolvers_test.h.

References WException::what().

void WPolynomialEquationSolversTest::testRealQuadraticEquationWithOnlyOneSolution ( void  ) [inline]

x^2 = 0 has only one solution: 0.0.

Definition at line 55 of file WPolynomialEquationSolvers_test.h.

void WPolynomialEquationSolversTest::testRealQuadraticEquationWithTwoImaginarySolutions ( void  ) [inline]

x^2 + 1 = 0 has two solutions: i and -i.

Definition at line 87 of file WPolynomialEquationSolvers_test.h.

void WPolynomialEquationSolversTest::testRealQuadraticEquationWithTwoRealSolutions ( void  ) [inline]

x^2 - 1 = 0 has two solutions: 1.0 and -1.0.

Definition at line 66 of file WPolynomialEquationSolvers_test.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends