fibermodes.functions

Miscellaneous mathematical functions.

fibermodes.functions.derivative(f, x, k, m, j, h, *args)[source]

Numerical differentiation

Parameters:
  • f (function) – function
  • x (float) – parameter
  • k (int) – differentiation order (1 to 5)
  • m (int) – number of points (3 to 6)
  • j (int) – central point (0 to m-1)
  • h (float) – distance between points
  • *args – other function arguments