Need some assistance with creating a program
3 ビュー (過去 30 日間)
古いコメントを表示
I need to create a while loop program to calculate cos(x) accurate to 6 digits after decimal using:
cos(x)=1-(x^2/2!)+(x^4/4!)-..... (x is in radians)
I want to prompt the user to enter an angle in degrees and display cos(A). I'm just lost right now. Gonna sleep on it but any help would be greatly appreciated.
0 件のコメント
採用された回答
Adrian Dronca
2012 年 7 月 12 日
編集済み: Adrian Dronca
2012 年 7 月 12 日
You could create a small GUI using GUIDE.
You can get the data from/to GUI using the commands get and set
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!