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 with xl fr.
  • p β€” the period of the function. ⚠️ important: p must not be less than xi[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 at x(k) for k=0,n).
  • integral β€” the integral of the function from xl to xr gets 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 β€” if n is 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_params
  • c_ftseti
  • c_ftsetr
  • c_ftsetc

complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html


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. πŸŽ€πŸ«ΆπŸ’