mstk.analyzer.fitting.polyval_derivative

mstk.analyzer.fitting.polyval_derivative(x, coeff)

Evaluate the n-th order polynomial result and derivative: y = c0 + c1 * x + c2 * x**2 + … + cn * x**n; dy/dx = c1 + 2*c2 * x + … + n*cn * x**(n-1)

Parameters:
  • x (float) –

  • coeff (list of float) –

Returns:

  • y (float)

  • dy/dx (float)