File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ and other derivative rules to expand any derivatives it encounters.
170170```jldoctest
171171julia> @variables x y z k;
172172
173- julia> f= k*(abs(x-y)/y-z)^2
173+ julia> f = k*(abs(x-y)/y-z)^2
174174k*((abs(x - y) / y - z)^2)
175175
176- julia> Dx= Differential(x) # Differentiate wrt x
176+ julia> Dx = Differential(x) # Differentiate wrt x
177177(::Differential) (generic function with 2 methods)
178178
179- julia> dfx= expand_derivatives(Dx(f))
179+ julia> dfx = expand_derivatives(Dx(f))
180180(k*((2abs(x - y)) / y - 2z)*IfElse.ifelse(signbit(x - y), -1, 1)) / y
181181```
182182"""
Original file line number Diff line number Diff line change 11"""
2- replacenode(expr::Symbolic, rules...)
2+ replacenode(expr::Symbolic, rules...)
3+
34Walk the expression and replacenode subexpressions according to `rules`. `rules`
45could be rules constructed with `@rule`, a function, or a pair where the
56left hand side is matched with equality (using `isequal`) and is replacenoded by the right hand side.
@@ -75,7 +76,8 @@ function _hasnode(r, y)
7576end
7677
7778"""
78- filterchildren(c, x)
79+ filterchildren(c, x)
80+
7981Returns all parts of `x` that fulfills the condition given in c. c can be a function or an expression.
8082If it is a function, returns everything for which the function is `true`. If c is an expression, returns
8183all expressions that matches it.
You can’t perform that action at this time.
0 commit comments