フィルターのクリア

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 Center および File ExchangeComputer Vision with Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by