6 #include "GeoGenericFunctions/ACos.h" 7 #include "GeoGenericFunctions/Sqrt.h" 8 #include "GeoGenericFunctions/Square.h" 13 FUNCTION_OBJECT_IMP(ACos)
21 ACos::ACos(
const ACos & right) : AbsFunction(right)
25 double ACos::operator() (
double x)
const {
30 Derivative ACos::partial(
unsigned int index)
const {
31 if (index!=0)
throw std::range_error(
"ACos: partial derivative index out of range");
36 const AbsFunction & fPrime = - 1.0/root(1.0-square) ;
37 return Derivative(& fPrime);