Help with result printing

Discussion of Scheme and Racket
Post Reply
sepuku
Posts: 12
Joined: Thu May 12, 2011 11:00 am

Help with result printing

Post by sepuku » Thu May 12, 2011 11:09 am

Hello there people!I'm writing the quadratic equation to scheme lisp and i need some help with the results printing:

1)If i define some calculations to the variable a,how do i print the result of the calculations that is stored to a?

2)If the result is a cons then how do i print the cons ?

I tried the display command but i cannot make it work. :/

Please answer me as soon as possible!

Thank you in advance.

saulgoode
Posts: 45
Joined: Tue Dec 14, 2010 1:39 am

Re: Help with result printing

Post by saulgoode » Mon May 16, 2011 1:05 am

Could you post the code you are using?

sepuku
Posts: 12
Joined: Thu May 12, 2011 11:00 am

Re: Help with result printing

Post by sepuku » Mon May 16, 2011 9:18 am

I finally managed to correct my code: A was using uneeded parenthesies! :ugeek:

Post Reply