This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Math::Gsl 0.06


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."




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]