slmsuite.holography.toolbox.phase.zernike_get_string#

zernike_get_string(index, derivative=(0, 0))[source]#

Returns a \(\LaTeX\) string corresponding to the cartesian representation of the Zernike polynomial of the given index. The monomials are sorted in reverse Cantor order.

Parameters:
  • index (int) – ANSI Zernike index.

  • derivative ((int, int)) – If non-negative, returns the Zernike derivative of the given order. For instance, (1, 0) corresponds to the first derivative in the \(x\) direction.