-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Raise power/Laurent series to fractional powers #25209
Comments
Branch: u/gh-BrentBaccala/25209 |
comment:1
The patch works by renaming the PowerSeries sqrt() method to nth_root() and extending its logic to handle any integer root. sqrt() method is now just a wrapper around nth_root(). PowerSeries and LaurentSeries pow() methods now check for a fractional power and evaluate it by calling nth_root(). New commits:
|
Author: Brent Baccala |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:3
Related tickets:
|
Changed branch from u/gh-BrentBaccala/25209 to public/25209 |
New commits:
|
comment:6
This branch was not written with a recent enough version of Sage. It is adding a method With this brach, the git log on the file
The branch must be rebased. Also what is the difference between methods |
comment:8
OK, let's try this again... I discarded my version of nth_root() and rebased the other changes to use the nth_root() that was added in December 2017. There were some bugs in that version of nth_root() that I fixed. Not sure if that should be a separate ticket. I left it in with this one because otherwise the tests for this ticket's code would fail. |
Reviewer: Vincent Delecroix |
comment:11
laurent_series_ring_element.pyx:
You should rather use
And then, don't use
power_series_ring_element.pyx:
could you add tests for |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Suggested changes implemented. I did puzzle for a while about how to handle something like An argument can be made for I opted for |
comment:14
The logic in
is quite strange. You first convert
I would rather do the other way around
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Suggested change implemented. |
comment:17
this is weird
|
comment:18
Replying to @videlec:
I think that makes sense. The relative precision remains the same on powering operations.
|
comment:19
Replying to @BrentBaccala:
I see. Though I am not completely convinced that this is the good thing to do. |
Changed branch from public/25209 to |
Currently (sage-8.1), only square roots can be taken of power series, and Laurent series don't even implement that. The goal is calculations like this:
CC: @videlec
Component: algebra
Keywords: PowerSeries, LaurentSeries
Author: Brent Baccala
Branch/Commit:
b3ede94
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/25209
The text was updated successfully, but these errors were encountered: