queso-0.53.0
List of all members
QUESO::Quadratic1D1DFunction Class Reference

Class for one-dimensional quadratic functions. More...

#include <1D1DFunction.h>

Inheritance diagram for QUESO::Quadratic1D1DFunction:
Inheritance graph
[legend]
Collaboration diagram for QUESO::Quadratic1D1DFunction:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods
 Quadratic1D1DFunction (double minDomainValue, double maxDomainValue, double a, double b, double c)
 Default constructor. More...
 
 ~Quadratic1D1DFunction ()
 Destructor. 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 value (double domainValue) const =0
 Returns the value of the (one-dimensional) function. See template specialization. More...
 
virtual double deriv (double domainValue) const =0
 Returns the value of the derivative of the function. See template specialization. More...
 
virtual double multiplyAndIntegrate (const Base1D1DFunction &func, unsigned int quadratureOrder, double *resultWithMultiplicationByTAsWell) const
 TODO: Multiplies this function with function, and integrates it numerically. See template specialization. More...
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::Base1D1DFunction
double m_minDomainValue
 
double m_maxDomainValue
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

376  :
378  m_a (a),
379  m_b (b),
380  m_c (c)
381 {
382 }
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:48
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:54
Base1D1DFunction(double minDomainValue, double maxDomainValue)
Default constructor.
Definition: 1D1DFunction.C:33
QUESO::Quadratic1D1DFunction::~Quadratic1D1DFunction ( )

Destructor.

Definition at line 384 of file 1D1DFunction.C.

385 {
386 }

The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:35 for queso-0.53.0 by  doxygen 1.8.5