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

Forward mode with complex numbers

Open mcabbott opened this issue 3 years ago • 0 comments
trafficstars

These should agree, right?

julia> Diffractor.PrimeDerivativeBack(x -> real(sin(x)))(1+im)
0.8337300251311491 + 0.9888977057628651im

julia> Diffractor.PrimeDerivativeFwd(x -> real(sin(x)))(1+im)
ERROR: Tangent space not defined for `Complex{Int64}.

mcabbott avatar Jan 12 '22 01:01 mcabbott