c_ftcurv(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ c_ftcurv β€” 1D interpolation for non-periodic functions ✨

okay bestie, welcome to c_ftcurv from the NCAR GRAPHICS manual, section 3NCARG πŸ’– this is the girl who takes your scattered little data points and goes "say no more" and draws a smooth curve through them. non-periodic only, she has boundaries πŸ’…


🌸 FUNCTION PROTOTYPE 🌸

int c_ftcurv (int, float [], float [], int, float [], float []);

like, that's the whole aura right there 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int c_ftcurv (n, xi, yi, m, xo, yo);

six args, one job, zero drama ✨


πŸ’œ DESCRIPTION πŸ’œ

  • n β€” the number of input data points you're feeding her. heads up: n > 1, she needs at least a lil something to work with, one singular point is not a curve bestie 😭
  • xi β€” an array holding the abscissae for the input function. that's the x's, the horizontal situation πŸ“
  • 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. that's your y's, the vertical vibe check 🌈
  • m β€” the number of interpolated values you want back. how many points do you desire, queen πŸ‘‘
  • xo β€” an array holding the abscissae for the interpolated values. the x's of the new points she's about to manifest ✨
  • yo β€” an array holding the interpolated functional values β€” yo(k) is the functional value at xo(k) for k=0,n. the y's of the freshly invented points, and honestly? iconic 🌟

πŸ¦‹ RETURN VALUE πŸ¦‹

c_ftcurv hands you back an error value, as per:

  • = 0 β€” no error. we love a clean run, no cap πŸ’–
  • = 1 β€” if n is less than 2. she said give me more than one point or give me nothing πŸ™ˆ
  • = 2 β€” if X values are not strictly increasing. the x's have to go up, up, up, strictly, no ties, no backtracking, no chaos ⬆️

πŸ”₯ USAGE πŸ”₯

so here's the order of operations, bestie: you call c_ftcurv after you've already set all the control parameter values you wanted, using the procedures c_ftseti, c_ftsetr, and c_ftsetc. set the vibes first, then interpolate. periodt πŸ’…

the control parameters that apply to c_ftcurv are: sig, sl1, sln, sf1. those four, that's the squad πŸ‘‘


🌈 ACCESS 🌈

to use c_ftcurv, you gotta load the NCAR Graphics library ngmath. that's the ticket in, no workaround 🎟️


πŸ‘‘ SEE ALSO πŸ‘‘

  • fitgrid_params
  • c_ftseti
  • c_ftsetr
  • c_ftsetc

also, full documentation for Fitgrid is living at this URL, go read her:

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, no crumbs left, fr fr 🌸

okay so this was the UNIX flavor of the c_ftcurv(3NCARG) page, dated March 1998, and it's genuinely giving retro-baddie energy. ty for reading my little unix rant, mwah πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from