Bill Cunningham schrieb am 18.05.2014 01:00:
I am looking at several languages for math work. Algebraic work mainly
linear equations and expanding and factoring equations. All this can be done
by hand of course and C has a good library. What can perl do with math?
Assuming you don't mean "symbolic math", the CPAN lists about 1000
modules doing all sorts of math:
https://metacpan.org/search?q=Math::
Of course, *native* Perl isn't as fast as C, but many of the modules in
the Math:: namespace have compiled XS parts, which gives you comparable
speed.
Especially if you want to work with (large) matrices, have a look at the
PDL module.
It's intro says:
PDL - the Perl Data Language
PDL is the Perl Data Language, a perl extension that is designed for
scientific and bulk numeric data processing and display. It extends
perl's
syntax and includes fully vectorized, multidimensional array handling,
plus several paths for device-independent graphics output.
PDL is fast, comparable and often outperforming IDL and MATLAB in real
world applications. PDL allows large N-dimensional data sets such as
large
images, spectra, etc to be stored efficiently and manipulated quickly.
HTH, Horst