This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Math::Gsl 0.06
- To: gsl-discuss <gsl-discuss at sourceware dot cygnus dot com>
- Subject: Math::Gsl 0.06
- From: Jonathan Leto <jonathan at leto dot net>
- Date: Thu, 8 Nov 2001 10:03:50 -0500
- Reply-To: jonathan at leto dot net
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."