def lmbda(v, x):
 if (not (isscalar(v) and isscalar(x))):
  raise ValueError('arguments must be scalars.')
 if (v < 0):
  raise ValueError('argument must be > 0.')
 n = int(v)
 v0 = (v - n)
 if (n < 1):
  n1 = 1
 else:
  n1 = n
 v1 = (n1 + v0)
 if (v != floor(v)):
  (vm, vl, dl) = specfun.lamv(v1, x)
 else:
  (vm, vl, dl) = specfun.lamn(v1, x)
 return (vl[:(n + 1)], dl[:(n + 1)])

def lmbda ( v , x ) : if ( not ( isscalar ( v ) and isscalar ( x ) ) ) : raise ValueError ( 'arguments must be scalars.' ) if ( v < 0 ) : raise ValueError ( 'argument must be > 0.' ) n = int ( v ) v0 = ( v - n ) if ( n < 1 ) : n1 = 1 else : n1 = n v1 = ( n1 + v0 ) if ( v != floor ( v ) ) : ( vm , vl , dl ) = specfun . lamv ( v1 , x ) else : ( vm , vl , dl ) = specfun . lamn ( v1 , x ) return ( vl [ : ( n + 1 ) ] , dl [ : ( n + 1 ) ] )
jahnke-emden lambda function .