Levak wrote:AlexisVieira wrote: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 wrote:AlexisVieira wrote: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 wrote: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: Select all
Define LibPub trigo(x)=
Prgm
Disp "módulo=",abs(x)
Disp "ângulo=",angle(x)
Disp abs(x)*cis(angle(x))
EndPrgm
AlexisVieira wrote:cis(x)=cos(x)+i*sin(x)
Bisam wrote:Why don't you use the function already available on calc : >Polar (with plain triangle) ?
Users browsing this forum: ClaudeBot [spider], michell0987654321 and 3 guests