an question need to solve
古いコメントを表示
Many applications use the following “small angle” approximation for the sine to obtain a simpler model that is easy to understand and analyze. This approximation states that sin x ≈ x, where x must be in radians. Investigate the accuracy of this approximation by creating three plots. For the first, plot sin x and x versus x for 0 ≤ x ≤ 1. For the second, plot the approximation error sin x - x versus x for 0 ≤ x ≤ 1. For the third, plot the relative error [sin(x) - x]/sin(x) versus x for 0 ≤ x ≤ 1. How small must x be for the approximation to be accurate within 5 percent?
6 件のコメント
the cyclist
2023 年 5 月 21 日
Mahmoud Ibrahim
2023 年 5 月 21 日
Mahmoud Ibrahim
2023 年 5 月 21 日
編集済み: Mahmoud Ibrahim
2023 年 5 月 21 日
the cyclist
2023 年 5 月 21 日
My hypothesis is that you found this solution to your homework on the web, and you don't understand it.
I will give you a couple small hints, under the assumption that you would still like to learn.
Hint #1 (about using abs): If you are making an error, do you care what direction the error is in?
Hint #2 (about multiplying by 100): Think about what percent error means.
Mahmoud Ibrahim
2023 年 5 月 21 日
Steven Lord
2023 年 5 月 21 日
The information on this Wikipedia page may help you understand the use of abs and why the code multiplies by 100.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graphics についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
