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

Public Member Functions

virtual void accept (Visitor &v) const
 
virtual void accept (EvalRealDoubleVisitorFinal &v) const
 
 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
 
virtual RCP< const Basiccreate (const RCP< const Basic > &a, const RCP< const Basic > &b) const
 
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
 
RCP< const Basicget_arg1 () const
 
RCP< const Basicget_arg2 () const
 
virtual vec_basic get_args () const
 
RCP< const Basiccreate (const vec_basic &b) const
 
virtual bool __eq__ (const Basic &o) const
 
virtual int compare (const Basic &o) const
 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
virtual
Returns
canonicalized LowerGamma

Implements SymEngine::TwoArgBasic< BaseClass >.

Definition at line 3021 of file functions.cpp.

3023 {
3024  return lowergamma(a, b);
3025 }
RCP< const Basic > lowergamma(const RCP< const Basic > &s, const RCP< const Basic > &x)
Canonicalize LowerGamma:
Definition: functions.cpp:3027

◆ 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 3001 of file functions.cpp.

3003 {
3004  // Only special values are evaluated
3005  if (eq(*s, *one))
3006  return false;
3007  if (is_a<Integer>(*s)
3008  and down_cast<const Integer &>(*s).as_integer_class() > 1)
3009  return false;
3010  if (is_a<Integer>(*mul(i2, s)))
3011  return false;
3012 #ifdef HAVE_SYMENGINE_MPFR
3013 #if MPFR_VERSION_MAJOR > 3
3014  if (is_a<RealMPFR>(*s) && is_a<RealMPFR>(*x))
3015  return false;
3016 #endif
3017 #endif
3018  return true;
3019 }
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:347

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: