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 atx(k)fork=0,n. so like, she's paired up withxi, they're a duo, a package deal ๐ซถintegralโ the moment you've all been waiting for ๐ the integral of the function fromxltoxris 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โ ifnis 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_paramsc_ftsetic_ftsetrc_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 ๐
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 ๐โจ๐๐ฆ๐ธ๐ ๐ซถ
๐ฆ 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