(49g 50g) Bernoulli, Euler and Bessel Polynomials
|
12-17-2021, 09:35 PM
(This post was last modified: 12-26-2021 08:58 PM by John Keith.)
Post: #1
|
|||
|
|||
(49g 50g) Bernoulli, Euler and Bessel Polynomials
This group of programs computes the values of the Bernoulli polynomials, Euler polynomials and reverse Bessel polynomials. Given an integer n on level 2 and a number x on level 1, the program BERPOLY returns the value of the nth Bernoulli polynomial at x. The program EUPOLY similarly computes the value of the nth Euler polynomial at x.
The program BESSEL similarly returns the value of the nth reverse Bessel polynomial at x. If regular Bessel polynomials are desired, insert REVLIST after the / on line 5 of the program. The programs require ListExt 1.3 For both programs, x can be an approximate (floating-point) number, an exact integer, a rational number or a symbolic expression (e. g. 'X' ). If the level 1 argument is 'X', the programs will return the polynomial as an expression, similar to the built-in polynomial commands. The programs should be used in exact mode if exact integer or rational results are desired. The two remaining programs are subprograms called by the main polynomial programs. PASCROW is the first program in this post. It returns the nth row of Pascal's triangle given n on the stack. EUNUM returns terms 0 through n of A155585, the signed Euler tangent numbers. BERPOLY and EUPOLY have been checked against the Mathematica functions BernoulliB and EulerE respectively. Both return the same results for all values that I have checked, although the form of symbolic expressions may be different. Code:
|
|||
12-26-2021, 09:01 PM
Post: #2
|
|||
|
|||
RE: (49g 50g) Bernoulli, Euler and Bessel Polynomials
Updated previous post and thread title to add a program for Bessel polynomials, and to clean up the code for BERPOLY and EUPOLY.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)