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 β€” so y(k) is the functional value at x(k) for k=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 at xo(k) for k=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 β€” if n is 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_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.


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. πŸ’…βœ¨