# Ticket #9808: trac_9808_numpy_doctest_change.patch

File trac_9808_numpy_doctest_change.patch, 2.7 KB (added by maldun, 11 years ago)

Changed doctests for numpy-1.5.0 due to output changes in numpy

• ## doc/en/faq/faq-usage.rst

```# HG changeset patch
# User maldun <domors@gmx.net>
# Date 1286737128 -7200
# Node ID 87f1a6dec250e1fe191a97843b6a428dcca43bf3
# Parent  7ae7b5175304fea5b08c9ee313c372a3936baa1e
Trac 9808: Cahnged doctests due output changes in numpy.
Inf changed to inf. Some deprication warnings were removed,

diff -r 7ae7b5175304 -r 87f1a6dec250 doc/en/faq/faq-usage.rst```
 a sage: RealNumber = float; Integer = int sage: from scipy import stats sage: stats.ttest_ind(list([1,2,3,4,5]),list([2,3,4,5,.6])) doctest...DeprecationWarning... (0.076752955645333687, 0.94070490247380478) sage: stats.uniform(0,15).ppf([0.5,0.7]) array([  7.5,  10.5])
• ## sage/functions/hyperbolic.py

`diff -r 7ae7b5175304 -r 87f1a6dec250 sage/functions/hyperbolic.py`
 a sage: import numpy sage: a = numpy.linspace(0,1,3) sage: arcsech(a) array([       Inf,  1.3169579,  0.       ]) array([       inf,  1.3169579,  0.       ]) """ return arccosh(1.0 / x) sage: import numpy sage: a = numpy.linspace(0,1,3) sage: arccsch(a) array([        Inf,  1.44363548,  0.88137359]) array([        inf,  1.44363548,  0.88137359]) """ return arcsinh(1.0 / x)
• ## sage/matrix/matrix_double_dense.pyx

`diff -r 7ae7b5175304 -r 87f1a6dec250 sage/matrix/matrix_double_dense.pyx`
 a [51.9689561987  74.736564567] [112.104846851 164.073803049] sage: A.exp(method='eig') doctest:94: ComplexWarning: Casting complex values to real discards the imaginary part [51.9689561987  74.736564567] [112.104846851 164.073803049] sage: A.exp(order=2)
• ## sage/symbolic/function.pyx

`diff -r 7ae7b5175304 -r 87f1a6dec250 sage/symbolic/function.pyx`
 a sage: import numpy sage: a = numpy.arange(5) sage: csc(a) array([        Inf,  1.18839511,  1.09975017,  7.0861674 , -1.32134871]) array([        inf,  1.18839511,  1.09975017,  7.0861674 , -1.32134871]) sage: factorial(a) Traceback (most recent call last):