def pbdn_seq(n, z):
 if (not (isscalar(n) and isscalar(z))):
  raise ValueError('arguments must be scalars.')
 if (floor(n) != n):
  raise ValueError('n must be an integer.')
 if (abs(n) <= 1):
  n1 = 1
 else:
  n1 = n
 (cpb, cpd) = specfun.cpbdn(n1, z)
 return (cpb[:(n1 + 1)], cpd[:(n1 + 1)])

def pbdn_seq ( n , z ) : if ( not ( isscalar ( n ) and isscalar ( z ) ) ) : raise ValueError ( 'arguments must be scalars.' ) if ( floor ( n ) != n ) : raise ValueError ( 'n must be an integer.' ) if ( abs ( n ) <= 1 ) : n1 = 1 else : n1 = n ( cpb , cpd ) = specfun . cpbdn ( n1 , z ) return ( cpb [ : ( n1 + 1 ) ] , cpd [ : ( n1 + 1 ) ] )
parabolic cylinder functions dn(z) and derivatives .