Alberto Manuel Brandão Simões > Math-GSL-0.34 > Math::GSL::Integration

Download:
Math-GSL-0.34.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  8
Open  8
View/Report Bugs
Source  

NAME ^

Math::GSL::Integration - Routines for performing numerical integration (quadrature) of a function in one dimension

SYNOPSIS ^

    use Math::GSL::Integration qw /:all/;

    my $function = sub { $_[0]**2 } ;
    my ($lower, $upper ) = (0,1);
    my ($relerr,$abserr) = (0,1e-7);

    my ($status, $result, $abserr, $num_evals) = gsl_integration_qng ( $function,
                                                    $lower, $upper, $relerr, $abserr
                                                 );

DESCRIPTION ^

This module allows you to numerically integrate a Perl subroutine. Depending on the properties of your function (singularities, smoothness) and the type of integration range (finite, infinite, semi-infinite), you will need to choose a quadrature routine that fits your needs.

This module also includes the following constants :

The following error constants are part of the Math::GSL::Errno module and can be returned by the gsl_integration_* functions :

MORE INFO ^

For more informations on the functions, we refer you to the GSL offcial documentation: http://www.gnu.org/software/gsl/manual/html_node/

AUTHORS ^

Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008-2011 Jonathan "Duke" Leto and Thierry Moisan

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: