Calculate the rate of change of a Mapping output

This
function evaluates the rate of change of a specified output of the supplied Mapping
with respect to a specified input, at a specified input position.

The result is estimated by interpolating the function using a fourth order polynomial in the neighbourhood of the specified position. The size of the neighbourhood used is chosen to minimise the RMS residual per unit length between the interpolating polynomial and the supplied Mapping function. This method produces good accuracy but can involve evaluating the Mapping 100 or more times.

double astRate( AstMapping
$\ast $this,
double $\ast $at,
int ax1, int ax2 )

Pointer to the Mapping to be applied.

The address of an array holding the axis values at the position at which the rate of
change is to be evaluated. The number of elements in this array should equal the number
of inputs to the Mapping.

The index of the Mapping output for which the rate
of change is to be found (output numbering starts at 1 for the first output).

The index of the Mapping input which is to be varied in order to find the rate of
change (input numbering starts at 1 for the first input).

The rate of change of Mapping output

`"`

ax1`"`

with respect to input `"`

ax2`"`

,
evaluated at `"`

at`"`

, or AST__BAD if the value cannot be calculated. -
A value of AST__BAD will be returned if this function is invoked with the global error status set, or if it should fail for any reason.

Copyright (C) 2020 East Asian Observatory