Effacer les filtres
Effacer les filtres

Need some assistance with creating a program

1 vue (au cours des 30 derniers jours)
Aaron
Aaron le 12 Juil 2012
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.

Réponse acceptée

Adrian Dronca
Adrian Dronca le 12 Juil 2012
Modifié(e) : Adrian Dronca le 12 Juil 2012
You could create a small GUI using GUIDE.
You can get the data from/to GUI using the commands get and set

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by