Skip to content

Commit 5d49b91

Browse files
committed
Add spacing
1 parent 3535868 commit 5d49b91

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/diff.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ and other derivative rules to expand any derivatives it encounters.
170170
```jldoctest
171171
julia> @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
174174
k*((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
"""

src/rewrite-helpers.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
2-
replacenode(expr::Symbolic, rules...)
2+
replacenode(expr::Symbolic, rules...)
3+
34
Walk the expression and replacenode subexpressions according to `rules`. `rules`
45
could be rules constructed with `@rule`, a function, or a pair where the
56
left hand side is matched with equality (using `isequal`) and is replacenoded by the right hand side.
@@ -75,7 +76,8 @@ function _hasnode(r, y)
7576
end
7677

7778
"""
78-
filterchildren(c, x)
79+
filterchildren(c, x)
80+
7981
Returns all parts of `x` that fulfills the condition given in c. c can be a function or an expression.
8082
If it is a function, returns everything for which the function is `true`. If c is an expression, returns
8183
all expressions that matches it.

0 commit comments

Comments
 (0)