5 namespace til {
namespace math {
21 template <
typename TPrec,
typename TInfinitySolutionsPolicy >
38 int nsols()
const {
return m_nSols; }
40 const TPrec *
sols()
const {
return m_sols; }
47 void solve(TPrec a, TPrec b);
50 void solve(TPrec a, TPrec b, TPrec c);
54 void set_nsols(
int n) { m_nSols = n; }
55 TPrec * get_sols() {
return m_sols; }
66 TInfinitySolutionsPolicy m_infSolPolicy;
const TPrec * sols() const
Return an array containing the solutions.
Belongs to package Box Do not include directly, include til/Box.h instead.
int nsols() const
Return the number of solutions.
Find real roots of a polynomial.
If the polynomial has an infinity of solutions, ignore all of them.
TInfinitySolutionsPolicy getInfSolPolicy() const
Return the "infinity of solutions" policy.