# HG changeset patch
# User Robert Bradshaw <robertwb@gmail.com>
# Date 1358831261 28800
# Node ID 220b5f7fb062187062cafd65242f09d1acdf66d5
# Parent 0f0f3a811b2eb23a3e82bcb4e7463044bfb164fa
Doctest fixes.
diff git a/sage/functions/other.py b/sage/functions/other.py
a

b


900  900  sage: gamma_inc(CDF(0,1), 3) 
901  901  0.00320857499337 + 0.0124061858119*I 
902  902  sage: gamma_inc(RDF(1), 3) 
903   0.0497870683678639 
 903  0.0497870683679 
904  904  sage: gamma_inc(3,2) 
905  905  gamma(3, 2) 
906  906  sage: gamma_inc(x,0) 
… 
… 

1793  1793  sage: arg(ComplexIntervalField(90)(3)).parent() 
1794  1794  Real Interval Field with 90 bits of precision 
1795  1795  sage: arg(3.0r) 
1796   0.000000000000000 
 1796  0.0 
1797  1797  sage: arg(RDF(3)) 
1798  1798  0.0 
1799  1799  sage: arg(RDF(3)).parent() 
diff git a/sage/functions/special.py b/sage/functions/special.py
a

b


1467  1467  sage: elliptic_e(z, 0) 
1468  1468  z 
1469  1469  sage: elliptic_e(0.5, 0.1) 
1470   0.498011394499 
 1470  0.498011394498832 
1471  1471  
1472  1472  sage: loads(dumps(elliptic_e)) 
1473  1473  elliptic_e 
… 
… 

1495  1495  EXAMPLES:: 
1496  1496  
1497  1497  sage: elliptic_ec(0.1) 
1498   1.5307576369 
 1498  1.53075763689776 
1499  1499  sage: elliptic_ec(x).diff() 
1500  1500  1/2*(elliptic_ec(x)  elliptic_kc(x))/x 
1501  1501  
… 
… 

1507  1507  EXAMPLES:: 
1508  1508  
1509  1509  sage: elliptic_ec(0.1) 
1510   1.5307576369 
 1510  1.53075763689776 
1511  1511  """ 
1512  1512  MaximaFunction.__init__(self, "elliptic_ec", nargs=1) 
1513  1513  
… 
… 

1540  1540  EXAMPLES:: 
1541  1541  
1542  1542  sage: elliptic_eu (0.5, 0.1) 
1543   0.496054551287 
 1543  0.496054551286597 
1544  1544  """ 
1545  1545  def __init__(self): 
1546  1546  r""" 
1547  1547  EXAMPLES:: 
1548  1548  
1549  1549  sage: elliptic_eu (0.5, 0.1) 
1550   0.496054551287 
 1550  0.496054551286597 
1551  1551  """ 
1552  1552  MaximaFunction.__init__(self, "elliptic_eu") 
1553  1553  
… 
… 

1573  1573  sage: elliptic_f (z, 1) 
1574  1574  log(tan(1/4*pi + 1/2*z)) 
1575  1575  sage: elliptic_f (0.2, 0.1) 
1576   0.200132506748 
 1576  0.200132506747543 
1577  1577  """ 
1578  1578  def __init__(self): 
1579  1579  r""" 
1580  1580  EXAMPLES:: 
1581  1581  
1582  1582  sage: elliptic_f (0.2, 0.1) 
1583   0.200132506748 
 1583  0.200132506747543 
1584  1584  """ 
1585  1585  MaximaFunction.__init__(self, "elliptic_f") 
1586  1586  
… 
… 

1598  1598  EXAMPLES:: 
1599  1599  
1600  1600  sage: elliptic_kc(0.5) 
1601   1.8540746773 
 1601  1.85407467730137 
1602  1602  sage: elliptic_f(RR(pi/2), 0.5) 
1603   1.8540746773 
 1603  1.85407467730137 
1604  1604  """ 
1605  1605  def __init__(self): 
1606  1606  r""" 
1607  1607  EXAMPLES:: 
1608  1608  
1609  1609  sage: elliptic_kc(0.5) 
1610   1.8540746773 
 1610  1.85407467730137 
1611  1611  sage: elliptic_f(RR(pi/2), 0.5) 
1612   1.8540746773 
 1612  1.85407467730137 
1613  1613  """ 
1614  1614  MaximaFunction.__init__(self, "elliptic_kc", nargs=1) 
1615  1615  
… 
… 

1642  1642  (using GSL):: 
1643  1643  
1644  1644  sage: elliptic_pi(0.1, 0.2, 0.3) 
1645   0.200665068221 
 1645  0.200665068220979 
1646  1646  sage: numerical_integral(1/(10.1*sin(x)^2)/sqrt(10.3*sin(x)^2), 0.0, 0.2) 
1647  1647  (0.2006650682209791, 2.227829789769088e15) 
1648  1648  
… 
… 

1663  1663  EXAMPLES:: 
1664  1664  
1665  1665  sage: elliptic_pi(0.1, 0.2, 0.3) 
1666   0.200665068221 
 1666  0.200665068220979 
1667  1667  """ 
1668  1668  MaximaFunction.__init__(self, "elliptic_pi", nargs=3) 
1669  1669  