c_ftcurvd(3NCARG)
β¨ c_ftcurvd β¨
okay bestie, welcome to the NCAR GRAPHICS corner of the universe π this is a page from the 3NCARG manual, and today we're talking about a lil function that does one thing and does it well: it calculates derivatives. that's it. that's the girl. π
π NAME π
c_ftcurvd β calculate derivatives π¦
πΈ FUNCTION PROTOTYPE πΈ
int c_ftcurvd (int, float [], float [], int, float [], float []);
β¨ SYNOPSIS β¨
int c_ftcurvd (n, xi, yi, m, xo, yo);
π«Ά DESCRIPTION π«Ά
okay so here's everybody in the cast, and yes every single one of them matters:
nβ the number of input data points. and listen,n > 1. that's non-negotiable. (n > 1)xiβ an array holding the abscissae for the input function.yiβ an array holding the functional values of the input function β soy(k)is the functional value atx(k)fork=0,n. iconic behavior honestly.mβ the number of desired derivatives. yes queen, tell her how many you want.xoβ an array holding the abscissae for the output values.yoβ an array holding the interpolated derivative values βyo(k)is the functional derivative atxo(k)fork=0,n. slay.
π₯ RETURN VALUE π₯
c_ftcurvd hands you back an error value, and it goes a lil something like this:
= 0β no error. we love a clean run π= 1β ifnis less than 2. too smol, sorry bestie π= 2β if X values are not strictly increasing. they gotta go up, no cap π
π USAGE π
so the way this works: c_ftcurvd is called after all of the desired values for control parameters have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc. order matters, don't skip steps π
the control parameters that apply to c_ftcurvd are: sig, sl1, sln, sf1.
π ACCESS π
to use c_ftcurvd, load the NCAR Graphics library ngmath. that's the vibe check, and it passed β
π¦ 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.
and that's the whole page, bestie π source and version: this is the UNIX manual, dated March 1998, and the page itself is c_ftcurvd(3NCARG). periodt. π
β¨
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms