c_ftcurvi(3NCARG)

๐Ÿ’– c_ftcurvi โ€” the NCAR GRAPHICS girlies' guide ๐Ÿ’–

okay so bestie, welcome to c_ftcurvi, straight out of the NCAR GRAPHICS manual ๐Ÿ’… this one's a C function and she is literally just here to calculate integrals. no cap. that's the whole vibe. โœจ


โœจ NAME โœจ

c_ftcurvi โ€” calculate integrals ๐Ÿงฎ


๐ŸŒธ FUNCTION PROTOTYPE ๐ŸŒธ

int c_ftcurvi (float, float, int, float [], float [], float *);

๐ŸŽ€ SYNOPSIS ๐ŸŽ€

int c_ftcurvi (xl, xr, n, xi, yi, integral);

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

here's the tea on every single argument, no skips, no gatekeeping ๐Ÿซถ

  • xl โ€” the lower limit of the integration. where you start, bb.
  • xr โ€” the upper limit of the integration. where you finish. main character energy from start to end ๐Ÿ’…
  • n โ€” the number of input data points. and she has a requirement: (N > 1). do not try her with a single point, she will not be doing that. ๐Ÿ˜ญ
  • xi โ€” an array holding the abscissae for the input function. yes abscissae. it's giving math. it's giving x-values. iconic.
  • yi โ€” an array holding the functional values of the input function. specifically: y(k) is the functional value at x(k) for k=0,n. so like, she's paired up with xi, they're a duo, a package deal ๐Ÿซถ
  • integral โ€” the moment you've all been waiting for ๐Ÿ‘‘ the integral of the function from xl to xr is given by *integral. pointer girlies rise.

๐Ÿ”ฅ RETURN VALUE ๐Ÿ”ฅ

c_ftcurvi returns an error value, and here's the full rundown, no skipping:

  • = 0 โ€” no error. slay, everything's fine, go off โœจ
  • = 1 โ€” if n is less than 2. she said TWO POINTS MINIMUM. ๐Ÿ’€
  • = 2 โ€” if X values are not strictly increasing. they gotta be going up, bestie, no chaos allowed ๐Ÿ“ˆ

๐Ÿ’œ USAGE ๐Ÿ’œ

c_ftcurvi is called after all of the desired values for control parameters have been set using the procedures c_ftseti, c_ftsetr, and c_ftsetc. so like, set up first, then call her. order matters, iykyk.

the control parameters that apply to c_ftcurvi are: sig, sl1, sln, and sf1. those four. remember them. ๐ŸŽ€


๐ŸŒˆ ACCESS ๐ŸŒˆ

to use c_ftcurvi, load the NCAR Graphics library ngmath. that's the one. that's the library. go get her ๐Ÿฆ‹


โญ SEE ALSO โญ

  • fitgrid_params
  • c_ftseti
  • c_ftsetr
  • c_ftsetc

complete documentation for Fitgrid is available at this URL, and yes you have to type it exactly:

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. so like, read it. fr fr.


and that's the whole page, bestie ๐Ÿฅฐ this was c_ftcurvi(3NCARG) from the NCAR GRAPHICS manual, running on UNIX, dated March 1998 โ€” a vintage queen honestly, she's been serving integrals since before you were born ๐Ÿ’–โœจ๐ŸŽ€๐Ÿฆ‹๐ŸŒธ๐Ÿ’…๐Ÿซถ