BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_cardano.hpp File Reference
#include "typedefs.hpp"
#include "assert.hpp"
#include "cl_Vector.hpp"
#include "fn_sort.hpp"
#include "fn_sign.hpp"
Include dependency graph for fn_cardano.hpp:

Go to the source code of this file.

Namespaces

namespace  belfem
 USER GUIDES:

Functions

template<typename T>
void belfem::cardano (const T a, const T b, const T c, const T d, Vector< T > &X)
 solve a cubic equation a*x^3 + b*x^2 + c*x + d = 0 for its real roots (Cardano / trigonometric method).
template<typename T>
void belfem::cardano (const Vector< T > &A, Vector< T > &X)