CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
QuarticSolver.hpp File Reference
#include <corsika/framework/utility/CubicSolver.hpp>
#include <corsika/framework/utility/QuadraticSolver.hpp>
#include <complex>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <corsika/detail/framework/utility/QuarticSolver.inl>
Include dependency graph for QuarticSolver.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 corsika
 `, since they are used everywhere as integral part of the framework.
 

Functions

std::vector< double > corsika::andre::solve_quartic_real (long double a, long double b, long double c, long double d, long double e, double const epsilon=1e-12)
 solve quartic equation a*x^4 + b*x^3 + c*x^2 + d*x + e Attention - this function returns dynamically allocated array. More...
 
std::vector< double > corsika::solve_quartic_real (long double a, long double b, long double c, long double d, long double e, double const epsilon=1e-12)
 solve quartic equation a*x^4 + b*x^3 + c*x^2 + d*x + e
 

Function Documentation

◆ solve_quartic_real()

std::vector<double> corsika::andre::solve_quartic_real ( long double  a,
long double  b,
long double  c,
long double  d,
long double  e,
double const  epsilon = 1e-12 
)

solve quartic equation a*x^4 + b*x^3 + c*x^2 + d*x + e Attention - this function returns dynamically allocated array.

It has to be released afterwards.