@np.deprecate(message='scipy.special.sph_in is deprecated in scipy 0.18.0. Use scipy.special.spherical_in instead. Note that the new function has a different signature.')
def sph_in(n, z):
 if (not (isscalar(n) and isscalar(z))):
  raise ValueError('arguments must be scalars.')
 if ((n != floor(n)) or (n < 0)):
  raise ValueError('n must be a non-negative integer.')
 if (n < 1):
  n1 = 1
 else:
  n1 = n
 if iscomplex(z):
  (nm, In, Inp, kn, knp) = specfun.csphik(n1, z)
 else:
  (nm, In, Inp) = specfun.sphi(n1, z)
 return (In[:(n + 1)], Inp[:(n + 1)])

@ np . deprecate ( message = 'scipy.special.sph_in is deprecated in scipy 0.18.0. Use scipy.special.spherical_in instead. Note that the new function has a different signature.' ) def sph_in ( n , z ) : if ( not ( isscalar ( n ) and isscalar ( z ) ) ) : raise ValueError ( 'arguments must be scalars.' ) if ( ( n != floor ( n ) ) or ( n < 0 ) ) : raise ValueError ( 'n must be a non-negative integer.' ) if ( n < 1 ) : n1 = 1 else : n1 = n if iscomplex ( z ) : ( nm , In , Inp , kn , knp ) = specfun . csphik ( n1 , z ) else : ( nm , In , Inp ) = specfun . sphi ( n1 , z ) return ( In [ : ( n + 1 ) ] , Inp [ : ( n + 1 ) ] )
compute spherical bessel function in(z) and derivative .