Levak a écrit:AlexisVieira a écrit:on the cas maybe i can make it displays the angle and the module on diferent lines...
Like returning lists/matrices ?
yes... something that says: "module=2" "angle=2*pi" in different lines...
Levak a écrit:AlexisVieira a écrit:on the cas maybe i can make it displays the angle and the module on diferent lines...
Like returning lists/matrices ?
Define LibPub trigo(x)=
Prgm
Disp "módulo="abs(x)
Disp "ângulo="angle(x)
Disp abs(x)*cis(angle(x))
EndPrgm
AlexisVieira a écrit:after some tries i reached a program that is more or less what I wanted. On the CAS oS works fine. On the non-CAS it doesn't work at all. The only problem when I use the CAS oS is that if i have the Cis() defined before the program will return the entered number
- Code: Tout sélectionner
Define LibPub trigo(x)=
Prgm
Disp "módulo=",abs(x)
Disp "ângulo=",angle(x)
Disp abs(x)*cis(angle(x))
EndPrgm
AlexisVieira a écrit:cis(x)=cos(x)+i*sin(x)
Bisam a écrit:Why don't you use the function already available on calc : >Polar (with plain triangle) ?
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités