You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
302 B
7 lines
302 B
2 years ago
|
|
||
|
Exercise 2.1: Define a better version of
|
||
|
make-rat that handles both positive and negative arguments.
|
||
|
Make-rat should normalize the sign so that if the rational number is
|
||
|
positive, both the numerator and denominator are positive, and if the rational
|
||
|
number is negative, only the numerator is negative.
|