Diffractor.jl
Diffractor.jl copied to clipboard
Forward mode with complex numbers
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}.