-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Clarify simplify_radical and Maxima's radcan #11912
Comments
comment:1
We should probably solve this at the same time as #12737. |
This comment has been minimized.
This comment has been minimized.
Replying to @kcrisman:
Why would we use the Maxima name? It doesn't match any Sage convention. I suggest |
comment:4
There is |
comment:5
Actually, I take that back -- |
comment:6
Attachment: sage-trac_11912.patch.gz Here's the deprecation/rename, and a few changes to the docs. I haven't been able to come up with any good use cases for radcan(), but I'm not feeling very imaginative today. |
comment:7
Note: I haven't updated the function name anywhere, so a ton of tests fail. Just looking for some ideas for now. |
comment:8
Yeah, and we'll need a doctest for the deprecation as well. Let's think about this for a day or two, but resolve it by the end of SD 48. I think that looking at the simplifications that |
Changed keywords from none to sd48 |
comment:9
See this comment for both some good use cases and some potential new aliases... |
Branch: u/mjo/ticket/11912 |
comment:14
Rewrote the patch as a git branch, and added the deprecation tests. Also fixed the usage in the rest of the sage library. New commits:
|
Commit: |
Author: Michael Orlitzky |
comment:15
Probably see also #3520. |
comment:16
Any thoughts on |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
I just pushed another commit adding the example from #3520. I'm against adding
Both I can see the benefit for things like I agree that ideally this and #14630 should have some kind of dependency, but practically, they both may sit around waiting for review for a while. I'd rather not put up roadblocks to either one getting reviewed; when one of them gets in, I'll go update the other branch. |
comment:19
Hmm. So should this even be called |
comment:20
Also, I think you repeated some wording in the doc - maybe it's repeated in Maxima, but still that seems unnecessary here.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:22
Replying to @kcrisman:
Maybe you just have to think of the complex square root in terms of the complex exponential and logarithm, at which point it becomes OK for |
comment:23
In
You just removed it here rather than replacing it; intentional or not? It's still useful, could put a reference in. (For that matter, we also now have several other # Add elementwise methods.
for method in ['simplify', 'simplify_exp', 'simplify_factorial',
'simplify_log', 'simplify_radical', 'simplify_rational',
- 'simplify_trig', 'simplify_full', 'trig_expand', 'trig_reduce']:
+ 'simplify_trig', 'simplify_full', 'trig_expand',
+ 'canonicalize_radical', 'trig_reduce']:
setattr(Vector_symbolic_dense, method, apply_map(getattr(Expression, method))) Why is this keeping
Sure! But I mean that the name, if anything, is more about exp/log then as opposed to radicals. Just seems curious, and wondering whether a better name is possible. It may not be. |
comment:24
Replying to @kcrisman:
Intentional, since it's no longer a
I'm happy to add these. I've been meaning to add
That code is adding methods to a class -- if we remove |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:26
Okay, I think it's probably time for this. Sadly. I'm happy with it, but building doc and testing yet to be done by me. |
comment:27
Doc looks good! Now just waiting on |
Reviewer: Karl-Dieter Crisman |
comment:29
Thanks for taking the time to review this! |
Changed branch from u/mjo/ticket/11912 to |
We use Maxima's radcan (warning - link may change) for
simplify_radical
. The documentation claimsbut it can be really hard to tell exactly what this all means. See this ask.sagemath.org question and #8497, to which this is a followup.
The plan is to rename
simplify_radical()
toradcan()
to match the upstream name. We can then aliassimplify_radical()
toradcan()
, and deprecate thesimplify_radical()
name.Afterwards we can attempt to clarify the docs, and provide more examples of
radcan()
's usage. We should provide both cautionary examples from our tickets, and some of the use cases that Dr. Fateman has described.CC: @burcin @zimmermann6
Component: documentation
Keywords: sd48
Author: Michael Orlitzky
Branch/Commit:
5d24f4c
Reviewer: Karl-Dieter Crisman
Issue created by migration from https://trac.sagemath.org/ticket/11912
The text was updated successfully, but these errors were encountered: