CURVD(3NCARG)

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

✨ 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 at X(K) for K=1,N. iconic indexing behavior, we love a clean mapping πŸ’–
  • YP β€” (real, input) contains values for the second derivative (as calculated by CURV1). so like, CURV1 did 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 🌟

  • curv1
  • fitgrid_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 (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: call CURV1 first. CURVD does not do that part for you and it will simply not have the YP values 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