Skip to content

The solve method doe not work #39

Description

@dgan181

It seem solve does not work independently in QuDiffEq. It required using OrdinaryDiffEq

using  QuDiffEq

# dx/dt = 3*x + 4

M = hcat(3.0)
b = [4.0]
x_0 = [2.0]
tspan = (0.0, 1.0)

qprob = QuLDEProblem(M, b, x_0, tspan)
sol = solve(qprob, QuLDE(5))
ERROR: UndefVarError: solve not defined
using  QuDiffEq
using OrdinaryDiffEq

# dx/dt = 3*x + 4

M = hcat(3.0)
b = [4.0]
x_0 = [2.0]
tspan = (0.0, 1.0)

qprob = QuLDEProblem(M, b, x_0, tspan)
sol = solve(qprob, QuLDE(5))

Prints result

1-element Vector{ComplexF64}:
 59.999999999999986 + 0.0im

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions