Changeset 7517:a77538da1d55


Ignore:
Timestamp:
11/14/07 23:45:41 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Message:

Fix tiny bug in calculus coercion to complex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/calculus/calculus.py

    r7516 r7517  
    43524352        f = self._operands[0] 
    43534353        g = self._operands[1] 
    4354         return complex(f._approx_(float(g))) 
     4354        return complex(f._approx_(complex(g))) 
    43554355 
    43564356    def _mpfr_(self, field): 
     
    45254525    The error function, defined as $\text{erf}(x) = 
    45264526    \frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2} dt$. 
     4527 
     4528    SAGE currently *only* implements the error function (via a call to 
     4529    PARI) when the input is real. 
    45274530    """ 
    45284531 
Note: See TracChangeset for help on using the changeset viewer.