#14318: More doctests from the book "Calcul mathématique avec Sage" chapter
"integration"
-------------------------------------------------+-------------------------
Reporter: lfousse | Owner: mvngu
Type: enhancement | Status:
Priority: minor | needs_work
Component: doctest coverage | Milestone: sage-5.12
Keywords: | Resolution:
Authors: Laurent Fousse, Paul | Merged in:
Zimmermann | Reviewers: Frédéric
Report Upstream: N/A | Chapoton
Branch: | Work issues:
Dependencies: | Commit:
| Stopgaps:
-------------------------------------------------+-------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
Comment:
Some of these examples yield slightly different results on 32-bit systems:
{{{
sage -t --long devel/sage/sage/tests/french_book/integration_doctest.py
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 30,
in sage.tests.french_book.integration_doctest
Failed example:
N(integrate(exp(-x^2)*log(x), x, 17, 42))
Expected:
2.5657285006962035e-127
Got:
2.565728500696221e-127
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 42,
in sage.tests.french_book.integration_doctest
Failed example:
numerical_integral(exp(-x^2)*log(x), 17, 42)
Expected:
(2.5657285006962035e-127, 3.3540254049238093e-128)
Got:
(2.565728500696221e-127, 3.3540254049023843e-128)
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 49,
in sage.tests.french_book.integration_doctest
Failed example:
numerical_integral(exp(-x^100), 0, 1.1, algorithm='qng')
Expected:
(0.994327538576531..., 0.016840666914688864)
Got:
(0.9943275385765319, 0.016840666914705607)
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 59,
in sage.tests.french_book.integration_doctest
Failed example:
N(integrate(exp(-x^2)*log(x), x, 17, 42), 200)
Expected:
2.5657285006962035e-127
Got:
2.565728500696221e-127
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 80,
in sage.tests.french_book.integration_doctest
Failed example:
gp('intnum(x=17, 42, exp(-x^2)*log(x))')
Expected:
2.5657285005610514829173563961304785900 E-127
Got:
2.565728500561051482917356396 E-127
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 85,
in sage.tests.french_book.integration_doctest
Failed example:
gp('intnum(x=0, 1, sin(sin(x)))')
Expected:
0.43060610312069060491237735524846578643
Got:
0.4306061031206906049123773553
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 94,
in sage.tests.french_book.integration_doctest
Failed example:
gp('intnum(x=0, 1, x^(-1/2))')
Expected:
1.999999999999999999999999999998...
Got:
1.999999999999999999990291881
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 99,
in sage.tests.french_book.integration_doctest
Failed example:
gp('intnum(x=[0, -1/2], 1, x^(-1/2))')
Expected:
2.00000000000000000000000000000...
Got:
2.000000000000000000000000000
**********************************************************************
File "devel/sage/sage/tests/french_book/integration_doctest.py", line 104,
in sage.tests.french_book.integration_doctest
Failed example:
gp('intnum(x=[0, -1/42], 1, x^(-1/2))')
Expected:
1.9999999999999999999999999999996...
Got:
1.999999999999999999996899473
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14318#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.