6 #include "GeoGenericFunctions/Sqrt.h" 10 FUNCTION_OBJECT_IMP(Sqrt)
15 Sqrt::Sqrt(
const Sqrt & right) : AbsFunction(right)
22 double Sqrt::operator() (
double x)
const {
27 Derivative Sqrt::partial(
unsigned int index)
const {
28 if (index!=0)
throw std::range_error(
"Sqrt: partial derivative index out of range");
29 const AbsFunction & fPrime = (0.5)/Sqrt();
30 return Derivative(&fPrime);