Max Alekseyev on Fri, 29 Sep 2023 23:47:00 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: evaluation of Bernoulli polynomials


CORRECTION: polchebyshev() example was not complete - I meant to show this:

? polchebyshev(7,2,2)
%3 = 10864

On Fri, Sep 29, 2023 at 5:44 PM Max Alekseyev <maxale@gmail.com> wrote:
Most named polynomials in PARI allow upfront evaluation at a given point - like

? polcyclo(7,2)
%1 = 127
? polchebyshev(7,2)
%2 = 128*x^7 - 192*x^5 + 80*x^3 - 8*x

However, this is not the case with Bernoulli polynomials:

? bernpol(7,2)
  ***   variable name expected: bernpol(7,2)
  ***                                     ^--

Can this be fixed please?

PS. On a cosmetic side, bernpol() should have been better called polbern() to be consistent with naming of other pol*() functions.

Regards,
Max