All Questions
2
questions
1
vote
1
answer
83
views
NDSolve with embedded piecewise function for state-variable
Given ODE:
$\dot{x}=-2 e^{-x^2} x + U$
where:
$U=-u_{as}$
$u_{as} = \begin{cases} \frac{e}{\psi_+-e}, & \mbox{if } e\mbox{>=0} \\ \frac{e}{e-\psi_-}, & \mbox{if } e\mbox{<0} \end{cases}$
...
1
vote
2
answers
796
views
NDSolve with Piecewise function
I have the following code on Mathematica
...