# 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
|
|
1002 | 1002 | \psi\left(x\right) |
1003 | 1003 | sage: loads(dumps(psi1(x)+1)) |
1004 | 1004 | psi(x) + 1 |
| 1005 | |
| 1006 | sage: t = psi1(x); t |
| 1007 | psi(x) |
| 1008 | sage: t.subs(x=.2) |
| 1009 | -5.28903989659219 |
1005 | 1010 | """ |
1006 | 1011 | GinacFunction.__init__(self, "psi", nargs=1, latex_name='\psi', |
1007 | 1012 | conversions=dict(maxima='psi[0]', mathematica='PolyGamma')) |