| queso-0.57.1
    | 
Class for one-dimensional quadratic functions. More...
#include <1D1DFunction.h>
 
  
 | Public Member Functions | |
| Constructor/Destructor methods | |
| Quadratic1D1DFunction (double minDomainValue, double maxDomainValue, double a, double b, double c) | |
| Default constructor.  More... | |
| ~Quadratic1D1DFunction () | |
| Destructor.  More... | |
| Mathematical methods | |
| double | value (double domainValue) const | 
| Returns the value of the quadratic function at point domainValue.  More... | |
| double | deriv (double domainValue) const | 
| Returns the value of the derivative of the quadratic function at point domainValue.  More... | |
|  Public Member Functions inherited from QUESO::Base1D1DFunction | |
| Base1D1DFunction (double minDomainValue, double maxDomainValue) | |
| Default constructor.  More... | |
| virtual | ~Base1D1DFunction () | 
| Destructor.  More... | |
| double | minDomainValue () const | 
| Returns the minimum value of the domain of the (one-dimensional) function.  More... | |
| double | maxDomainValue () const | 
| Returns the maximum value of the domain of the (one-dimensional) function.  More... | |
| virtual double | multiplyAndIntegrate (const Base1D1DFunction &func, unsigned int quadratureOrder, double *resultWithMultiplicationByTAsWell) const | 
| TODO: Multiplies thisfunction withfunction, and integrates it numerically. See template specialization.  More... | |
| Protected Attributes | |
| double | m_a | 
| 'Quadratic' coefficient of the quadratic function; \( a \) in \( f(x)=ax^2+bx+c \).  More... | |
| double | m_b | 
| 'Linear' coefficient of the quadratic function; \( b \) in \( f(x)=ax^2+bx+c \).  More... | |
| double | m_c | 
| 'Free' coefficient of the quadratic function; \( c \) in \( f(x)=ax^2+bx+c \).  More... | |
|  Protected Attributes inherited from QUESO::Base1D1DFunction | |
| double | m_minDomainValue | 
| double | m_maxDomainValue | 
Class for one-dimensional quadratic functions.
This class implements quadratic one-dimensional functions. A quadratic function, in mathematics, is a polynomial function of the form
\[ f(x)=ax^2+bx+c,\quad a \ne 0.\]
The graph of a quadratic function is a parabola whose axis of symmetry is parallel to the y-axis.
Definition at line 292 of file 1D1DFunction.h.
| QUESO::Quadratic1D1DFunction::Quadratic1D1DFunction | ( | double | minDomainValue, | 
| double | maxDomainValue, | ||
| double | a, | ||
| double | b, | ||
| double | c | ||
| ) | 
Default constructor.
Constructs a quadratic function in the interval [minDomainValue,maxDomainValue], of the type: \( f(x)=ax^2+bx+c \). 
Definition at line 370 of file 1D1DFunction.C.
| QUESO::Quadratic1D1DFunction::~Quadratic1D1DFunction | ( | ) | 
| 
 | virtual | 
Returns the value of the derivative of the quadratic function at point domainValue. 
This function checks if point domainValue belongs to the domain of this function, and in affirmative case, it returns the value of the derivative at such point (namely 2*a*domainValue + b . 
Implements QUESO::Base1D1DFunction.
Definition at line 408 of file 1D1DFunction.C.
References m_a, m_b, QUESO::Base1D1DFunction::m_maxDomainValue, and QUESO::Base1D1DFunction::m_minDomainValue.
| 
 | virtual | 
Returns the value of the quadratic function at point domainValue. 
This function checks if point domainValue belongs to the domain of this function, and in affirmative case, it evaluates the function at such point, namely: imageValue = a*domainValue^2 + b*domainValue + c . 
Implements QUESO::Base1D1DFunction.
Definition at line 389 of file 1D1DFunction.C.
References m_a, m_b, m_c, QUESO::Base1D1DFunction::m_maxDomainValue, and QUESO::Base1D1DFunction::m_minDomainValue.
| 
 | protected | 
'Quadratic' coefficient of the quadratic function; \( a \) in \( f(x)=ax^2+bx+c \).
Definition at line 326 of file 1D1DFunction.h.
| 
 | protected | 
'Linear' coefficient of the quadratic function; \( b \) in \( f(x)=ax^2+bx+c \).
Definition at line 329 of file 1D1DFunction.h.
| 
 | protected | 
'Free' coefficient of the quadratic function; \( c \) in \( f(x)=ax^2+bx+c \).
Definition at line 332 of file 1D1DFunction.h.
Referenced by value().