in reply to Factorials of rational numbers up to 999.9

You are mixing Math::Compex and bignum. I'm not really sure that that's well-supported. Have you looked at removing the use of one or the other? I would assume that using only Math::Complex should be sufficient.

A call to ->_cartesian() is issued from within Math::Complex, so my guess is that somewhere somehow, methods from Math::Complex are issued against Math::BigInt objects that may or may not come from bignum. This may be a bug in Math::Complex, but I don't know.

Replies are listed 'Best First'.
Re^2: Factorials of rational numbers up to 999.9
by Microcebus (Beadle) on May 16, 2011 at 08:17 UTC
    without using bignum the script works fine, but the factorials become #INF at 143!

      Most likely this is because not all elements in your calculations are Math::Complex objects, especially the constants. I would try to convert all elements to Math::Complex objects, or remove all Math::Complex calculations in favor of Math::BigInt.

      I'm not sure what part Math::Complex plays in your calculations. Maybe you can eliminate Math::Complex in favor of number pairs, (Math::BigInt, Math::BigInt), to denote the real and imaginary parts.