- #1
matteo86bo
- 60
- 0
Hi,
I noticed such a strange behavior in my code every time I add a threshold: little oscillation around the threshold value itself.
For example
[tex] f(x) = g(x), x > x_c[/tex]
[tex] f(x) = 0, x <= x_c[/tex]
[tex]\frac{dx}{dt}=f(x)[/tex]
I solve the last equation and I find this oscillation. Can they be removed?
I noticed such a strange behavior in my code every time I add a threshold: little oscillation around the threshold value itself.
For example
[tex] f(x) = g(x), x > x_c[/tex]
[tex] f(x) = 0, x <= x_c[/tex]
[tex]\frac{dx}{dt}=f(x)[/tex]
I solve the last equation and I find this oscillation. Can they be removed?