-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
speed up powers of lazy Taylor series #34350
Comments
comment:1
Using a the naïve version using the Taylor series speeds things up considerably:
versus before
Another example:
versus before
Last 10 new commits:
|
Author: Travis Scrimshaw |
Commit: |
Dependencies: #32324 |
comment:2
I based this off #32324 since that is positively reviewed, although I can remove this if necessary. |
Changed branch from public/rings/speedup_powers_lazy_series-34350 to u/MartinPepin/34350 |
Reviewer: MartinPepin |
comment:4
I reproduced the time difference, that's indeed huge! I also took the opportunity to update the docstring for New commits:
|
Changed reviewer from MartinPepin to Martin Pepin |
comment:5
Hi Martin P. Thanks for the review. Can you quickly do two minor little tweaks to follow our docstring conventions: - - ``n`` -- the power to which to raise the series. This may be an
- integer, a rational number, an element of the base ring, or an other
- series.
+ - ``n`` -- the power to which to raise the series; this may be a
+ rational number, an element of the base ring, or another series sage: f
- 1 - q*z + ((q^2 - q)/2)*z^2 + ((-q^3 + 3*q^2 - 2*q)/6)*z^3 + ((q^4 - 6*q^3 + 11*q^2 - 6*q)/24)*z^4 + ((-q^5 + 10*q^4 - 35*q^3 + 50*q^2 - 24*q)/120)*z^5 + ((q^6 - 15*q^5 + 85*q^4 - 225*q^3 + 274*q^2 - 120*q)/720)*z^6 + O(z^7)
+ 1 - q*z + ((q^2 - q)/2)*z^2 + ((-q^3 + 3*q^2 - 2*q)/6)*z^3
+ + ((q^4 - 6*q^3 + 11*q^2 - 6*q)/24)*z^4
+ + ((-q^5 + 10*q^4 - 35*q^3 + 50*q^2 - 24*q)/120)*z^5
+ + ((q^6 - 15*q^5 + 85*q^4 - 225*q^3 + 274*q^2 - 120*q)/720)*z^6
+ + O(z^7)
""" Once you do those, you can set a positive review. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/MartinPepin/34350 to |
As remarked in #32324 comment:105, the computation of the square root of a lazy series is very slow.
Depends on #32324
Component: combinatorics
Keywords: LazyPowerSeries
Author: Travis Scrimshaw
Branch/Commit:
b237921
Reviewer: Martin Pepin
Issue created by migration from https://trac.sagemath.org/ticket/34350
The text was updated successfully, but these errors were encountered: