@spiceErrorCheck<EOL>def chbder(cp, degp, x2s, x, nderiv):
cp = stypes.toDoubleVector(cp)<EOL>degp = ctypes.c_int(degp)<EOL>x2s = stypes.toDoubleVector(x2s)<EOL>x = ctypes.c_double(x)<EOL>partdp = stypes.emptyDoubleVector(<NUM_LIT:3>*(nderiv+<NUM_LIT:1>))<EOL>dpdxs = stypes.emptyDoubleVector(nderiv+<NUM_LIT:1>)<EOL>nderiv = ctypes.c_int(nderiv)<EOL>libspice.chbder_c(cp, degp, x2s, x, nderiv, partdp, dpdxs)<EOL>return stypes.cVectorToPython(dpdxs)<EOL>
Given the coefficients for the Chebyshev expansion of a
polynomial, this returns the value of the polynomial and its
first nderiv derivatives evaluated at the input X.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chbder_c.html

:param cp: degp+1 Chebyshev polynomial coefficients.
:type cp: Array of floats
:param degp: Degree of polynomial.
:type degp: int
:param x2s: Transformation parameters of polynomial.
:type x2s: Array of floats
:param x: Value for which the polynomial is to be evaluated
:type x: float
:param nderiv: The number of derivatives to compute
:type nderiv: int
:return: Array of the derivatives of the polynomial
:rtype: Array of floats