in reply to Imaginary / Complex numbers

Math::Complex is a standard module that comes with perl 5.8.0. You also might want to look into the PDL module. It has a lot of math functionality - though I'm not sure whether it actually has complex numbers.

Abigail

Replies are listed 'Best First'.
Re^2: Imaginary / Complex numbers
by etj (Priest) on Jun 26, 2022 at 16:13 UTC
    In 2002, there was basic support using PDL::Complex (which didn't have working matrix multiplication, and had an extra exposed dimension for real/imaginary, which caused problems). That still (as of 2.080) exists, but is now deprecated in favour of the "native complex" (C99) number functionality (cfloat, cdouble, cldouble types).