Effacer les filtres
Effacer les filtres

why simulink gives wrong answer of trigonometery

2 vues (au cours des 30 derniers jours)
mahmood hassan
mahmood hassan le 28 Jan 2018
Commenté : Star Strider le 29 Jan 2018
Kindly guide me when I am doing trigonometry operation by Simulink why it gives the wrong result for sin(pi), sin(2pi) and cos(pi/2)
  1 commentaire
mahmood hassan
mahmood hassan le 28 Jan 2018
Modifié(e) : mahmood hassan le 28 Jan 2018
Image of the my simulink simulation is attached

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 28 Jan 2018
It seems that you are seeing floating-point approximation error.
See Why is 0.3 - 0.2 - 0.1 (or similar) not equal to zero? (link) for a comprehensive discussion.
  7 commentaires
mahmood hassan
mahmood hassan le 29 Jan 2018
OK Thanks
Star Strider
Star Strider le 29 Jan 2018
My pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by