Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expression not in canonical form #9947

Closed
zimmermann6 opened this issue Sep 19, 2010 · 12 comments
Closed

expression not in canonical form #9947

zimmermann6 opened this issue Sep 19, 2010 · 12 comments

Comments

@zimmermann6
Copy link

In some cases GiNaC leaves numeric objects in the terms of an add:

sage: a=(sqrt(4*(sqrt(3) - 5)*(sqrt(3) + 5) + 48) + 4*sqrt(3))/ (sqrt(3) + 5)
sage: a.imag()
sin(1/2*arctan2(0, -88* + 1))*sqrt(abs(4*(sqrt(3) - 5)*(sqrt(3) + 5) + 1))

See the output of the second argument of arctan2.

The term -88* is generated by the expair -22*4. This term should be moved to the overall coefficient.

See also #9913.

Depends on #11317

Upstream: Fixed upstream, in a later stable release.

Component: symbolics

Keywords: pynac

Author: Richard Kreckel, Burcin Erocal

Reviewer: Karl-Dieter Crisman

Merged: sage-4.7.1.alpha1

Issue created by migration from https://trac.sagemath.org/ticket/9947

@burcin
Copy link

burcin commented Sep 24, 2010

add doctest

@burcin
Copy link

burcin commented Sep 24, 2010

Author: Richard Kreckel, Burcin Erocal

@burcin

This comment has been minimized.

@burcin
Copy link

burcin commented Sep 24, 2010

Upstream: Fixed upstream, in a later stable release.

@burcin
Copy link

burcin commented Sep 24, 2010

Changed keywords from none to pynac

@burcin
Copy link

burcin commented Sep 24, 2010

comment:1

Attachment: trac_9947-add_eval.patch.gz

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.

@burcin burcin changed the title output bug in GiNaC expression not in canonical form Sep 24, 2010
@burcin
Copy link

burcin commented May 9, 2011

comment:2

New pynac package with the fix is at #11317.

@burcin
Copy link

burcin commented May 9, 2011

Dependencies: 11317

@kcrisman
Copy link
Member

kcrisman commented May 9, 2011

Reviewer: Karl-Dieter Crisman

@kcrisman
Copy link
Member

kcrisman commented May 9, 2011

comment:3

Looks ok. Same comment as at #9891.

For instance, one could then allow an spkg maintainer to review the upstream fix. But that's not exactly what we want.

@jdemeyer
Copy link

Changed dependencies from 11317 to #11317

@jdemeyer jdemeyer modified the milestones: sage-4.7, sage-4.7.1 May 10, 2011
@jdemeyer
Copy link

Merged: sage-4.7.1.alpha1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants