-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
coefficients of symbolic expressions revamp #17438
Comments
comment:1
OK, noninteger exponents will throw an exception with |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed keywords from none to list, polynomial, coeff |
Author: Ralf Stephan |
comment:7
I'm looking at this now. I'm sorry for the delay; I only finished traveling this past weekend. Unfortunately, it looks like the delay will take even longer, because after checking out your branch, Sage wants to recompile every blessed Cython file... as usual... and it just failed on 'sage/algebras/quatalg/quaternion_algebra_cython.pyx'. Great. Any ideas? |
comment:8
I've left that temporary branch, deleted it, & am first rebuilding the develop branch. I'll try again when Sage quits compiling all the Cython files. The good news is that it made it past |
comment:9
Importing fails, again. Failure occurs in the same place, but the first message that looks like an error is this:
Dunno how to proceed from here. FWIW I'm trying to build from my Sage-6.3 develop branch. Do I have to download Sage-6.4, or even a recent beta of Sage-6.5? |
comment:10
The branch is based on 6.5beta1 and the newest develop is beta2. Do you want me to merge beta2 into the branch? |
comment:11
Replying to @rwst:
I have no idea. Let me try downloading & building 6.5beta1 first, then applying your patch. (I imagine I can find 6.5beta1 online.) That will take a few hours, so I'll know what to ask at that point, which (for me) may be tomorrow. Sorry again for the delay. Edit: Yup! I found 6.5beta1 online without too much work. |
comment:12
You really should use git so you don't need to download tarballs. How would you apply this branch or upload trac without git, anyway? |
comment:13
+ val = l[0][1]
+ if val < 0:
+ raise ValueError("Cannot return dense coefficient list with negative valuation.") I can understand the rationale behind this Yet, I just checked the situation for Laurent polynomials and it appears that only the list of nonzero coefficients can be computed. That is the implementation you propose is consistent with the case of Laurent polynomials. |
comment:14
Replying to @rwst:
I am using git, and following the sage developer manual, to boot. How would I upgrade source from 6.3 to 6.5 without downloading the latest tar ball? even if I did, how would I avoid recompiling source when there are so many changes between branches? |
comment:15
Given you have cloned The best strategy for you with an old clone would be to pull HEAD (=6.5beta2), |
comment:16
I forgot: Did I say that without |
comment:17
Replying to @rwst:
OK, yes, I have a master; I have a develop; I had switched to develop (
I could try that, though right now I have 6.5beta1 compiling, so I might as well stick with that for the time being.
Lots of people recommend it, but the Developer's Guide doesn't ("you'll have to learn git eventually, anyway, so why not start now?") and I'm actually working with other projects that use git (though not very much yet, & not very in-depth... just commit & push mostly). *I now see that it says nothing about that in the section on checking out tickets. In the section on getting changes it tells the reader, |
comment:18
Replying to @rwst:
Also, I typically use |
comment:19
Replying to @johnperry-math:
No, there are several ways to skin a cat.
That is actually not It may well be that you will only appreciate the |
comment:20
Replying to @rwst:
Either way, I still seem stuck with a two-hour recompilation, except that at the moment I'm getting it from both the tarball and the git pull. :-) |
comment:21
After updating my I'll try anew when the fresh compile of 6.5 finishes. That could take a while; right now it's working on ppl. |
comment:22
I was able to merge it into the fresh build of 6.5. Compiled with no problems; now running doctests. I'm going to open a new ticket "soon" for my version. Would you advise opening a new branch on top of this ticket, or opening a new branch from my develop branch & going from there? |
comment:23
Ran |
comment:24
Thanks fo the review! Replying to @johnperry-math:
I rechecked that all changed code in this ticket concerns symbolic expressions. Merging would only be necessary in case of merge conflict or a dependency on that code. But the |
comment:25
reviewer name |
Reviewer: john_perry |
comment:26
Sorry about that. |
comment:27
The reviewer name is supposed to be your real name, not the trac account name. |
comment:29
" |
Changed reviewer from john_perry to John Perry |
Changed branch from u/rws/coefficients_of_symbolic_expressions_revamp to |
The ticket asks for
sparse
parameter toExpression.coefficients()
, defaultTrue
coeff
andcoeffs
aliasesExpression.list()
, simply callingcoefficients(sparse=False)
This appears to be consensus for polynomials in the thread https://groups.google.com/forum/?hl=en#!topic/sage-devel/IHirUHTWnuA
Component: symbolics
Keywords: list, polynomial, coeff
Author: Ralf Stephan
Branch/Commit:
0fec129
Reviewer: John Perry
Issue created by migration from https://trac.sagemath.org/ticket/17438
The text was updated successfully, but these errors were encountered: