Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Fraction Cancelationby BillKSmith (Monsignor) |
on Feb 24, 2016 at 18:05 UTC ( [id://1156045]=note: print w/replies, xml ) | Need Help?? |
I would not rule out the possibility that straight forward floating point arithmetic is more "efficient" than any cancelation algorithm. Loss of precision could be a problem for large numbers and/or arrays. Alternating the multiplies and divides could help.
Bill
In Section
Seekers of Perl Wisdom
|
|