|
NGSolve
4.9
|
Generic recursive polynomial. More...
#include <generic_recpol.hpp>
Public Member Functions | |
| RecPol (int n) | |
| init coefficient array | |
| int | Order () const |
| maximal order | |
| template<class S , class T > | |
| void | Evaluate (int n, S x, T &values) const |
| evaluate rec pols up to order n | |
| void | MultBubble () |
| Multiply polynomial with the bubble $1-x^2$. | |
| void | MultLinear (double a, double b) |
| Multiply polynomial with the linear factor $a + bx$. | |
| void | Scale (double s) |
| double | A (int i) const |
| double | B (int i) const |
| double | C (int i) const |
Protected Attributes | |
| Array< double[3] > | coefs |
Generic recursive polynomial.
{verbatim} p_0 = a_0 p_1 = (a_1 + b_1 x) p_0 p_i = (a_i + b_i x) p_{i-1} + c_i p_{i-2} {verbatim}
| void ngfem::RecPol::MultBubble | ( | ) |
Multiply polynomial with the bubble $1-x^2$.
p --> q q_0 = 1, q_1 = x q_i = (1-x^2) p_{i-2}
| void ngfem::RecPol::MultLinear | ( | double | a, |
| double | b | ||
| ) |
Multiply polynomial with the linear factor $a + bx$.
p --> q q_0 = 1 q_i = (a + b x) p_i-1
1.7.6.1