c_ftcurvpi(3NCARG)
β¨ c_ftcurvpi β¨ (from the NCAR GRAPHICS manual, bestie π)
π NAME π
c_ftcurvpi β the girl whose whole job is calculating integrals for periodic functions. no cap. π
π§ FUNCTION PROTOTYPE π§
int c_ftcurvpi (float, float, float, int, float [], float [], float *);
πΈ SYNOPSIS πΈ
int c_ftcurvpi (xl, xr, p, m, xi, yi, integral);
π DESCRIPTION π
okay so here's the whole cast, let me introduce you π«Ά
xlβ the lower limit of the integration. like, where we start, bestie.xrβ the upper limit of the integration. where we stop. iconic duo withxlfr.pβ the period of the function. β οΈ important:pmust not be less thanxi[n-1] - xi[0]. not negotiable, she will not be flexible about this.mβ the number of input data points. (N > 1, always)xiβ an array holding the abscissae for the input function.yiβ an array holding the functional values of the input function (y(k)is the functional value atx(k)fork=0,n).integralβ the integral of the function fromxltoxrgets handed back to you through*integral. she delivers. π
π₯ RETURN VALUE π₯
c_ftcurvpi returns an error value, as per:
= 0β no error. slay, we ate, everything's perfect β¨= 1β ifnis less than 2.= 2β if the period is strictly less than the span of the abscissae.
π USAGE π
c_ftcurvpi gets called after all of the desired values for control parameters have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc. order matters, bestie, don't skip ahead π
the control parameters that apply to c_ftcurvpi are: sig.
π¦ ACCESS π¦
to use c_ftcurvpi, load the NCAR Graphics library ngmath. that's the vibe check, pass it. π
π SEE ALSO π
fitgrid_paramsc_ftsetic_ftsetrc_ftsetc
complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
π not me finishing a whole manpage and it's from the UNIX manual, dated March 1998 β literally older than us and still serving. periodt. ππ«Άπ
π¦ 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