7 #ifndef SYMENGINE_CONSTANTS_H
8 #define SYMENGINE_CONSTANTS_H
55 return make_rcp<const Constant>(name);
59 extern SYMENGINE_EXPORT RCP<const Integer> &zero;
60 extern SYMENGINE_EXPORT RCP<const Integer> &one;
61 extern SYMENGINE_EXPORT RCP<const Integer> &minus_one;
62 extern SYMENGINE_EXPORT RCP<const Integer> &two;
63 extern SYMENGINE_EXPORT RCP<const Number> &I;
66 extern SYMENGINE_EXPORT RCP<const Constant> π
67 extern SYMENGINE_EXPORT RCP<const Constant> &E;
68 extern SYMENGINE_EXPORT RCP<const Constant> &EulerGamma;
69 extern SYMENGINE_EXPORT RCP<const Constant> &Catalan;
70 extern SYMENGINE_EXPORT RCP<const Constant> &GoldenRatio;
73 extern SYMENGINE_EXPORT RCP<const Infty> &Inf;
74 extern SYMENGINE_EXPORT RCP<const Infty> &NegInf;
75 extern SYMENGINE_EXPORT RCP<const Infty> &ComplexInf;
78 extern SYMENGINE_EXPORT RCP<const NaN> &Nan;
#define IMPLEMENT_TYPEID(SYMENGINE_ID)
Inline members and functions.
The lowest unit of symbolic representation.
hash_t __hash__() const override
std::string name_
name of Constant
Constant(const std::string &name)
Constant Constructor.
int compare(const Basic &o) const override
bool __eq__(const Basic &o) const override
std::string get_name() const
vec_basic get_args() const override
Returns the list of arguments.
Main namespace for SymEngine package.
RCP< const Constant > constant(const std::string &name)
inline version to return Constant