Default precision is "whatever the reult of the math operation is" and hence can grow quite large. Because
PDL only offers doubles I tried using BigFloat to fill a Math::Matrix which was then exponentiated to a high power.
Without a defined precision the program slowed down for
each progressive iteration. Woohoo!
| [reply] |
Ok, maybe thats what I don't know how to do. I tried the following pre-division:
$numerator->precision(999999999999999999999999999999999999999999999999
+99999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999
+99999999999999999999999999999999999999999999999999999);
$denominator->precision(9999999999999999999999999999999999999999999999
+99999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999
+9999999999999999999999999999999999999999999999999999999);
After which the values for numerator and denominator = 0. I tried to set the global precision to this as well, and seemingly everything becomes a NaN. I'm using Perl 5.8 btw, I dunno if that helps.
Thanks,
bW | [reply] [d/l] |