Class MEAL::UnaryScalar

class UnaryScalar : public MEAL::UnaryRule<Scalar>

Abstract base class of unary functions of another Scalar function.

The partial derivatives are calculated using the chain rule.

Subclassed by MEAL::ScalarAbsolute, MEAL::ScalarBesselI0, MEAL::ScalarCosine, MEAL::ScalarErrorFunction, MEAL::ScalarExponential, MEAL::ScalarHypCosine, MEAL::ScalarHypSine, MEAL::ScalarHypTangent, MEAL::ScalarInverseHypTangent, MEAL::ScalarInverseTangent, MEAL::ScalarLogarithm, MEAL::ScalarLogistic, MEAL::ScalarRoot, MEAL::ScalarSine, MEAL::ScalarTangent

Public Functions

virtual double function(double x) const = 0

The function.

virtual double dfdx(double x) const = 0

And its first derivative.