MROOT(3pm)

πŸ“¦
version 2.085 Β· 4 versions
, in ubuntu noble

πŸ’– MROOT πŸ’–

okay bestie, so this is the PDL::GSL::MROOT page β€” it lives in the User Contributed Perl Documentation section of the manual, and it's the one you want when you're out here trying to find the roots of a multidimensional function. no cap. πŸ¦‹


✨ NAME ✨

PDL::GSL::MROOT β€” PDL interface to multidimensional root-finding routines in GSL πŸ’…


🌸 DESCRIPTION 🌸

So basically this is an interface to the multidimensional root-finding package present in the GNU Scientific Library. it's giving "I let GSL do the math so you don't have to". 🧚

Right now there's literally a single function, gslmroot_fsolver, and it provides an interface to the algorithms in the GSL library that do not use derivatives. that's the whole vibe. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

use PDL;
use PDL::GSL::MROOT;

my $init = pdl (-10.00, -5.0);
my $epsabs = 1e-7;

$res = gslmroot_fsolver($init, \&rosenbrock,
                        {Method => 0, EpsAbs => $epsabs});

sub rosenbrock{
   my ($x) = @_;
   my $c = 1;
   my $d = 10;
   my $y = zeroes($x);

   my $y0 = $y->slice(0);
   $y0 .=  $c * (1 - $x->slice(0));

   my $y1 = $y->slice(1);
   $y1 .=  $d * ($x->slice(1) - $x->slice(0)**2);

   return $y;
}
#line 68 "MROOT.pm"

πŸ‘‘ FUNCTIONS πŸ‘‘

🌈 gslmroot_fsolver

Signature: (double [io]xfree(n);   double epsabs(); int method(); SV* function1)

info not available πŸ™ˆ β€” yeah bestie, that's genuinely all the docs say here, I'm not gonna make stuff up.

⚠️ heads up: gslmroot_fsolver does not process bad values. it will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. so like, keep that in mind. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • PDL

The GSL documentation is online at

http://www.gnu.org/software/gsl/manual/

πŸ’œ AUTHOR πŸ’œ

This file copyright (C) 2006 Andres Jordan <ajordan@eso.org> and Simon Casassus <simon@das.uchile.cl> All rights reserved. There is no warranty. You are allowed to redistribute this software/documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file.


okay that's the whole page, you ate that 🫢 this was perl v5.38.2, dated 2024-04-10, and it's the MROOT(3pm) page from the User Contributed Perl Documentation β€” mwah, go find some roots bestie πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from