Help with result printing

Discussion of Scheme and Racket

Help with result printing

Postby 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.
sepuku
 
Posts: 12
Joined: Thu May 12, 2011 11:00 am

Re: Help with result printing

Postby saulgoode » Mon May 16, 2011 1:05 am

Could you post the code you are using?
saulgoode
 
Posts: 45
Joined: Tue Dec 14, 2010 1:39 am

Re: Help with result printing

Postby sepuku » Mon May 16, 2011 9:18 am

I finally managed to correct my code: A was using uneeded parenthesies! :ugeek:
sepuku
 
Posts: 12
Joined: Thu May 12, 2011 11:00 am


Return to Scheme

Who is online

Users browsing this forum: No registered users and 7 guests

cron