Symbolics.jl icon indicating copy to clipboard operation
Symbolics.jl copied to clipboard

Defect in complex differentation?

Open goerch opened this issue 3 years ago • 0 comments

From an discussion over at Discourse we have for example

using Symbolics
@variables x::Float64
D = Differential(x)
@show D
@show D(x) 
@show expand_derivatives(D(x))

@variables z::Complex{Float64}
D = Differential(z)
@show D
@show D(z)
@show expand_derivatives(D(z))

yielding

D = Differential(x)
D(x) = Differential(x)(x)
expand_derivatives(D(x)) = 1
D = Differential(z)
D(z) = Differential(z)(z)
expand_derivatives(D(z)) = 0

This looks wrong.

┆Issue is synchronized with this Trello card by Unito

goerch avatar Mar 22 '22 19:03 goerch