#9913: n() returns symbolic expression
-------------------------+--------------------------------------------------
Reporter: zimmerma | Owner: burcin
Type: defect | Status: new
Priority: critical | Milestone: sage-4.6
Component: symbolics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
Changes (by burcin):
* owner: AlexGhitza => burcin
* component: basic arithmetic => symbolics
Comment:
I'm changing the component to `symbolics`, since this is probably a bug in
pynac.
Regarding the problem with the output Carl mentions in comment:2: This is
also present in GiNaC, but the printing is better:
{{{
ginsh - GiNaC Interactive Shell (ginac V1.5.7)
__, _______ Copyright (C) 1999-2010 Johannes Gutenberg University
Mainz,
(__) * | Germany. This is free software with ABSOLUTELY NO
WARRANTY.
._) i N a C | You are welcome to redistribute it under certain
conditions.
<-------------' For details type `warranty;'.
Type ?? for a list of help topics.
> a=(sqrt(4*(sqrt(3) - 5)*(sqrt(3) + 5) + 48) + 4*sqrt(3))/ (sqrt(3) + 5);
(sqrt(48+4*(5+sqrt(3))*(-5+sqrt(3)))+4*sqrt(3))*(5+sqrt(3))^(-1)
> imag_part(a);
(5+sqrt(3))^(-1)*sqrt(abs(48+4*(5+sqrt(3))*(-5+sqrt(3))))*sin(1/2*atan2(0,48+4*(-22)))
}}}
Note the term `4*(-22)` at the end of the last line.
We should open a new ticket for this and report it on the GiNaC list. I'm
not sure if this has anything to do with this ticket ATM. Numeric
evaluation seems to work fine in GiNaC:
{{{
> evalf(imag_part(a));
0.9394693387082032295
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9913#comment:3>
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.