Manish on Mon, 15 Sep 2003 01:58:50 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Perl script help may be OT


I am trying to write a perl script to inverse a matrix, so first I am starting
by checking the determinant..

here is what I have tried and RTFMED and am still lost... I cannot figure out
a way to use  functions from libPari in my perlscript.
All the references to the links to Math::libPari on CPAN were broken and
man Math::Pari didnt help either.

#!/usr/bin/perl -w
use strict;
use Math::Pari;
use Math::PariInit;

my $mat = PARImat
[
[1 , 2 , 3 ],
[4 , 5 , 6 ],
[7 , 8 , 9 ],
];


my $determinant = PARI('O(det2($mat))');
print $determinant;
gives PARI:   ***   obsolete function: O(det2($try_key_mat))
                           ^------------------


my $determinant = Math::Pari::det2($mat);
print $determinant;
gives `det2' is not a Pari function name at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Math/Pari.pm


my $determinant = Math::Pari::libPari::det2($mat);
print $determinant;
Undefined subroutine &Math::Pari::libPari::det2 called


now is there any hope for me??

-Manish