Math::GSL::Diff(3pm)

Math::GSL::Diff3pm

Numerical differentiation routines

Usage

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

Overview

Here is a list of all the functions included in this module :

"gsl_diff_central"

This function computes the numerical derivative of the function f at the point x using an adaptive central difference algorithm. The result is an array where the first position is an error code (0 for success), the second is derivative value, and the third is an estimate of its absolute error.

   my ($success, $result, $error) =
         gsl_diff_central(sub { return $_[0] ** 1.5 }, 2.0);
"gsl_diff_backward"

This function computes the numerical derivative of the function f at the point x using an adaptive forward difference algorithm. Its usage is similar to "gsl_diff_central".

   my ($success, $result, $error) =
          gsl_diff_backward(sub { return $_[0] ** 1.5 }, 0.0);
"gsl_diff_forward"

This function computes the numerical derivative of the function f at the point x using an adaptive backward difference algorithm. Its usage is similar to "gsl_diff_central".

   my ($success, $result, $error) =
          gsl_diff_forward(sub { return $_[0] ** 1.5 }, 1.0);

Examples

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

Jonathan "Duke" Leto <[email protected]> and Thierry Moisan <[email protected]>

From libmath-gsl-perl 0.45-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.