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]

Gsl 0.02


Gsl now implements the entire Special Functions library of GSL, with an
OO interface. Current syntax: (from docs)

  use Gsl qw(:FUNCTIONFAMILY);
  # returns an object for Special function answers
  my $r      = new Gsl::SpecialFunction;
  my $answer = FUNCTION( $x );
  # functions that take a result object have a _e appended
  # to their name
  my $status = FUNCTION_e( $x, $r );
  print "Value: " . $r->val . "\n";
  print "Error: " . $r->err . "\n";
  print "Status: $status\n";

All comments welcome.
Thanks to everyone that provided helpful hints.

http://www.leto.net/code/gsl/
http://www.leto.net/code/Gsl-0.02.tar.gz

-- 
Jonathan Leto
jonathan@leto.net 



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