Search found 4 matches

by harrym
Wed Dec 07, 2011 2:25 am
Forum: Common Lisp
Topic: Cordic Program, troubles
Replies: 7
Views: 8946

Re: Cordic Program, troubles

Wow thank you, now it works perfectly :lol: I did not know that details, now I will print it in my mind :)
Thanks to everyone!
by harrym
Mon Dec 05, 2011 1:31 pm
Forum: Common Lisp
Topic: Cordic Program, troubles
Replies: 7
Views: 8946

Re: Cordic Program, troubles

Yes, if I take out those two lines, the error disappears... but I have no idea how to solve my error :(
What I want to do is this:

Code: Select all

if(z0>0){
c1 = c0-d*s0;
s1 = s0+d*c0;
}
if(z0<0){
c1 = c0+d*s0;
s1 = s0-d*c0;
}
How could I solve?

harrym
by harrym
Mon Dec 05, 2011 10:00 am
Forum: Common Lisp
Topic: Cordic Program, troubles
Replies: 7
Views: 8946

Re: Cordic Program, troubles

Hmmm... is it really true that learning Lisp will help with RPL programming? Maybe learning Forth, but Lisp? Anyway, to get you started, the error you are getting, ">: ANG is not a real number", is using "real" in the mathematic sense. It means that the data that symbol ANG cont...
by harrym
Sun Dec 04, 2011 1:15 pm
Forum: Common Lisp
Topic: Cordic Program, troubles
Replies: 7
Views: 8946

Cordic Program, troubles

Hello everyone, I am a CLISP newbie, I am learning it in order to "learn better" my calculator's programming language (an HP50g, it uses UserRPL). I am having trouble with my first program, a CORDIC routine used to calculate sine and cosine in computer with little calculation power. Here i...