05-05-2022, 05:05 AM
I’m having trouble downloading a certain program for my hp prime. Every time I type in the programs below I get a syntax error. Is there anyone that has a link where I can download these programs rather than manually put them in?
P_to_R(r,a):=
BEGIN
return (r*COS(a)+r*SIN(a)*i);
END;
R_to_P(x,y):=
BEGIN
return (CAS(collect(ABS(x+y*i)))+"∡"+CAS(collect(ARG(x+y*i))));
END;
P_to_R(r,a):=
BEGIN
return (r*COS(a)+r*SIN(a)*i);
END;
R_to_P(x,y):=
BEGIN
return (CAS(collect(ABS(x+y*i)))+"∡"+CAS(collect(ARG(x+y*i))));
END;