DIFF2.1D.PCHIP Function
DIFF2.1D.PCHIP
Second derivative using Monotone Cubic Spline (Pchip). A special case of cubic spline that preserves monotonicity of the data.
Syntax
=DIFF2.1D.PCHIP(dataX, dataY, queryPoints, extrapolate)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| dataX | Double[] | Yes | Known x values. |
| dataY | Double[] | Yes | Known y values. |
| queryPoints | Object | Yes | Points to differentiate at. |
| extrapolate | Boolean | No | Allow extrapolation (true/false). |
Returns
Calculated result based on input parameters
Examples
Error Conditions
| Error | Cause | Solution |
|---|
About Second Derivatives
The second derivative measures the rate of change of the rate of change - essentially the curvature or acceleration. This function uses PCHIP interpolation for computation.
Understanding Second Derivatives
The second derivative reveals:
- Curvature: How the slope itself is changing
- Acceleration: Rate of change of velocity
- Concavity: Whether curves bend up or down
- Inflection Points: Where curvature changes sign
Practical Applications
- Physics: Calculate acceleration from position
- Optimization: Find maxima and minima
- Structural Analysis: Analyze beam curvature
- Quality Control: Detect trend changes
See Also
- Method Comparison - Compare different methods
- Quick Start Guide - Get started with the add-in