LazyPowerSeriesRing Replacement

60 views
Skip to first unread message

Travis Scrimshaw

unread,
Aug 14, 2022, 8:44:37 PM8/14/22
to sage-devel
Hi everyone,
   Now that https://trac.sagemath.org/ticket/32324 is positively reviewed, I was wondering if there would be any opposition to replacing the current LazyPowerSeriesRing with the next LazyTaylorSeriesRing. This is already happening as the backend for species in https://trac.sagemath.org/ticket/32367. Are there any features missing that people want from LazyPowerSeries?

I should also point out that the framework on https://trac.sagemath.org/ticket/32324 also easily allows us to work with formal infinite series over any graded algebra (at least where each graded piece is a finite sum of elements). I plan on doing the slight refactoring and adding a noncommutative Cauchy product stream to the code to support this somewhat soon for some computations I need.

Best,
Travis

PS - Side question: Do we have q-commuting polynomials as a graded algebra in Sage? I don't think so, but perhaps there is an easy way to construct it. I know in 2 variables, I can build it as a SkewPolynomialRing in y over R['x'], but this it doesn't have the right grading.

Kwankyu Lee

unread,
Aug 15, 2022, 3:21:30 AM8/15/22
to sage-devel
If LazyTaylorSeriesRing could be a complete replacement of LazyPowerSeriesRing, then I think we should remove the old LazyPowerSeriesRing
and rename LazyTaylorSeriesRing to LazyPowerSeriesRing. Do you mean this?

Mathematically, Taylor series means power series derived from a function. So aTaylor series is always attached to a function. The name LazyTaylorSeriesRing seems a misnomer.



John Cremona

unread,
Aug 15, 2022, 3:50:07 AM8/15/22
to SAGE devel
I agree with all these points!

John

>
>
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/95b58801-156f-4bee-b811-abbcf8bd4f1en%40googlegroups.com.

Vincent Delecroix

unread,
Aug 15, 2022, 4:06:29 AM8/15/22
to sage-devel
On Mon, 15 Aug 2022 at 09:50, John Cremona <john.c...@gmail.com> wrote:
>
> On Mon, 15 Aug 2022 at 08:21, Kwankyu Lee <ekwa...@gmail.com> wrote:
> >
> > If LazyTaylorSeriesRing could be a complete replacement of LazyPowerSeriesRing, then I think we should remove the old LazyPowerSeriesRing
> > and rename LazyTaylorSeriesRing to LazyPowerSeriesRing. Do you mean this?
> >
> > Mathematically, Taylor series means power series derived from a function. So aTaylor series is always attached to a function. The name LazyTaylorSeriesRing seems a misnomer.
>
> I agree with all these points!

Me too.

Travis Scrimshaw

unread,
Aug 15, 2022, 8:04:00 PM8/15/22
to sage-devel
I will let Martin discuss the naming as I think the is attached to the name LazyTaylorSeries(Ring). A quick counterpoint to Kwankyu's claim, the power series "is" a function (well, formally), we just usually think of it as being equal to an "easier" function.

However, it is meant to be a complete replacement with removing the old LazyPowerSeriesRing code. This new version should be faster, more robust, and have more functionality.

Best,
Travis

Kwankyu Lee

unread,
Aug 16, 2022, 12:35:56 AM8/16/22
to sage-devel
On Tuesday, August 16, 2022 at 9:04:00 AM UTC+9 Travis Scrimshaw wrote:
 the power series "is" a function (well, formally), we just usually think of it as being equal to an "easier" function.

No. You know that a power series is an expression. It has variables, but not domain and codomain. 

Martin R

unread,
Aug 16, 2022, 3:17:30 AM8/16/22
to sage-devel
That's a misunderstanding: I am NOT attached to the name LazyTaylorSeries(Ring).

I would prefer that the ticket goes in with the name we agree on, rather than going in with a name that we deprecate in the same release.

Moreover, I do not know whether there will be a conflict with the LazyPowerSeries(Ring) in the species directory, and I am somewhat unwilling to find out, because that code seems to have a few bugs and will be replaced anyway.

Martin R

unread,
Aug 16, 2022, 3:24:15 AM8/16/22
to sage-devel
PS: there are probably some things that have to be replaced.  For example, LazyPowerSeriesRing has methods `sum_generator` and `product_generator`, which are undocumented but seem to compute the sum/product of a sequence of series where the n-th series (-1 in the product case) has valuation at least n.

Martin
Reply all
Reply to author
Forward
0 new messages