#18888: failing optional mathematica tests
-------------------------------------+-------------------------------------
Reporter: slabbe | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.1
Component: interfaces: | Resolution:
optional | Merged in:
Keywords: mathematica | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: public/18888 | 4fd09adee1cffa4fb7922862d20d2587f7837362
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by dimpase):
OK, at least I understand the reason for `N()` to output seemingly random
length things.
Namely, the interface works with M-ca's `InputForm`; e.g. when
`mathematica('Pi').N(10)`
is computed, intermediate data is stored in `InputForm`, and it is on my
system
{{{
3.14159265358979323846264338327950419993`10.
}}}
Then `get()` is called, and it does (line 528 of `mathematica.py`)
{{{
return self.eval('InputForm[%s, NumberMarks->False]'%var, strip=True)
}}}
stripping `10` after the tick away! Oops...
One workaround would be to provide an implementation of `N()` avoiding
`get` all together.
--
Ticket URL: <http://trac.sagemath.org/ticket/18888#comment:20>
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.