For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > April 2004 > Solve equations ...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Solve equations ...
Romain groleau

2004-04-09, 1:31 pm

Hi,

I would like to solve a system of equations for
example a system 6x6 with perl. But I really don't
know how to do it. First is it possible and then if
yes how?

Thank you,

Romain

Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen http://se.docs.yahoo.com/travel/index.html
WilliamGunther@aol.com

2004-04-10, 12:31 am

In a message dated 4/9/2004 12:47:13 PM Eastern Daylight Time,
romain_groleau@yahoo.se writes:
>Hi,
>
>I would like to solve a system of equations for
>example a system 6x6 with perl. But I really don't
>know how to do it. First is it possible and then if
>yes how?
>
>Thank you,
>
>Romain


I wrote a module for that: Math::Systems. It's slow and bad, and really, just
a front end to Cramer's law (which you might want to look into) :-) Also,
this, among other mathematical topics, is discussed in "Mastering Algorithms with
Perl"

-will
(the above message is double rot13 encoded for security reasons)

Most Useful Perl Modules
-strict
-warnings
-Devel::DProf
-Benchmark
-B::Deparse
-Data::Dumper
-Clone (a Godsend)
-Perl::Tidy
-Beautifier
Zentara

2004-04-10, 10:30 am

On Fri, 9 Apr 2004 18:46:38 +0200 (CEST), romain_groleau@yahoo.se
(Romain groleau) wrote:

>Hi,
>
>I would like to solve a system of equations for
>example a system 6x6 with perl. But I really don't
>know how to do it. First is it possible and then if
>yes how?


Solving simulataneous linear equations can be
(and is best done) with matrices. The coefficients
of the variables become the matrix elements.

So look at the various Matrix modules on cpan and
try to get one that uses c and xs for speed.

The PDL module, is well respected, and can do matrices.



--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com