Need some assistance with creating a program
1 次查看(过去 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!