Effacer les filtres
Effacer les filtres

How to divide by zero during transition from positive to negative value?

2 vues (au cours des 30 derniers jours)
GD
GD le 27 Fév 2015
Modifié(e) : Matt J le 27 Fév 2015
I have a simulink block to calculate the stopping distance of the vehicle d= v²/(2(mu)(g)), as you can see i have division by 'mu' and the value of 'mu' changes from positive value to negative value, and during this transition 'mu' becomes zero momemtarily and then division by zero is invalid. Can someone please suggest me some method.
Thank you.

Réponses (1)

Matt J
Matt J le 27 Fév 2015
Modifié(e) : Matt J le 27 Fév 2015
If a result lacks a common definition, then the definition is something you must provide! To my mind, distances should always be positive. Why is mu allowed to become <=0 when it clearly gives a non-physical distance result? Or, if mu=0 does have some physical meaning for you, what is the result you expect for d when it happens?

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by