#18888: failing optional mathematica tests, due to bugs in N() and n()
-------------------------------------+-------------------------------------
Reporter: slabbe | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-7.1
Component: interfaces: | Resolution:
optional | Merged in:
Keywords: mathematica | Reviewers:
Authors: | Work issues: fix `N()`
Report Upstream: N/A | Commit:
Branch: public/18888 | 4fd09adee1cffa4fb7922862d20d2587f7837362
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by dimpase):
* status: needs_review => needs_work
* work_issues: => fix `N()`
Old description:
> With
>
> {{{
> $ sage --version
> SageMath Version 6.8.beta8, Release Date: 2015-07-10
> $ mathematica --version
> 10.0
> }}}
>
> The command
>
> {{{
> sage -t --warn-long 2.3 --optional=sage,mathematica
> src/sage/symbolic/expression.pyx src/sage/tests/benchmark.py
> src/sage/misc/functional.py src/sage/symbolic/constants.py
> src/sage/calculus/calculus.py src/sage/interfaces/mathematica.py
> src/sage/symbolic/integration/integral.py
> src/sage/symbolic/constants_c.pyx src/sage/matrix/matrix1.pyx
> src/sage/modules/free_module_element.pyx
> }}}
>
> gives:
>
> {{{
> # sage -t --warn-long 2.3 src/sage/symbolic/expression.pyx # 1 doctest
> failed
> # sage -t --warn-long 2.3 src/sage/symbolic/constants.py # 3 doctests
> failed
> # sage -t --warn-long 2.3 src/sage/interfaces/mathematica.py # 30
> doctests failed
> # sage -t --warn-long 2.3 src/sage/symbolic/constants_c.pyx # 1 doctest
> failed
> # sage -t --warn-long 2.3 src/sage/matrix/matrix1.pyx # 2 doctests
> failed
> # sage -t --warn-long 2.3 src/sage/modules/free_module_element.pyx # 1
> doctest failed
> }}}
>
> Full log is attached. Previous similar tickets are : #16703, #13011.
New description:
With
{{{
$ sage --version
SageMath Version 6.8.beta8, Release Date: 2015-07-10
$ mathematica --version
10.0
}}}
The command
{{{
sage -t --warn-long 2.3 --optional=sage,mathematica
src/sage/symbolic/expression.pyx src/sage/tests/benchmark.py
src/sage/misc/functional.py src/sage/symbolic/constants.py
src/sage/calculus/calculus.py src/sage/interfaces/mathematica.py
src/sage/symbolic/integration/integral.py
src/sage/symbolic/constants_c.pyx src/sage/matrix/matrix1.pyx
src/sage/modules/free_module_element.pyx
}}}
gives:
{{{
# sage -t --warn-long 2.3 src/sage/symbolic/expression.pyx # 1 doctest
failed
# sage -t --warn-long 2.3 src/sage/symbolic/constants.py # 3 doctests
failed
# sage -t --warn-long 2.3 src/sage/interfaces/mathematica.py # 30
doctests failed
# sage -t --warn-long 2.3 src/sage/symbolic/constants_c.pyx # 1 doctest
failed
# sage -t --warn-long 2.3 src/sage/matrix/matrix1.pyx # 2 doctests failed
# sage -t --warn-long 2.3 src/sage/modules/free_module_element.pyx # 1
doctest failed
}}}
Full log is attached. Previous similar tickets are : #16703, #13011.
One reason is a bug in implementation of `N()`, which is caused by always
stripping precision tick away in `get()`, setting `NumberMarks->False`.
(Or at least it has become a bug - this line of code dates back to 2006).
--
--
Ticket URL: <http://trac.sagemath.org/ticket/18888#comment:21>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.