pymiediff.special.f_der

Contents

pymiediff.special.f_der#

pymiediff.special.f_der(n: Tensor, z: Tensor, f_n: Tensor, **kwargs)#

eval. derivatives of a spherical Bessel function (any unmodified)

first axis of z and f_n must be Mie order!

n is giving maximum order as integer, first dimension of f_n must also contain the order. z does not carry orders (all orders are evaluated at same z, therefore dim of z is 1 less than dim of f_n)

d/dz f_0 = -f_n+1 + (n/z) f_n, for n=0 d/dz f_n = f_n-1 - (n+1)/z f_n, for n>0

f_n: torch.Tensor of at least n=2

Parameters:
  • n (torch.Tensor or int) – integer order(s)

  • z (torch.Tensor) – complex (or real) arguments to evalute

  • f_n (torch.Tensor) – Tensor containing f_n(z) for all z, where f_n is any unmodified spherical Bessel function (same shape as z).

  • kwargs – other kwargs are ignored

Returns:

tensor of same shape as f_n

Return type:

torch.Tensor