#4325: CC() fails on Mathematica output
-------------------------+--------------------------------------------------
Reporter: ddrake | Owner: was
Type: defect | Status: closed
Priority: major | Milestone: sage-4.0
Component: interfaces | Resolution: fixed
Keywords: mathematica |
-------------------------+--------------------------------------------------
Changes (by ddrake):
* status: new => closed
* resolution: => fixed
Comment:
With #4330 being fixed I'm closing this ticket as fixed. The suggestion
given above ([comment:3 was]) works now with 3.4.1.rc4:
{{{
sage: a = mathematica('N[BesselK[1+I, 2+ 3*I], 30]')
sage: CC((a.Re(), a.Im()))
-0.105203133241753 + 0.0175890146151899*I
}}}
You lose a bit of precision, there, so you can use RealField and so on:
{{{
sage: a.Re()
-0.10520313324175345125609254499068
sage: RealField(100)(a.Re())
-0.10520313324175345125609254499
sage: RealField(110)(a.Re())
-0.10520313324175345125609254499070
}}}
Since this works now, and my original usage of {{{mathematica.eval}}}
isn't supposed to work, I say this is fixed.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4325#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---