-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Symbolic sums should evaluate #15346
Comments
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
Author: Ralf Stephan |
comment:7
The issue however begs the question if it should not be possible to give hold parameter to sums. |
comment:8
Don't have time to review this immediately (though I think the |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
You're going to get annoyed by this question, but I do feel it's a UI issue. Is |
comment:12
I'm not so sure about UI issues here and elsewhere, either. I'm much in favor of those tickets proposing functions with keywords handling this, like If we stick to |
comment:13
I like
In retrospect that would have been a good design discussion to have had. Though I should say that with tab-completion, I like the current system better. Maxima has all these flags and such, and you have to know about them. Your time is better spent adding the functionality you are - and I know it isn't getting reviewed very quickly, but experience says that they will get reviewed! A number of the people who were pretty involved in symbolics have different jobs or school now, so they haven't been able to be as involved. (I would have liked Burcin's input on this naming scheme, for instance, so it's not just two people.) Pros and cons of open source development... |
Changed branch from u/rws/symbolic_sums_should_evaluate to u/rws/15346 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Karl-Dieter Crisman |
comment:18
As I suspected, the addition of the log thing led to some issues. Is this 'simplification' always valid for complex numbers? I know mjo has been very good at thinking about this kind of thing, cc:ing him.
Naturally, this is orthogonal to the main issue, but I think it should be in a different ticket unless it's very obvious it's okay. As to the main question, I think my only question is whether this should definitely be incorporated in |
comment:19
Replying to @kcrisman:
This is just a conflict from having two branches modify
I'm sure there's a smarter way to do the copy/paste step, but it works.
In the examples, The Maxima docs aren't too clear about what |
comment:20
Sorry, I meant the log bit. Wait, was that already in develop? I merged develop into this branch locally, should have been up-to-date. I'm not worried about the summation with complex variables, for the record, just trying to brainstorm. |
Dependencies: #17731 |
comment:22
Okay, so let's make that a dependency for this so that rws can rebase to that. Sorry, Ralf, that's not your fault - good thing I ran all the tests! And I thought I had recalled removing that simplification from |
comment:23
Replying to @kcrisman:
I get more confused the more I look at this. Ralf's branch in ticket #17556 had mine as a parent, so my commits should have gone in along with his. After switching my branches around a few times, I see them now in develop. If you |
comment:24
Yes. Though I usually pull from trac not origin. But in any case the branch I was working with for this ticket also has that already in it. Yet on that branch I get
I don't understand either. And
as expected. |
comment:25
Ok, I think I see what happened. False alarm. Looking at Ralf's original commit in comment 6, he added In comment 10, the git bot merges with develop, pulling in the patch that removed I'm not sure exactly where things went awry. At this point I usually throw my hands up, |
comment:26
Replying to @kcrisman:
Disagree. I remember too that at some time I removed it before doing a local commit. But in 17dda26 I seem to have added the log involuntarily nevertheless. That's why it's in this ticket branch and I'll remove it now. Then Michael seemed to assume that a different cause happened and based #17731 on that. So it's really me that has to apologize. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:28
Okay, I got you on that. I'll rerun tests this morning and add my stashed example I was going to add as a reviewer patch by the end of the day. |
Changed dependencies from #17731 to none |
Changed branch from u/rws/15346 to u/kcrisman/15346 |
comment:30
Okay. So I am happy with this, modulo the question about whether this really belongs in New commits:
|
comment:31
I think it's OK to have it in
with no way to get it down to a single number. (You can copy/paste the sum back in, but that may not be an option.) It's also a lot to ask of our users to know every method on the Expression class, but everyone knows If it causes problems, we can remove it. Or if it makes some expressions a lot uglier, there's the hack I used in
I think it will be fine though. |
comment:32
Somewhat of an API change, of course. My guess is it won't come up often enough, but anyway thanks for the input! |
Changed branch from u/kcrisman/15346 to |
This ask.sagemath question points out that
while
User twch found this workaround
but I agree with him/her that we should look into how to fix this.
The essential problem is that when Maxima does not simplify a sum, we don't have any mechanism (currently) to get it to "just print out all the numbers". Which of course may not be very nice when
k
is big, but presumably should be allowed to be done by users.By the way, the way to do this in Maxima is as follows:
so setting
nouns:true
just for this would work, but I can never figure out how to do this from within Sage - see #10955.Possibly related: #9424
See also
CC: @orlitzky
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
3ee8c6d
Reviewer: Karl-Dieter Crisman
Issue created by migration from https://trac.sagemath.org/ticket/15346
The text was updated successfully, but these errors were encountered: