You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using MATLABDiffEq
using ModelingToolkit
using OrdinaryDiffEq
@variables t
@variablesa(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
The text was updated successfully, but these errors were encountered:
ERROR: TypeError: non-boolean (Num) used in boolean context
The text was updated successfully, but these errors were encountered: