NDSolve::deqn: Equation or list of equations expected instead of True in the first
argument {(x'[t]==x[t]-q x[t]^2+y[t]-x[t] y[t],(y'[t]==-y[t]-x[t] y[t]+z[t],
(z'[t]==1/2 (x[t]-z[t]),True,True,True}.
I mean, I know what it says, but I have no idea how to fix it…Isn’t this the way to write NDSolve? It’s the first time I get something like that
Please help
When I run your code on a fresh kernel I get an error message “NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`.”. This is caused by having no numerical value assigned to q.
If I run your code again setting q=2 I obtain a solution for x, y, z given as InterpolatingFunctions.
I imagined something like that must had happened. The q is simply implied to be in a specific range of numbers. I’ll just assume a value for q. Thank you for your time.
That error indicates that x[0] was probably earlier set to 8 (that is one equal sign instead of two) and similar for the other initializations. In such cases, using Clear can help.