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

Public Member Functions

void accept (Visitor &v) const override
 
void accept (EvalRealDoubleVisitorFinal &v) const override
 
 LowerGamma (const RCP< const Basic > &s, const RCP< const Basic > &x)
 LowerGamma Constructor.
 
bool is_canonical (const RCP< const Basic > &s, const RCP< const Basic > &x) 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
 The lower incomplete gamma function.
 
RCP< const Basiccreate (const vec_basic &b) const
 The lower incomplete gamma function.
 
- 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_LOWERGAMMA
 

Detailed Description

Definition at line 1108 of file functions.h.

Member Function Documentation

◆ create()

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

Implements SymEngine::TwoArgBasic< BaseClass >.

Definition at line 3064 of file functions.cpp.

3066 {
3067  return lowergamma(a, b);
3068 }
RCP< const Basic > lowergamma(const RCP< const Basic > &s, const RCP< const Basic > &x)
Canonicalize LowerGamma:
Definition: functions.cpp:3070

◆ is_canonical()

bool SymEngine::LowerGamma::is_canonical ( const RCP< const Basic > &  s,
const RCP< const Basic > &  x 
) const
Returns
true if canonical

Definition at line 3044 of file functions.cpp.

3046 {
3047  // Only special values are evaluated
3048  if (eq(*s, *one))
3049  return false;
3050  if (is_a<Integer>(*s)
3051  and down_cast<const Integer &>(*s).as_integer_class() > 1)
3052  return false;
3053  if (is_a<Integer>(*mul(i2, s)))
3054  return false;
3055 #ifdef HAVE_SYMENGINE_MPFR
3056 #if MPFR_VERSION_MAJOR > 3
3057  if (is_a<RealMPFR>(*s) && is_a<RealMPFR>(*x))
3058  return false;
3059 #endif
3060 #endif
3061  return true;
3062 }
bool eq(const Basic &a, const Basic &b)
Checks equality for a and b
Definition: basic-inl.h:21
RCP< const Basic > mul(const RCP< const Basic > &a, const RCP< const Basic > &b)
Multiplication.
Definition: mul.cpp:352

Field Documentation

◆ type_code_id

const TypeID SymEngine::LowerGamma::type_code_id = SYMENGINE_LOWERGAMMA
static

Type_code_id shared by all instances

Definition at line 1113 of file functions.h.


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