#18888: failing optional mathematica tests, due to bugs in N() and n()
-------------------------------------+-------------------------------------
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: fix `N()` and `n()`
Report Upstream: N/A | Commit:
Branch: public/18888 | 7f9f0e0a79f3b35e4f78abe10efbbc3977b6964f
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by dimpase):
* status: needs_work => needs_review
Comment:
Replying to [comment:31 vbraun]:
> I don't understand, the `.N()` method should just be whatever it is by
default. I.e. call mathematica and wrap whatever the output of N() is.
The thing is that
{{{
self.parent().N(self, *args)
}}}
doe not work properly, as data is kept in `InputFormat` on Mathematica
side, e.g. 1.111111111111 with
precision 5 is not kept the way one expects, 1.1111, but as
1.111111111111<backtick>5. And that <backtick> gets stripped off by
`get()`, getting the precision info lost in the process.
So I ended up calling `self.parent().eval()` directly, took me the whole
morning to figure out the right way. Anyhow, ready for review now!
--
Ticket URL: <http://trac.sagemath.org/ticket/18888#comment:33>
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.