Loading...
Searching...
No Matches
expression.h File Reference
#include <symengine/add.h>
#include <symengine/pow.h>
#include <symengine/symbol.h>
#include <symengine/complex_double.h>
#include <symengine/eval_double.h>
#include <symengine/printers.h>
+ Include dependency graph for expression.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  SymEngine::Expression
 

Namespaces

namespace  SymEngine
 Main namespace for SymEngine package.
 

Functions

RCP< const Basic > SymEngine::diff (const RCP< const Basic > &arg, const RCP< const Symbol > &x, bool cache=true)
 Differentiation w.r.t symbols. More...
 
RCP< const Basic > SymEngine::sdiff (const RCP< const Basic > &arg, const RCP< const Basic > &x, bool cache)
 SymPy style differentiation for non-symbol variables. More...
 
Expression SymEngine::pow (const Expression &base, const Expression &exp)
 
Expression SymEngine::expand (const Expression &arg)
 
bool SymEngine::unified_eq (const Expression &a, const Expression &b)
 
int SymEngine::unified_compare (const Expression &a, const Expression &b)
 
std::string SymEngine::detail::poly_print (const Expression &x)
 

Detailed Description

Includes the Expression class

Definition in file expression.h.

Function Documentation

◆ poly_print()

std::string SymEngine::detail::poly_print ( const Expression x)

Definition at line 9 of file expression.cpp.

10{
11 Precedence prec;
12 if (prec.getPrecedence(x.get_basic()) == PrecedenceEnum::Add) {
13 return "(" + x.get_basic()->__str__() + ")";
14 }
15 return x.get_basic()->__str__();
16}