Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Using GP with Math::Pari

by hv (Prior)
on Dec 18, 2007 at 14:00 UTC ( [id://657677]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Math::Pari qw/ PARI /;
    sub PARIdo {
    ...
        $s =~ s/[{}\s]+//g;
        PARI($s);
    }
    
  2. or download this
    PARIdo(q{
      mygcd(a, b) = {
    ...
      }
    });
    print PARI("mygcd(12,8)");
    
  3. or download this
    my $v1 = PARI(12);
    my $v2 = PARI(8);
    print PARI(qq{mygcd($v1,$v2)});
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://657677]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2024-04-18 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found