# HG changeset patch
# User Stefan Reiterer <domors@gmx.net>
# Date 1386287563 3600
# Node ID 2419063308f41fb294d04b917d1d1184ed876526
# Parent c57955ea781aacef10b68fd62a630bcea5fb3986
Trac 9706: Some bugfixes and doctests added
diff git a/sage/functions/orthogonal_polys.py b/sage/functions/orthogonal_polys.py
a

b


316  316  #***************************************************************************** 
317  317  
318  318  from sage.misc.sage_eval import sage_eval 
319   from sage.rings.all import ZZ 
 319  from sage.rings.all import ZZ, RR 
320  320  from sage.calculus.calculus import maxima 
321  321  
322  322  
… 
… 

474  474  64*x^7  112*x^5 + 56*x^3  7*x 
475  475  sage: chebyshev_T(3/2,x) 
476  476  chebyshev_T(3/2, x) 
 477  sage: parent(chebyshev_T(4, RIF(5))) 
 478  Real Interval Field with 53 bits of precision 
477  479  """ 
478  480  if not is_Expression(args[0]): 
479  481  if not is_Expression(args[1]) and is_inexact(args[1]): 
480  482  try: 
481  483  import sage.libs.mpmath.all as mpmath 
482   return self._evalf_(*args) 
 484  step_parent = parent(args[1]) 
 485  return step_parent(self._evalf_(*args)) 
483  486  except AttributeError: 
484  487  pass 
485  488  except mpmath.NoConvergence: 
… 
… 

631  634  3363.00000000000 
632  635  sage: chebyshev_T(5,0.3).n() 
633  636  0.998880000000000 
 637  sage: chebyshev_T(1/2, 0) 
 638  0.707106781186548 
634  639  """ 
635  640  try: 
636  641  step_parent = kwds['parent'] 