# 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,
others were added.
diff -r 7ae7b5175304 -r 87f1a6dec250 doc/en/faq/faq-usage.rst
a
|
b
|
|
339 | 339 | sage: RealNumber = float; Integer = int |
340 | 340 | sage: from scipy import stats |
341 | 341 | sage: stats.ttest_ind(list([1,2,3,4,5]),list([2,3,4,5,.6])) |
342 | | doctest...DeprecationWarning... |
343 | 342 | (0.076752955645333687, 0.94070490247380478) |
344 | 343 | sage: stats.uniform(0,15).ppf([0.5,0.7]) |
345 | 344 | array([ 7.5, 10.5]) |
diff -r 7ae7b5175304 -r 87f1a6dec250 sage/functions/hyperbolic.py
a
|
b
|
|
607 | 607 | sage: import numpy |
608 | 608 | sage: a = numpy.linspace(0,1,3) |
609 | 609 | sage: arcsech(a) |
610 | | array([ Inf, 1.3169579, 0. ]) |
| 610 | array([ inf, 1.3169579, 0. ]) |
611 | 611 | """ |
612 | 612 | return arccosh(1.0 / x) |
613 | 613 | |
… |
… |
|
656 | 656 | sage: import numpy |
657 | 657 | sage: a = numpy.linspace(0,1,3) |
658 | 658 | sage: arccsch(a) |
659 | | array([ Inf, 1.44363548, 0.88137359]) |
| 659 | array([ inf, 1.44363548, 0.88137359]) |
660 | 660 | """ |
661 | 661 | return arcsinh(1.0 / x) |
662 | 662 | |
diff -r 7ae7b5175304 -r 87f1a6dec250 sage/matrix/matrix_double_dense.pyx
a
|
b
|
|
1523 | 1523 | [51.9689561987 74.736564567] |
1524 | 1524 | [112.104846851 164.073803049] |
1525 | 1525 | sage: A.exp(method='eig') |
| 1526 | doctest:94: ComplexWarning: Casting complex values to real discards the imaginary part |
1526 | 1527 | [51.9689561987 74.736564567] |
1527 | 1528 | [112.104846851 164.073803049] |
1528 | 1529 | sage: A.exp(order=2) |
diff -r 7ae7b5175304 -r 87f1a6dec250 sage/symbolic/function.pyx
a
|
b
|
|
609 | 609 | sage: import numpy |
610 | 610 | sage: a = numpy.arange(5) |
611 | 611 | sage: csc(a) |
612 | | array([ Inf, 1.18839511, 1.09975017, 7.0861674 , -1.32134871]) |
| 612 | array([ inf, 1.18839511, 1.09975017, 7.0861674 , -1.32134871]) |
613 | 613 | |
614 | 614 | sage: factorial(a) |
615 | 615 | Traceback (most recent call last): |