This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
Complex variables support #39
Closed
Description
Are the equations for complex dependent variables officially supported? I tried to solve the following simple equation and I got the InexactError()
:
julia> F(t,y)=1im*y
F (generic function with 1 method)
julia> ODE.ode45(F,y0,[0.0,1.0])
ERROR: InexactError()
in setindex! at array.jl:305
julia> y0=[0.0im]
1-element Array{Complex{Float64},1}:
0.0+0.0im
julia> ODE.ode45(F,y0,[0.0,1.0])
ERROR: InexactError()
in setindex! at array.jl:305
EDIT: ok, I have just read the example by @acroy in issue #37. Why is there a new type needed to get the complex numbers working?
Metadata
Metadata
Assignees
Labels
No labels