# HG changeset patch
# User Robert Bradshaw <robertwb@math.washington.edu>
# Date 1371105340 25200
# Node ID efa7620fff3268b0307e01d74b29f4d6f1f72574
# Parent 2be6dd722057f2be33332d0db2453dd6aefd6139
Fix new doctest, remove oldstyle doctest continuation.
diff git a/sage/functions/special.py b/sage/functions/special.py
a

b


1489  1489  EXAMPLES:: 
1490  1490  
1491  1491  sage: elliptic_e(0.5, 0.1) 
1492   0.498011394499 
 1492  0.498011394498832 
1493  1493  """ 
1494  1494  MaximaFunction.__init__(self, "elliptic_e") 
1495  1495  
diff git a/sage/symbolic/function.pyx b/sage/symbolic/function.pyx
a

b


762  762  
763  763  sage: from sage.symbolic.function import BuiltinFunction 
764  764  sage: class A: 
765   ... def foo(self): 
766   ... return 'foo' 
 765  ....: def foo(self): 
 766  ....: return 'foo' 
767  767  sage: foo = BuiltinFunction(name='foo') 
768  768  sage: foo(A()) 
769  769  'foo' 
… 
… 

830  830  
831  831  sage: from sage.symbolic.function import BuiltinFunction 
832  832  sage: class AFunction(BuiltinFunction): 
833   ... def __init__(self, name, exp=1): 
834   ... self.exponent=exp 
835   ... BuiltinFunction.__init__(self, name, nargs=1) 
836   ... def _eval_(self, arg): 
837   ... return arg**self.exponent 
838   ... 
 833  ....: def __init__(self, name, exp=1): 
 834  ....: self.exponent=exp 
 835  ....: BuiltinFunction.__init__(self, name, nargs=1) 
 836  ....: def _eval_(self, arg): 
 837  ....: return arg**self.exponent 
839  838  sage: p2 = AFunction('p2', 2) 
840  839  sage: p2(x) 
841  840  x^2 
… 
… 

914  913  
915  914  sage: from sage.symbolic.function import SymbolicFunction 
916  915  sage: class my_function(SymbolicFunction): 
917   ... def __init__(self): 
918   ... SymbolicFunction.__init__(self, 'foo', nargs=2) 
919   ... def _evalf_(self, x, y, parent=None): 
920   ... return x*y*2r 
921   ... def _conjugate_(self, x, y): 
922   ... return x 
 916  ....: def __init__(self): 
 917  ....: SymbolicFunction.__init__(self, 'foo', nargs=2) 
 918  ....: def _evalf_(self, x, y, parent=None): 
 919  ....: return x*y*2r 
 920  ....: def _conjugate_(self, x, y): 
 921  ....: return x 
923  922  sage: foo = my_function() 
924  923  sage: foo 
925  924  foo 