필터 지우기
필터 지우기

why simulink gives wrong answer of trigonometery

조회 수: 2 (최근 30일)
mahmood hassan
mahmood hassan 2018년 1월 28일
댓글: Star Strider 2018년 1월 29일
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
mahmood hassan
mahmood hassan 2018년 1월 28일
편집: mahmood hassan 2018년 1월 28일
Image of the my simulink simulation is attached

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2018년 1월 28일
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
mahmood hassan
mahmood hassan 2018년 1월 29일
OK Thanks
Star Strider
Star Strider 2018년 1월 29일
My pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by