Karim Belabas on Sat, 30 Sep 2023 10:01:05 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: evaluation of Bernoulli polynomials
|
- To: Max Alekseyev <maxale@gmail.com>
- Subject: Re: evaluation of Bernoulli polynomials
- From: Karim Belabas <Karim.Belabas@u-bordeaux.fr>
- Date: Sat, 30 Sep 2023 10:00:58 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1696060850; c=relaxed/relaxed; bh=WCo3cW9rm5AJp+/Up/3s0l1RzQ/HYVv5iOKJ4HmZ9Es=; h=Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=Gow+woLFXTswkHIM9ToeWBqrRJ0ys5b7EX9S9VCCLJUit0lZ2A4Y1ZuIRQRm/8c2Gg4A6qFxnMoulDdrfhunPdwcRXG3Ml69H6eEPYWPpXozn02uWweJPs86DOooW38+PNsiBk8iDGr+fKSnI0Am6GRZ0ut9JPuvf4c53U7R+teWHnPWtIIjoJIsJ2fWiZ6Y1DDv9QvCoqzn012nKaqWP0WEewtxN0pxMvjVyERxuzCHTZG8iUHigyYuaGmi7jh5bmhOH3lH9GD+sI4IGgVlIaUooqVpoGNNos2bjLEWJib5b5eOlrYaJVhmcaNGtvlRmeOSfLjtn2pL5b5O6xfyAOi9nkW7fQPSD8CIUqMWnEGO6MKGAeq85KDUer4ickWaftPOBDxiWTfcYJ6om5aq1N29ib36GEcUkA/PuvcJef5nWTO6RKo5WinGlVHsXJL8/etCIyYB9EeeyjaneN1N85ynLwB4rJa0W8k82k4ZL4yaUDU5JHnI5o4tz2ewXQIerm6iGeU96P9QQR2xa2oXKo/obp0OQCsKo15aaOE3qBwaVGVWjlcqqKyg1wGJVrsjH0oNsouV+BdKS7aCvZxRxLz+2D4SDLr92/euztW53i6lJVoJR6tINnYMYatFOTkVbyk7KkWDt60jmoc4R382hPi8T2v7zB81pI5p5D16cMU=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1696060850; cv=none; b=FTcONrmyYKU7REuJ2p3BFGGZ6SbJL6y0F0lHhbvbrlQ2fcBj/ZvXuhdUgs/4WBSYOfQ/ttj7rJubYr5KgZM3HIQrl4HNQPp7zp915XULJ9/g8r6j/qpZ2tnhGTtaj2W104rEGd/20HbpCABkDGsz/ztmpLAdlotC3NJyE6LcDXTKa7Hdqe0IuKjE2fvt1CKwzVapiRJhtBX7zorP8iJ7feN8pyozYRle7NtGaqqR3yMNzrl6rpY44ByYhaxD8TezWiy/kmahI53eY8cA2tKfj9XqOsd3kU4y526Z064Qfs26XfQe6pP/Q0IeDutwHkhNxajMBGRuJPXDkTpgttBNoubqVUcWEwXvS4fG0Z06eAz55W+g9RbSh2xGUXVN9VqBjhAnXOGTC2TbA1F+Tzuk3ATRoNVAgxdULZrQs1KmIFKr8Rn302Sq6PaZQ4+Vh6b7D54znpGLd2Mj4xyYDbXmzQ6CRFfRTQDgQae/MEGQkXohiM+XBIdxhgjJMK5g6MGM5/4O+kVIS3wdE8ZD1sNvDpHA3QsA5BzH+azzlAfkQRl/z+fZSagvaWukWyNMDqBBMPQW5eEMDV2R7i68/QAPi8zPiptF981kbAKnt7Qf4mAG9QHNRIqPw1LfP7/XYqKZcG8vNNnlbu0nm7kbJ6RBWXIa3FJXRC+DNdT//ZHbqms=
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Sat, 30 Sep 2023 10:01:05 +0200
- In-reply-to: <CAJkPp5MhuH0TeS6XwKzzsEgPi8BPVshO92ugh+Sy-U3YOAinHA@mail.gmail.com>
- Mail-followup-to: Max Alekseyev <maxale@gmail.com>, pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5MhuH0TeS6XwKzzsEgPi8BPVshO92ugh+Sy-U3YOAinHA@mail.gmail.com>
* Max Alekseyev [2023-09-29 23:45]:
> 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?
It's not very useful because there's no faster way to evaluate Bernoulli
polynomials than to ... compute then evaluate them. But it doesn't hurt
and is easy to do.
I'm neutral. Other opinions ?
> PS. On a cosmetic side, bernpol() should have been better called polbern()
> to be consistent with naming of other pol*() functions.
It's been called bernpol() to be consistent with other bern*() functions ...
The other choice would have been called polbernoulli(), but the
interface was indeed not consistent with pol* functions.
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/