def pbdv_seq(v, x):
 if (not (isscalar(v) and isscalar(x))):
  raise ValueError('arguments must be scalars.')
 n = int(v)
 v0 = (v - n)
 if (n < 1):
  n1 = 1
 else:
  n1 = n
 v1 = (n1 + v0)
 (dv, dp, pdf, pdd) = specfun.pbdv(v1, x)
 return (dv[:(n1 + 1)], dp[:(n1 + 1)])

def pbdv_seq ( v , x ) : if ( not ( isscalar ( v ) and isscalar ( x ) ) ) : raise ValueError ( 'arguments must be scalars.' ) n = int ( v ) v0 = ( v - n ) if ( n < 1 ) : n1 = 1 else : n1 = n v1 = ( n1 + v0 ) ( dv , dp , pdf , pdd ) = specfun . pbdv ( v1 , x ) return ( dv [ : ( n1 + 1 ) ] , dp [ : ( n1 + 1 ) ] )
parabolic cylinder functions dv(x) and derivatives .