CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
QuadraticSolver.hpp
1 /*
2  * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 #include <vector>
12 #include <cmath>
13 #include <complex>
14 
15 #include <corsika/framework/utility/LinearSolver.hpp>
16 
17 namespace corsika {
18 
19  std::vector<std::complex<double>> solve_quadratic(long double a, long double b,
20  long double c,
21  double const epsilon = 1e-12);
22 
23  std::vector<double> solve_quadratic_real(long double a, long double b, long double c,
24  double const epsilon = 1e-12);
25 } // namespace corsika
26 
27 #include <corsika/detail/framework/utility/QuadraticSolver.inl>
`, since they are used everywhere as integral part of the framework.