Borrar filtros
Borrar filtros

why simulink gives wrong answer of trigonometery

2 visualizaciones (últimos 30 días)
mahmood hassan
mahmood hassan el 28 de En. de 2018
Comentada: Star Strider el 29 de En. de 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 comentario
mahmood hassan
mahmood hassan el 28 de En. de 2018
Editada: mahmood hassan el 28 de En. de 2018
Image of the my simulink simulation is attached

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 28 de En. de 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 comentarios
mahmood hassan
mahmood hassan el 29 de En. de 2018
OK Thanks
Star Strider
Star Strider el 29 de En. de 2018
My pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Computer Vision with Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by