You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subs can be used to substitute parts of an expression with another. For example subs((x - y)^2 + z, x-y, z) gives z^2 + z.
A basic taylor expansion using subs behind the scenes. Use it like this: taylor(sin(x), x, 0, 5) to get the 5 first terms of sin's taylor series around x=0 (i.e. the Maclaurin series).
Better and more consistent printing
You can copy a expression using let newCopy = copy(symExpr) which does a deep copy. On the lower level we have copySymNode (shallow) and copySymTree (deep).
Added the ability to loop over expressions. I.e. over the terms in a Add and the factors in a Mul.
Check if a SymExpr is a number, symbol, Add, Mul, pow or func using: isNumber, isSymbol, isFunc, isPow, isAdd, isMul.