#include <Solvers.h>
Inheritance diagram for NSMath::TSolvers:
Static Public Member Functions | |
static BOOL | RootsCubicReal (const float &b, const float &c, const float &d, float &root1, float &root2, float &root3) |
This method finds real roots for given cubic polynomial. | |
static BOOL | RootsQuadraticReal (const float &a, const float &b, const float &c, float &root1, float &root2) |
This method finds real roots for given quadratic polynomial. | |
static void | Matrix3CM_RowEcholonForm_Householder (TMatrix3 &mat) |
This method converts specified matrix to matrix that has below diagonal only zeros (row echolon form). | |
static void | Matrix3RM_RowEcholonForm_Householder (TMatrix3 &mat) |
This method converts specified matrix to matrix that has below diagonal only zeros (row echolon form). |
This is pure static class that contains method solving mathematical problems like roots finding etc.
Definition at line 45 of file Solvers.h.
|
This method converts specified matrix to matrix that has below diagonal only zeros (row echolon form).
Definition at line 155 of file Solvers.cpp. References NSMath::TVector3::Dot(), NSMath::TMatrix3::GetRow(), NSMath::NSStdMath::invSqrt(), NSMath::TVector3::Length(), NSMath::NSStdMath::sqrt(), NSMath::TVector3::Sub(), NSMath::TVector3::x, and NSMath::TVector3::y. Referenced by Matrix3RM_RowEcholonForm_Householder(). Here is the call graph for this function: ![]() |
|
This method converts specified matrix to matrix that has below diagonal only zeros (row echolon form).
Definition at line 214 of file Solvers.cpp. References Matrix3CM_RowEcholonForm_Householder(), and NSMath::TMatrix3::Transpose(). Here is the call graph for this function: ![]() |
|
This method finds real roots for given cubic polynomial. A * X^3 + B * X^2 + C * X + D = 0. Method suppose coefficient A == 1. If you have A != 1 then simply divide all components of polynomial with this A coefficient. Method compute result only if all three roots are real, otherwise returns FALSE.
Definition at line 33 of file Solvers.cpp. References NSMath::NSStdMath::acos(), NSMath::NSStdMath::cos(), NSMath::NSStdMath::fabs(), FALSE, NSMath::NSStdMath::invSqrt(), NSMath::NSStdMath::PI, NSMath::NSStdMath::pow(), NSMath::NSStdMath::sqrt(), and TRUE. Referenced by NSMath::TMatrix3::EigenValuesSymmetrical(). Here is the call graph for this function: ![]() |
|
This method finds real roots for given quadratic polynomial. A * X^2 + B * X + C = 0 Method compute result only if all three roots are real, otherwise returns FALSE.
Definition at line 119 of file Solvers.cpp. References NSMath::NSStdMath::div(), FALSE, NSMath::NSStdMath::sqrt(), and TRUE. Here is the call graph for this function: ![]() |