Math::...:Spline(3pm)

πŸŽ€ NAME πŸŽ€

Math::...:Spline β€” bestie, it's Splines. That's it. That's the name. Slay. πŸ’…

(Also: this is a 3pm page, from the User Contributed Perl Documentation collection, so you know it's the community-coded Perl side of things. 🫢)


✨ SYNOPSIS ✨

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

Yup, one line. Import everything with :all, no notes. Iconic behaviour, honestly. 🌸


πŸ’– DESCRIPTION πŸ’–

okay so here's the lore. The functions over in the Interp module were kinda high-maintenance β€” they made you supply pointers to the x and y arrays on every single call. Every call. Exhausting. 😭

The functions below are the glow-up version: they're equivalent to the corresponding gsl_interp functions, BUT they keep their own copy of your data inside the gsl_spline object. So you never have to pass both xa and ya as arguments on each evaluation ever again. It's giving independent. ✨

Here's the whole cast, no skips, no cuts: πŸ‘‘

  • "gsl_spline_alloc($T, $size)"
  • "gsl_spline_init($spline, $xa, $ya, $size)"
  • gsl_spline_free($spline)
  • gsl_spline_name($spline)
  • gsl_spline_min_size($spline)
  • "gsl_spline_eval_e($spline, $x, $acc)"
  • "gsl_spline_eval($spline, $x, $acc)"
  • "gsl_spline_eval_deriv_e($spline, $x, $acc)"
  • "gsl_spline_eval_deriv($spline, $x, $acc)"
  • "gsl_spline_eval_deriv2_e($spline, $x, $acc)"
  • "gsl_spline_eval_deriv2($spline, $x, $acc)"
  • "gsl_spline_eval_integ_e($spline, $a, $b, $acc)"
  • "gsl_spline_eval_integ($spline, $a, $b, $acc)"

And if you want the full deep-dive on what all of these actually do (because bestie, this page is not gonna hold your hand on every parameter), the page says: go read the GSL official documentation, right here πŸ‘‡

<http://www.gnu.org/software/gsl/manual/html_node/>

That's the source of truth, no cap. πŸ¦‹


🌟 AUTHORS 🌟

The legends behind this:

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

Two icons, one module. πŸ”₯


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. So like, go wild, respectfully. πŸ’œ


ok and that's the whole page!! every single function accounted for, nothing dropped, we ate and left no crumbs. πŸ“

Sign-off time, babes: this was documented with perl v5.42.3, dated 2026-08-20, and the page you just read is the one and only Math::...:Spline(3pm). mwah. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from