Math::GSL::Diff(3pm)
β¨ NAME β¨
Math::GSL::Diff β numerical differentiation routines, bestie. That's it, that's the whole vibe. π
π SYNOPSIS π
use Math::GSL::Diff qw/:all/;
okay so literally one line and you've got the whole squad loaded in π
π DESCRIPTION π
Here's the full roster of functions chillin' in this module, no gatekeeping:
π gsl_diff_central
This one computes the numerical derivative of your function f at the point x using an adaptive central difference algorithm. The result comes back as an array, and the positions matter, so listen up: first slot is an error code (0 means success, slay), second slot is the derivative value, and third slot is an estimate of its absolute error. three little besties in a trench coat π«Ά
my ($success, $result, $error) =
gsl_diff_central(sub { return $_[0] ** 1.5 }, 2.0);
π¦ gsl_diff_backward
This one computes the numerical derivative of the function f at the point x using an adaptive forward difference algorithm. (yes bestie, the name says backward and the algorithm says forward, ik, that's just how it is, don't shoot the messenger π) 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 one computes the numerical derivative of the function f at the point x using an adaptive backward difference algorithm. Same situation, flipped. π Its usage is similar to gsl_diff_central.
my ($success, $result, $error) =
gsl_diff_forward(sub { return $_[0] ** 1.5 }, 1.0);
π EXAMPLES π
This section is keeping the seat warm and nothing else, fr fr β it's empty in the original. no cap. πΈ
π AUTHORS π
Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com> β the icons who made this happen, we stan π
β COPYRIGHT AND LICENSE β
Copyright (C) 2008-2024 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. periodt. π
and that's the whole page, bestie β brought to you by perl v5.42.3 on 2026-08-20, mwah π stay differentiating β¨π¦πΈ
π¦ where this page comes from
- ubuntu stonking: libmath-gsl-perl 0.49-1build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms