CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::ASin Class Reference

#include <ASin.hh>

+ Inheritance diagram for Genfun::ASin:

Public Member Functions

 ASin ()
 
virtual ~ASin ()
 
 ASin (const ASin &right)
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Derivative partial (unsigned int) const override
 
virtual bool hasAnalyticDerivative () const override
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Definition at line 13 of file ASin.hh.

Constructor & Destructor Documentation

◆ ASin() [1/2]

Genfun::ASin::ASin ( )

Definition at line 13 of file ASin.cc.

14{}

◆ ~ASin()

Genfun::ASin::~ASin ( )
virtual

Definition at line 16 of file ASin.cc.

16 {
17}

◆ ASin() [2/2]

Genfun::ASin::ASin ( const ASin right)

Definition at line 19 of file ASin.cc.

19 : AbsFunction(right)
20{ }

Member Function Documentation

◆ hasAnalyticDerivative()

virtual bool Genfun::ASin::hasAnalyticDerivative ( ) const
inlineoverridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 36 of file ASin.hh.

36{return true;}

◆ operator()() [1/2]

virtual double Genfun::ASin::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 30 of file ASin.hh.

30{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: ASin.cc:23

◆ operator()() [2/2]

double Genfun::ASin::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 23 of file ASin.cc.

23 {
24 return asin(x);
25}

Referenced by operator()().

◆ partial()

Derivative Genfun::ASin::partial ( unsigned int  index) const
overridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 38 of file ASin.cc.

38 {
39 assert(index==0);
40
41 Square square;
42 Sqrt root;
43
44 const AbsFunction & fPrime = 1.0/root(1.0-square) ;
45 return Derivative(& fPrime);
46}
FunctionNoop Derivative
Definition: AbsFunction.hh:42

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