33 const scalar sx = xScale_->value(x)*
x;
34 return scale_->value(sx)*value_->value(sx);
47 const scalar sx = xScale_->value(NaN);
48 return scale_->value(NaN)*value_->integrate(sx*x1, sx*x2)/sx;
53 const scalar sx = xScale_->value(NaN);
54 return scale_->integrate(sx*x1, sx*x2)/sx*value_->value(NaN);
58 <<
"Integration is not defined for " <<
type() <<
" functions " 59 <<
"unless x-scaling is constant and either scaling is constant or " 60 <<
"the value is constant" errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual Type value(const scalar x) const
Return value.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.