Hi,(adsbygoogle = window.adsbygoogle || []).push({});

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?

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Adding a threshold in numerical codes

Loading...

Similar Threads - Adding threshold numerical | Date |
---|---|

I Gaussian Quadrature on a Repeated Integral | Nov 28, 2017 |

I Values of Lagrange multipliers when adding new constraints | Oct 31, 2017 |

L'Hopital ad infinitum | Jun 30, 2013 |

Effect of adding two per share quantities | Nov 10, 2010 |

Minimising the action for surface area in AdS | Apr 2, 2009 |

**Physics Forums - The Fusion of Science and Community**