Problem 55335. Generate Bernoulli polynomials
The Bernoulli polynomial is a polynomial of order n with the properties that and for
where the prime denotes differentiation with respect to x, and
Therefore, , , , etc. Notice that is the nth Bernoulli number.
Write a function to generate the Bernoulli polynomial of order n. Use MATLAB's approach for specifying the coefficients. For example, the function should return [1 -1/2] for and [1 -1 1/6] for .
Solution CommentsShow comments
Problem Recent Solvers6