-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
make symbolic series subclass of Expression #17659
Comments
Branch: u/rws/17659 |
Commit: |
New commits:
|
comment:3
I have nothing invested in how symbolics and series interact, but I see some immediate problems that would arise from subclassing Expression for a Series type:
Is the result a series? If so, in which variable(s)? One solution would be a SymbolicSeriesRing as a parent, which declares in what variables the series are. I suspect this would be nearly useless for whatever problem the current design tries to solve, though. |
comment:4
Nils, this is not about creating a ring but simple refactoring. No behaviour change. http://www.refactoring.com/catalog/replaceConditionalWithPolymorphism.html Replying to @nbruin:
These problems already exist, so nothing is new. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:8
OK, I thought that Indeed, being a "series" seems a rather fickle property. It doesn't seem to be preserved under anything:
The last result probably follows from interpreting the |
comment:9
Replying to @nbruin:
It isolates the code and the documentation.
There are functions in |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/rws/17659 to public/17659 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
There is a spurious unreprodcible doctest failure in the 6.6beta2 pachbot run. |
comment:18
This now uncovers a regression of #12255 which was not really fixed.
I will now let this ticket (and with it its dependencies) lie in limbo because, as a posting on sage-devel showed, there is no interest in symbolic series. |
Dependencies: #19448 |
comment:46
|
comment:47
Beware the dependency! |
comment:49
Patchbot also shows failure |
Changed branch from u/rws/17659-1 to u/rws/17659-2 |
comment:53
Ralf, did you intend for this to wait to 7.2 or did you mean 7.1? |
Changed branch from u/rws/17659-2 to |
Making
Expression.series
createSymbolicSeries
(a subclass ofExpression
) and moving the series code into a separate fileseries.pyx
Expression
methods withif ex.is_a_series():
Symbolic Series
ref man pageIn refactoring language this is "replace conditional with polymorphism".
#16203, #17400, and #17402 depend on this.
Depends on #19948
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
1832f4a
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/17659
The text was updated successfully, but these errors were encountered: