3.4.2.5. A_FMM.S_matrix.der

S_matrix.der(Sm, Sp, h=0.01)

Calculates the first and second derivative of the scattering matrix with respec to the parameter par.

Parameters:
  • Sm (S_matrix) – S matrix calculated at par=par0-h

  • Sp (S_matrix) – S matrix calculated at par=par0+h

  • h (float, optional) – Interval used to calculate the derivatives . Defaults to 0.01.

Returns:

tuple containing:

  • S1 (2darray): First derivative of the scattering matrix with respect to par.

  • S2 (2darray): Second derivative of the scattering matrix with respect to par.

Return type:

tuple