-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
using MATLABDiffEq
using ModelingToolkit
using OrdinaryDiffEq
@variables t
@variables a(t) = 1.0
D = Differential(t)
@named sys = ODESystem([D(a) ~ ifelse(a>0.0,-a,a)])
prob = ODEProblem(sys, [], (0.0,1.0))
solve(prob,MATLABDiffEq.ode15s())
ERROR: TypeError: non-boolean (Num) used in boolean context
Metadata
Metadata
Assignees
Labels
No labels