Discussion:
Use GCD in Project 2?
(too old to reply)
Matthew Chan
2005-02-01 04:05:27 UTC
Permalink
In the project description, undering example toString outputs, there is
this line "3/7 + -4/2 x^7 + 5/3 x^9". Should the -4/2 be reduced to
-2/1? Thanks

Matthew Chan
Gohulan
2005-02-01 06:49:00 UTC
Permalink
Post by Matthew Chan
In the project description, undering example toString outputs, there is
this line "3/7 + -4/2 x^7 + 5/3 x^9". Should the -4/2 be reduced to
-2/1? Thanks
Matthew Chan
it should have been taken care of by the Rational class. So its assumed
to be workin in this project.
Irene Huang
2005-02-02 19:49:26 UTC
Permalink
Yes, it should be reduced to "-2/1"

Irene Huang x3226
Post by Matthew Chan
In the project description, undering example toString outputs, there is
this line "3/7 + -4/2 x^7 + 5/3 x^9". Should the -4/2 be reduced to
-2/1? Thanks
Matthew Chan
Loading...