#8495: Regression: Many mathematica doctests now fail
------------------------------+---------------------------------------------
   Reporter:  flawrence       |       Owner:  flawrence   
       Type:  defect          |      Status:  needs_review
   Priority:  major           |   Milestone:  sage-4.5.2  
  Component:  interfaces      |    Keywords:              
     Author:  Felix Lawrence  |    Upstream:  N/A         
   Reviewer:  Mike Hansen     |      Merged:              
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by whuss):

 Replying to [comment:2 flawrence]:
 > I've uploaded a patch that has a thorough rewrite of
 MathematicaElement._sage_() to get the functionality from #3587 while
 keeping the functionality from before it (lists, complex numbers, numbers
 in scientific notation...).  I still need to write some documentation for
 the top of the file (i.e. documentation that makes it into the reference
 manual) but before I do that and submit this for formal review I'd like
 wise comments about my approach, e.g. "The way you convert function names
 is really inefficient and problematic, do it this way...", or "You can
 efficiently get a list of all sage functions recognised by sage_eval() by
 ...".
 >
 > Also if someone could check the doctests on a 32-bit computer and let me
 know the result that they get instead of
 > [[1.00000000000000, 4], pi, 3.20000000000000*e100, I]
 > that would be grand.

 On 32-bit Debian I get the same output. There is only one doctest failure:

 {{{
 ./sage -t  -only-optional=mathematica
 "devel/sage/sage/interfaces/mathematica.py"
 sage -t -only-optional=mathematica
 "devel/sage/sage/interfaces/mathematica.py"
 **********************************************************************
 File "./sage-4.4.4/devel/sage/sage/interfaces/mathematica.py", line 281:
     sage: math_bessel_K(2,I)                      # optional - mathematica
 Expected:
     0.180489972066962*I - 2.592886175491197
 Got:
     -2.59288617549119697816765132253822887 +
 0.180489972066962026629620880838378650*I
 **********************************************************************

 }}}

 But this is probably unrelated to this patch, since also without this
 patch applied I get
 things like:

 {{{
 sage: mathematica('N[Pi, 1]')
 3.1415926535897932385
 sage: mathematica('N[Pi, 10]')
 3.1415926535897932385
 sage: mathematica('N[Pi, 11]')
 3.1415926535897932384626433836
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8495#comment:6>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to