23 #ifndef GINAC_CONSTANT_H 24 #define GINAC_CONSTANT_H 50 bool info(
unsigned inf)
const override;
88 #endif // ndef GINAC_CONSTANT_H ex imag_part() const override
void do_print(const print_context &c, unsigned level) const
bool is_equal_same_type(const basic &other) const override
Returns true if two objects of same type are equal.
bool info(unsigned inf) const override
Information about the object.
static unsigned next_serial
Archiving of GiNaC expressions.
This class is the ABC (abstract base class) of GiNaC's class hierarchy.
Context for python-parsable output.
This class holds constants, symbols with specific numerical value.
ex conjugate() const override
unsigned calchash() const override
Compute the hash value of an object and if it makes sense to store it in the objects status_flags...
This class is a wrapper around CLN-numbers within the GiNaC class hierarchy.
Context for latex-parsable output.
void archive(archive_node &n) const override
Save (serialize) the object into archive node.
void do_print_python_repr(const print_python_repr &c, unsigned level) const
const constant Euler("Euler", EulerEvalf, "\amma_E", domain::positive)
Euler's constant.
void do_print_tree(const print_tree &c, unsigned level) const
void read_archive(const archive_node &n, lst &syms) override
Load (deserialize) the object from an archive node.
ex real_part() const override
bool is_polynomial(const ex &var) const override
Check whether this is a polynomial in the given variables.
Interface to GiNaC's light-weight expression handles.
Base class for print_contexts.
Interface to GiNaC's ABC.
std::string TeX_name
LaTeX name.
This class stores all properties needed to record/retrieve the state of one object of class basic (or...
Lightweight wrapper for GiNaC's symbolic objects.
ex number
numerical value this constant evalf()s to
const constant Pi("Pi", PiEvalf, "\i", domain::positive)
Pi.
std::string name
printname of this constant
unsigned serial
unique serial number for comparison
Wrapper template for making GiNaC classes out of STL containers.
#define GINAC_DECLARE_REGISTERED_CLASS(classname, supername)
Macro for inclusion in the declaration of each registered class.
ex evalf() const override
Evaluate object numerically.
ex derivative(const symbol &s) const override
Implementation of ex::diff() for a constant always returns 0.
GINAC_DECLARE_UNARCHIVER(add)
constant(const std::string &initname, evalffunctype efun=nullptr, const std::string &texname=std::string(), unsigned domain=domain::complex)
const constant Catalan("Catalan", CatalanEvalf, "G", domain::positive)
Catalan's constant.
Context for tree-like output for debugging.
unsigned domain
numerical value this constant evalf()s to
void do_print_latex(const print_latex &c, unsigned level) const