-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
bug in simplify_radical #8497
Comments
comment:1
Note the original question posed to me was: how to multiply say 1/(1+sqrt(2)+sqrt(3)) by the |
comment:2
This is the full docstring from Maxima:
Perhaps we should include this |
comment:3
yes (unless of course upstream finds a way to get a real canonical form). |
comment:5
What is really going on here is that |
comment:6
then should we simply change the documentation, in saying that Paul |
comment:7
You are correct. I was just updating, though, at this point. It gets worse, because some expressions that are definitely not 1 will simplify to just 1, because that is the branch that was picked. See this ask.sagemath.org question, and Fateman's accurate response. |
comment:8
then I suggest to simply remove this function from Sage, unless there are ideas how to fix it. Paul |
comment:9
Well, in Fateman's eyes (and I would remind that he is an expert, if not THE expert, in this), the only bug is in users who treat these expressions as functions. At least, that's how I interpret it. So updating the documentation may be the better way. But this shouldn't be a duologue; hopefully some others will have ideas. Cc:ing a few others who have thought about at least one or two of these things, just in case they have thoughts at this time. Otherwise it will sit - I simply don't have time to deal with it right now, because it needs to be part of a general overhaul of simplification if we don't just change documentation. |
comment:10
I mean change documentation to give examples in prominent places, both in |
comment:11
I believe we should at least add such examples to the documentation, to warn the user that in some Paul |
comment:12
Okay. So whoever does this ticket will do that :) (Incidentally, mentioning that they are canonical, but in Fateman's sense of expressions, not in the way we would think of them as functions.) |
Attachment: trac_8497.patch.gz |
comment:13
the attached patch implements what I suggest in comment [comment:11]. Paul |
Author: Paul Zimmermann |
comment:14
Looks good to me. |
Reviewer: Burcin Erocal |
This comment has been minimized.
This comment has been minimized.
comment:15
Fixed some formatting of the documentation, needs review. |
Changed author from Paul Zimmermann to Paul Zimmermann, Jeroen Demeyer |
Fixed doc formatting, apply only this |
comment:17
Attachment: 8497_fix_doc.patch.gz I feel that we should at least ask on the Maxima list about whether this is truly "not canonical". My understanding is that Fateman would say it is canonical as an expression, not as a function. If I'm the only one who feels this way, I'll let it slide. But I figure we would want him to give us benefit of the doubt in our areas of expertise. |
comment:18
For me, a "canonical expression" means that two mathematically identical expressions simplify to Paul |
comment:19
Replying to @zimmermann6:
I agree but somebody needs to review my reformatting of the documentation. |
comment:20
I am not well versed in ReST, but AFAICT, Jeroen's changes make sense. Maxima documentation on
We can open an enhancement ticket to clarify what
|
comment:21
Okay, that's now #11912. |
Merged: sage-4.7.2.alpha4 |
the documentation of
simplify_radical
says:however if indeed it is able to recognize zero:
it does not return a canonical expression:
Apply only attachment: 8497_fix_doc.patch
CC: @kcrisman @burcin @jasongrout @mwhansen
Component: calculus
Keywords: simplify, radical, sqrt
Author: Paul Zimmermann, Jeroen Demeyer
Reviewer: Burcin Erocal
Merged: sage-4.7.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/8497
The text was updated successfully, but these errors were encountered: