eval.h
Go to the documentation of this file.
1 
5 #ifndef SYMENGINE_EVAL_H
6 #define SYMENGINE_EVAL_H
7 
8 #include <symengine/basic.h>
9 #include <symengine/dict.h>
10 #include <symengine/symengine_rcp.h>
11 
12 #ifdef HAVE_SYMENGINE_MPFR
13 #include <mpfr.h>
14 #endif // HAVE_SYMENGINE_MPFR
15 
16 #ifdef SYMENGINE_HAVE_MPC
17 #include <mpc.h>
18 #endif // HAVE_SYMENGINE_MPC
19 
20 namespace SymEngine
21 {
22 
23 /*
24  * Evaluates basic b, according to the number of significant bits
25  * in the given domain
26  */
27 
28 enum class EvalfDomain {
29  Complex = 0,
30  Real = 1,
31  Symbolic = 2,
32 };
33 
34 RCP<const Basic> evalf(const Basic &b, unsigned long bits,
35  EvalfDomain domain = EvalfDomain::Symbolic);
36 
37 } // namespace SymEngine
38 
39 #endif // SYMENGINE_EVAL_H
The base class for SymEngine.
Main namespace for SymEngine package.
Definition: add.cpp:19