SymbolicExpressions

EPHS.SymbolicExpressionsModule

The SymblicExpressions module provides a simple computer algebra system (CAS). The concrete subtypes of SymExpr provide a mathematical syntax to symbolically represent the relations that define the semantics of primitive and composite systems.

source
Base.diffMethod
diff(expr::SymExpr, var::SymVar) -> SymExpr

Returns the derivative of the given SymExpr with respect to the given SymVar using symbolic differentiation.

source
Base.mapMethod
map(f, expr::SymExpr, T::Type{<:SymExpr}) -> SymExpr

Transforms a SymExpr using a function f : T -> SymExpr, where T <: SymExpr. Descends from the root into the expression tree and whenever a node::T is encountered, it is replaced by the new node f(node).

source
EPHS.SymbolicExpressions.astMethod
ast(s::SymExpr) -> Expr

Transform a SymExpr into a Julia Expr. Together with the methods called in the returned Julia Expr, ast defines the semantics of the mathematical SymExpr syntax.

source