SymbolicExpressions

EPHS.SymbolicExpressions — Module

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.diff — Method
diff(expr::SymExpr, var::SymVar) -> SymExpr

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

source
Base.foreach — Method
foreach(f, expr::SymExpr, T::Type{<:SymExpr}) -> nothing

Goes from the root into the expression tree and whenever a node::T is encountered, calls f(node).

source
Base.replace — Method
replace(f, expr::SymExpr, T::Type{<:SymExpr}) -> SymExpr

Transforms a SymExpr using a function f : T -> SymExpr, where T <: SymExpr. Goes 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.ast — Method
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