an question need to solve
조회 수: 27 (최근 30일)
이전 댓글 표시
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
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.
채택된 답변
Image Analyst
2023년 5월 21일
This looks like a homework problem. If you have any questions ask your instructor or read the link below to get started:
Obviously we can't give you the full solution because you're not allowed to turn in our code as your own.
To learn fundamental concepts, invest 2 hours of your time here:
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!