CURV2(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– CURV2 β€” bestie edition πŸ’–

okay so this is a page from the NCAR GRAPHICS manual set, and it's about CURV2, a 1D interpolation girlie for non-periodic functions. yes she's niche. yes she's iconic. let's get into it πŸ¦‹


✨ NAME ✨

CURV2 β€” 1D interpolation for non-periodic functions. that's the whole vibe. she interpolates. she does not do periods. periodt. πŸ’…


🌸 SYNOPSIS 🌸

FUNCTION CURV2 (T, N, X, Y, YP, SIGMA)

so what's the tea? CURV2 interpolates a value at a specified point using a spline under tension. and listen β€” you must call CURV1 before you call CURV2, and then use the values you got from CURV1 as input to CURV2. it's giving "you can't sit with us until you've done the prerequisite." 🫢

once that's handled, CURV2 returns the interpolated function value at the X-coordinate you specified. slay.


πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the cast of characters, one by one, no skips:

  • T β€” (real, input) the abscissa for which an interpolated function value is desired. like, this is the spot you're asking about. main character energy fr.
  • N β€” (integer, input) the number of input data values. must be N > 1, no cap. (literally, if N isn't greater than 1 we can't do this.)
  • X β€” (real, input) an array containing the abscissae for the input function. the x-coordinates. the horizontal besties.
  • Y β€” (real, input) an array containing the functional values of the input data β€” Y(K) is the functional value at X(K) for K=1,N. yes exactly that. memorize it. πŸ’œ
  • YP β€” (real, input) contains values for the second derivative (as calculated by CURV1). see?? told you CURV1 was required. it's not a suggestion, it's a whole situationship with a dependency.
  • SIGMA β€” (real, input) the tension factor. and this one is lowkey the personality of the whole function:
    • values near zero result in a cubic spline 🌈
    • large values (e.g. 50) result in nearly a polygonal line πŸ’€
    • a typical value is 1 ✨

⭐ RETURN VALUE ⭐

CURV2 returns the interpolated value at the specified point T. that's it, that's the gift. she delivers. 🎁


πŸ’« ACCESS πŸ’«

to use CURV2, load the NCAR Graphics library ngmath. that's the whole ritual. go off. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

  • curv1
  • fitgrid_params

also!! complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β€” go read it, bestie, it's free education. πŸ“š


Copyright (C) 2000
University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.
so yeah, legal said what it said. use of this Software is governed by a License Agreement β€” not me being dramatic, that's literally the line. don't skip it, iykyk. πŸ™ˆ

okay and for the little sign-off moment: this page lives in the UNIX manual, it's dated March 1998, and it answers to the name CURV2(3NCARG). vintage but make it cute. bye bestie, go interpolate responsibly πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from