SymEngine::PolyGamma Class Reference
+ Inheritance diagram for SymEngine::PolyGamma:
+ Collaboration diagram for SymEngine::PolyGamma:

Public Member Functions

void accept (Visitor &v) const override
 
void accept (EvalRealDoubleVisitorFinal &v) const override
 
 PolyGamma (const RCP< const Basic > &n, const RCP< const Basic > &x)
 PolyGamma Constructor.
 
bool is_canonical (const RCP< const Basic > &n, const RCP< const Basic > &x)
 
RCP< const Basicrewrite_as_zeta () const
 
RCP< const Basiccreate (const RCP< const Basic > &a, const RCP< const Basic > &b) const override
 
virtual RCP< const Basiccreate (const RCP< const Basic > &a, const RCP< const Basic > &b) const=0
 
RCP< const Basiccreate (const vec_basic &b) const
 
- Public Member Functions inherited from SymEngine::TwoArgBasic< BaseClass >
 TwoArgBasic (const RCP< const Basic > &a, const RCP< const Basic > &b)
 b in TwoArgBasic(a, b) More...
 
hash_t __hash__ () const override
 
RCP< const Basicget_arg1 () const
 
RCP< const Basicget_arg2 () const
 
vec_basic get_args () const override
 
RCP< const Basiccreate (const vec_basic &b) const
 
bool __eq__ (const Basic &o) const override
 
int compare (const Basic &o) const override
 Structural equality comparator.
 

Static Public Attributes

static const TypeID type_code_id = SYMENGINE_POLYGAMMA
 

Detailed Description

Definition at line 1204 of file functions.h.

Member Function Documentation

◆ create() [1/3]

RCP< const Basic > SymEngine::PolyGamma::create ( const RCP< const Basic > &  a,
const RCP< const Basic > &  b 
) const
overridevirtual
Returns
canonicalized PolyGamma

Implements SymEngine::TwoArgBasic< BaseClass >.

Definition at line 3391 of file functions.cpp.

3393 {
3394  return polygamma(a, b);
3395 }
RCP< const Basic > polygamma(const RCP< const Basic > &n_, const RCP< const Basic > &x_)
Canonicalize PolyGamma.
Definition: functions.cpp:3397

◆ create() [2/3]

virtual RCP<const Basic> SymEngine::TwoArgBasic< BaseClass >::create

The polygamma function

It is a meromorphic function on \mathbb{C} and defined as the (n+1)-th derivative of the logarithm of the gamma function:

.. math:: \psi^{(n)} (z) := \frac{\mathrm{d}^{n+1}}{\mathrm{d} z^{n+1}} \log\Gamma(z).

◆ create() [3/3]

RCP<const Basic> SymEngine::TwoArgBasic< BaseClass >::create
inline

The polygamma function

It is a meromorphic function on \mathbb{C} and defined as the (n+1)-th derivative of the logarithm of the gamma function:

.. math:: \psi^{(n)} (z) := \frac{\mathrm{d}^{n+1}}{\mathrm{d} z^{n+1}} \log\Gamma(z).

Definition at line 108 of file functions.h.

109  {
110  SYMENGINE_ASSERT(b.size() == 2);
111  return create(b[0], b[1]);
112  }
virtual RCP< const Basic > create(const RCP< const Basic > &a, const RCP< const Basic > &b) const=0

Field Documentation

◆ type_code_id

const TypeID SymEngine::PolyGamma::type_code_id = SYMENGINE_POLYGAMMA
static

Type_code_id shared by all instances

Definition at line 1218 of file functions.h.


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