469,282 Members | 2,034 Online

# Help deciphering homework instructions... 119 100+
I have an instruction for a rational class that I am writing that I don't understand, and am hoping someone can clarify:

Implement overloaded methods for the +, -, *, ? and ** (with a presumed integer exponent) operators using what you know from integer arithmetic. (I get this part) For instance:

a/b + c/d = (ad + cb)/bd

Note that the rational numbers are 'closed' (this is what I don't understand) under these operations. Also note that rational arithmetic is exact.

Its just the last two sentences I don't understand. I included the rest for context. Overloaded methods are not a problem.

TMS
Feb 10 '07 #1
1 899 bvdet
2,851 Expert Mod 2GB
I have an instruction for a rational class that I am writing that I don't understand, and am hoping someone can clarify:

Implement overloaded methods for the +, -, *, ? and ** (with a presumed integer exponent) operators using what you know from integer arithmetic. (I get this part) For instance:

a/b + c/d = (ad + cb)/bd

Note that the rational numbers are 'closed' (this is what I don't understand) under these operations. Also note that rational arithmetic is exact.

Its just the last two sentences I don't understand. I included the rest for context. Overloaded methods are not a problem.