Skip to content

Commit d023a90

Browse files
Change Expr conversion of Differential
Since differentials now work as functions, we can keep the functions themselves in the `Expr` representation.
1 parent 4043598 commit d023a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ end
55
Differential(x) = Differential(x,1)
66

77
Base.show(io::IO, D::Differential) = print(io,"($(D.x),$(D.order))")
8-
Base.Expr(D::Differential) = :($(Symbol("D_$(D.x.name)_$(D.order)")))
8+
Base.Expr(D::Differential) = D
99

1010
function Derivative end
1111
(D::Differential)(x::Operation) = Operation(D, Expression[x])

0 commit comments

Comments
 (0)