def euler(n):
 if ((not isscalar(n)) or (n < 0)):
  raise ValueError('n must be a non-negative integer.')
 n = int(n)
 if (n < 2):
  n1 = 2
 else:
  n1 = n
 return specfun.eulerb(n1)[:(n + 1)]

def euler ( n ) : if ( ( not isscalar ( n ) ) or ( n < 0 ) ) : raise ValueError ( 'n must be a non-negative integer.' ) n = int ( n ) if ( n < 2 ) : n1 = 2 else : n1 = n return specfun . eulerb ( n1 ) [ : ( n + 1 ) ]
euler numbers e0 .