Ticket #12950: trac_12950-psi_evalf.patch

File trac_12950-psi_evalf.patch, 794 bytes (added by burcin, 8 years ago)
  • sage/functions/other.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1337093678 -7200
    # Node ID 5637fa8f6b36c2c33b786b2a70493db7dbddd557
    # Parent  7d14009cc1693eaeabeb27ca4e955a512fe8b8e6
    Add doctests to check Pynac evaluates psi1 numerically if input is not exact.
    
    diff --git a/sage/functions/other.py b/sage/functions/other.py
    a b  
    10021002            \psi\left(x\right)
    10031003            sage: loads(dumps(psi1(x)+1))
    10041004            psi(x) + 1
     1005
     1006            sage: t = psi1(x); t
     1007            psi(x)
     1008            sage: t.subs(x=.2)
     1009            -5.28903989659219
    10051010        """
    10061011        GinacFunction.__init__(self, "psi", nargs=1, latex_name='\psi',
    10071012                conversions=dict(maxima='psi[0]', mathematica='PolyGamma'))