#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()` and `n()`
Report Upstream: N/A | Commit:
Branch: public/18888 | 4fd09adee1cffa4fb7922862d20d2587f7837362
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by dimpase):
Replying to [comment:27 vbraun]:
> Well I don't have Mathematica, you'll have to look at
`sage.misc.functional.numerical_approx` yourself. Whats
`mathematica('Pi').prec()`?
it is a symbolic Mathematica expression `prec[Pi]`. It cannot be evaluated
to anything.
Evaluating `mathematica('Pi').n()`, on Mathematica side I see the
following:
{{{
In[1]:= sage0=Pi;
In[2]:= sage1=0;
In[3]:= sage2=gen[sage1];
In[4]:= sage1=prec[sage0];
In[5]:= sage3=1;
In[6]:= sage3=53;
In[7]:= sage1 < sage3
Out[7]= prec[Pi] < 53
In[8]:= sage1 > sage3
Out[8]= prec[Pi] > 53
In[9]:= sage1 == sage3
Out[9]= prec[Pi] == 53
In[10]:= sage1
Out[10]= prec[Pi]
}}}
(in comment 22 I posted the corresponding log for `.n(10)` (I made a typo,
wrote that it is `.n()`, now corrected there).
--
Ticket URL: <http://trac.sagemath.org/ticket/18888#comment:28>
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.