Acoustic FDTD Solver
Public Member Functions | Private Attributes | List of all members
Scalar Class Reference

#include <Scalar.hpp>

Inheritance diagram for Scalar:
Function

Public Member Functions

 Scalar (const double magnitude)
virtual double getValue (const double x) const
 Evaluate the function at x.
virtual void setScale (const double magnitude)
virtual double getDf (const double x) const
 To be implemented.
virtual double getFrequency () const
 return the central frequency
int getType () const
virtual ~Scalar ()
- Public Member Functions inherited from Function
 Function ()
double rtnewt (const double x1, const double x2, const double xacc) const
 Use the Newton-Raphson method, find the root of a function known to line in the interval [x1, x2].
double rtsecan (double xn_1, double xn, const double xacc) const
 o * Use the secant method to find the root of a function with the initial guess at xn_1 and xn.
virtual ~Function ()

Private Attributes

double A

Constructor & Destructor Documentation

Scalar::Scalar ( const double  magnitude)
virtual Scalar::~Scalar ( )
inlinevirtual

Member Function Documentation

double Scalar::getDf ( const double  x) const
virtual

To be implemented.

Reimplemented from Function.

double Scalar::getFrequency ( ) const
virtual

return the central frequency

Reimplemented from Function.

int Scalar::getType ( ) const
double Scalar::getValue ( const double  x) const
virtual

Evaluate the function at x.

Reimplemented from Function.

void Scalar::setScale ( const double  magnitude)
virtual

Reimplemented from Function.

Member Data Documentation

double Scalar::A
private

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