Changes between Initial Version and Version 1 of Ticket #9947


Ignore:
Timestamp:
09/24/10 11:10:54 (12 years ago)
Author:
burcin
Comment:

This was fixed in GiNaC by Richard Kreckel. Here is the relevant patch:

http://www.ginac.de/ginac.git?p=ginac.git;a=commitdiff;h=e08cda1854bdb82f6706ec269233577690ae00e4

I applied the patch to pynac, so this will be fixed in the next release.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9947

    • Property Status changed from new to needs_work
    • Property Authors changed from to Richard Kreckel, Burcin Erocal
    • Property Component changed from calculus to symbolics
    • Property Summary changed from output bug in GiNaC to expression not in canonical form
    • Property Report Upstream changed from N/A to Fixed upstream, in a later stable release.
    • Property Keywords pynac added
  • Ticket #9947 – Description

    initial v1  
     1In some cases GiNaC leaves `numeric` objects in the terms of an `add`:
     2
    13{{{
     4sage: a=(sqrt(4*(sqrt(3) - 5)*(sqrt(3) + 5) + 48) + 4*sqrt(3))/ (sqrt(3) + 5)
    25sage: a.imag()
    36sin(1/2*arctan2(0, -88* + 1))*sqrt(abs(4*(sqrt(3) - 5)*(sqrt(3) + 5) + 1))
    47}}}
    58See the output of the second argument of {{{arctan2}}}.
     9
     10The term `-88*` is generated by the `expair` `-22*4`. This term should be moved to the overall coefficient.
     11
    612See also #9913.