Math::Gsl 0.06

Jonathan Leto jonathan@leto.net
Wed Dec 19 13:20:00 GMT 2001


The new version of the perl API to Gsl has been accepted by CPAN into the
Math::Gsl namespace. To install:

perl -MCPAN -e "install Math::Gsl"

To view online documentation: http://leto.net/code/gsl/

There is a totally new API, which allows you to do all of the following:

        use Math::Gsl::Sf qw(:Gamma);
        my $sf = new Math::Gsl::Sf;
        my $r = new Math::Gsl::Sf::Result;

        print "1: Gamma(5): " . Math::Gsl::Sf::gamma( 5 ) . "\n";
        print "2: Gamma(5): " . $sf->gamma(5) . "\n";
        print "3: Gamma(5): " . gamma(5) . "\n";
        print "4: Gamma(5): " . Math::Gsl::Sf::sf_gamma(5) . "\n";
        my $status = $sf->gamma_e( 5 , $r );
        print "5: Gamma(5): " . $r->val . ",". $r->err ." $status \n";

Let me know what you think.


-- 
jonathan@leto.net 
"Wir mussen wissen. Wir werden wissen."





More information about the Gsl-discuss mailing list