These are chat archives for
Sign in to start talking
The Piranha computer algebra system
Feb 09 14:05
Does Piranha guarantee anything about the signs of rational numbers:
for example, if I have a positive rational number r, does that imply both r.den() and r.num() are positive?
if I have a negative rational number r, is there any guarantee that only r.num() is negative? or could den() be negative instead?
Feb 09 15:06
rationals are always represented in a canonical form: denominator is strictly positive, numerator and denominator are coprime. Only the numerator can be signed.
Feb 09 20:26