c_ftcurvp(3NCARG)
β¨ NAME β¨
c_ftcurvp β it's a 1D interpolation situation but make it periodic, bestie π (like, the function loops back around, she's giving circular, she's giving no beginning no end π)
This one lives in the NCAR GRAPHICS manual, and honestly? she's a little icon. π
πΈ FUNCTION PROTOTYPE πΈ
int c_ftcurvp (int, float [], float [], float, int, float [], float []);
look at her. seven args. absolutely unbothered. π
π¦ SYNOPSIS π¦
int c_ftcurvp (n, xi, yi, p, m, xo, yo);
π DESCRIPTION π
okay so here's the whole cast, no skips, we're covering everyone:
nβ the number of input data points. and heads up:n > 1, like she needs at least two points to function, we don't do solos here π ββοΈxiβ an array holding the abscissae for the input function. that's the x-values, the "where" of it all.yiβ an array with the input functional values. soy(k)is the functional value atx(k)fork=0,n. literally the y-values, matching up withxi, one-to-one, slay.pβ the period of the function β¨ and this is important, bestie:pmust not be less thanxi[n-1] - xi[0]. like that's a whole rule, don't try it.mβ how many interpolated points you want. you're orderingmof them.xoβ an array with the abscissae for the interpolated values. your new x's, freshly computed.yoβ an array with the interpolated functional values, whereyo(k)is the functional value atxo(k)fork=0,n. your new y's. matching set. periodt. π«Ά
π RETURN VALUE π
c_ftcurvp hands you back an error value, and it's very "here's the tea" about it:
= 0β no error. we ate. π₯= 1β ifnis less than 2. (girl needed more points π)= 2β if the period is strictly less than the span of the abscissae. (thepsituation from before. she noticed. π)
π USAGE π
so the move is: you call c_ftcurvp after you've already set all the control parameter values you want, using these three besties:
c_ftsetic_ftsetrc_ftsetc
and the control parameter that actually applies to c_ftcurvp? that's just sig. that's the one. iykyk.
π§ ACCESS π§
to use c_ftcurvp, you load the NCAR Graphics library ngmath. that's the one. that's where she lives. π
β SEE ALSO β
go check out her friends, they're all so valid:
fitgrid_paramsc_ftsetic_ftsetrc_ftsetc
and if you want the complete documentation for Fitgrid, it's literally right here, go look, no cap:
http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
and fr fr, read this part: the use of this Software is governed by a License Agreement. that's not a vibe, that's a legal thing. π
and that's the whole page, bestie! this was the UNIX manual page for c_ftcurvp, from the NCAR GRAPHICS crew, dated March 1998 β yes, she's vintage, she's an elder, and she still serves πβ¨ bye!! π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms