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

solve ignores conjugate #18488

Open
rwst opened this issue May 24, 2015 · 5 comments
Open

solve ignores conjugate #18488

rwst opened this issue May 24, 2015 · 5 comments

Comments

@rwst
Copy link
Contributor

rwst commented May 24, 2015

Results of solving with solve can be wrong
due to conjugate being ignored.

This is due to a Maxima bug.

sage: eq_a = conjugate(z) == I + 1
sage: eq_a
conjugate(z) == (I + 1)
sage: sol_a = solve(eq_a, z, solution_dict=True)
sage: sol_a
[{z: I + 1}]

This is obviously wrong.

sage: [eq_a.subs(s) for s in sol_a]
[(-I + 1) == (I + 1)]

Note that SymPy does not return a wrong answer,
but does not solve either:

sage: sol_aa = solve(eq, z, solution_dict=True, algorithm='sympy')
sage: sol_aa
ConditionSet(z, Eq(conjugate(z) - 1 - I, 0), Complexes)

Maybe solve should work around the Maxima conjugate bug.

Initial report and discussion:

Reported again at #30570.

Related:

CC: @slel @zimmermann6

Component: symbolics

Keywords: solve, conjugate, maxima, wrong result

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

@rwst rwst added this to the sage-6.8 milestone May 24, 2015
@slel
Copy link
Member

slel commented Sep 14, 2020

Changed keywords from none to solve, conjugate, maxima, wrong result

@slel

This comment has been minimized.

@slel slel modified the milestones: sage-6.8, sage-9.2 Sep 14, 2020
@slel
Copy link
Member

slel commented Sep 14, 2020

comment:2

The "sage-support" discussion gives excerpts of posts
to the "maxima" mailing list.

A workaround discussed there consists in working with
real and imaginary parts and solving for those.

@slel

This comment has been minimized.

@mkoeppe mkoeppe modified the milestones: sage-9.2, sage-9.3 Oct 24, 2020
@mkoeppe
Copy link
Contributor

mkoeppe commented May 10, 2021

comment:4

Moving to 9.4, as 9.3 has been released.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 May 10, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Aug 22, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 18, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.6, sage-9.7 May 3, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.7, sage-9.8 Sep 19, 2022
@mkoeppe mkoeppe removed this from the sage-9.8 milestone Jan 29, 2023
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

3 participants