c_ftkurvd(3NCARG)
π c_ftkurvd β the NCAR Graphics girlies' guide π
okay so bestie, welcome to the NCAR Graphics manual page for c_ftkurvd, and no cap, this one is a whole vibe. she calculates interpolated values and derivatives for parametric curves. like, she does the math and she does the slopes. main character energy fr fr. πβ¨
β¨ NAME β¨
c_ftkurvd β calculate interpolated values and derivatives for parametric curves π
π¦ FUNCTION PROTOTYPE π¦
int c_ftkurvd (int, float [], float [], int, float [],
float [], float [], float [], float [],
float [], float []);
πΈ SYNOPSIS πΈ
int c_ftkurvd (n, xi, yi, m, t, xo, yo, xd, yd, xdd, ydd);
π DESCRIPTION π
okay so here's the whole cast of characters, one by one, no skipping, periodt:
nβ the number of input data points. heads up:n > 1, she needs at least two, bestie, you can't curve with one point πxiβ an array containing the abscissae for the input function.yiβ an array containing the functional values (y[k]is the functional value atx[k]fork=0,n).mβ the number of desired interpolated points.tβ contains an array of values for the parameter mapping onto the interpolated curve.xoβ an array containing the X values for the interpolated points.t[k]maps to(xo[k],yo[k])fork=0,n-1.yoβ an array containing the Y values for the interpolated points.xdβ contains the first derivatives of the X component with respect tot.ydβ contains the first derivatives of the Y component with respect tot.xddβ contains the second derivatives of the X component with respect tot.yddβ contains the second derivatives of the Y component with respect tot.
π₯ RETURN VALUE π₯
c_ftkurvd hands back an error value, as per:
= 0β no error. slay, she ate π= 1β ifnis less than 2.= 2β if adjacent coordinate pairs coincide.
π USAGE π
This procedure behaves like ftkurv except that in addition it returns the first and second derivatives of the component functions in the parameterization. so like, ftkurv but with β¨extraβ¨
Given a sequence of input points ( (x[0],y[0]), ... , (x[n-1],y[n-1]), the interpolated curve is parameterized by mapping points in the interval [0.,1.] onto the interpolated curve. The resulting curve has a parametric representation both of whose components are splines under tension and functions of the polygonal arc length. The value 0. is mapped onto (x[0],y[0]) and the value 1. is mapped onto (x[n-1],y[n-1]).
c_ftkurvd is called after all of the desired values for control parameters have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc. Control parameters that apply to c_ftkurvd are: sig, sl1, sln, sf1. iykyk π«Ά
The value for the parameter sig specifies the tension factor. Values near zero result in a cubic spline; large values (e.g. 50) result in nearly a polygonal line. A typical value is 1. (the default).
The value for parameter sl1 is in radians and contains the slope at (x[0],y[0]). The angle is measured counter-clockwise from the X axis and the positive sense of the curve is assumed to be that moving from point 0 to point n-1. A value for sl1 may be omitted as indicated by the switch sf1.
The value for parameter sln is in radians and contains the slope at (x[n-1],y[n-1]). The angle is measured counter-clockwise from the X axis and the positive sense of the curve is assumed to be that moving from point 0 to point n-1. A value for sln may be omitted as indicated by the switch sf1.
The value of sf1 controls whether to use the values for sl1 and sln, or compute those values internally. Specifically, sf1
= 0ifsl1andslnare user-specified.= 1ifsl1is user-specified, butslnis internally calculated.= 2ifslnis user-specified, butsl1is internally calculated.= 3ifsl1andslnare internally calculated.
π§ ACCESS π§
To use c_ftkurvd, load the NCAR Graphics library ngmath. that's the one, bestie π
π 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 π
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!! π this gorgeous thing came from the NCAR GRAPHICS collection, and this particular page is the March 1998 edition, living under the plain old UNIX manual-name vibe. go forth and interpolate, you absolute icon πβ¨π
π¦ 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