CURVD(3NCARG)
β¨ CURVD β¨
okay bestie, welcome to the NCAR Graphics corner of the universe π this lil page is all about CURVD, a Fortran function that gives you derivatives for 1D functions. no cap, that's the whole vibe.
πΈ NAME πΈ
CURVD β derivatives for 1D functions. that's it, that's the girl π
π¦ SYNOPSIS π¦
FUNCTION CURVD (T, N, X, Y, YP, SIGMA)
so this function calculates a derivative at a specified point using a spline under tension. and listen β CURV1 must be called prior to calling CURVD, and the values thus obtained used as input to CURVD. the derivative value is what gets returned. periodt β¨
π DESCRIPTION π
here's the whole cast of characters, one by one, no skips:
Tβ (real, input) the abscissa for which an interpolated function value is desired. yes she wants the value, she's asking nicely π₯ΊNβ (integer, input) the number of input data values. heads up:(N > 1)β you need more than one, bestie, that's the rule πXβ (real, input) an array containing the abscissae for the input function.Yβ (real, input) an array containing the functional values of the input data βY(K)is the functional value atX(K)forK=1,N. iconic indexing behavior, we love a clean mapping πYPβ (real, input) contains values for the second derivative (as calculated byCURV1). so like,CURV1did the homework, you're just handing it in π«ΆSIGMAβ (real, input) tension factor. okay this one is important:- values near zero result in a cubic spline π
- large values (e.g.
50) result in nearly a polygonal line β she's stiff, she's angular, she's not curving for anyone - a typical value is
1
π RETURN VALUE π
CURVD returns the derivative value of the interpolated curve at the specified point T. that's the whole bag, that's the main character moment π₯
π ACCESS π
to use CURVD, load the NCAR Graphics library ngmath. link her in or she simply will not show up, fr fr π
π SEE ALSO π
curv1fitgrid_params
complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β go read, it's giving resourceful π§
π COPYRIGHT π
Copyright (C) 2000
University Corporation for Atmospheric Research
the use of this Software is governed by a License Agreement. read it, respect it, it's the law bestie β
tiny reminder from your girl: callCURV1first.CURVDdoes not do that part for you and it will simply not have theYPvalues it needs. that's not a vibe, that's a bug in your code π
and that's the whole page, babe!! this was the CURVD entry in the NCAR Graphics manual, from the UNIX crew, dated March 1998, and the title page read CURVD(3NCARG) β mwah, go compute some derivatives, you absolute legend π
πβ¨
π¦ 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