42. Bernstein

42.1 Functions and Variables for Bernstein

Function:bernstein_poly (k, n, x)

Provided k is not a negative integer, the Bernstein polynomials
are defined by bernstein_poly(k,n,x) = binomial(n,k) x^k
(1-x)^(n-k); for a negative integer k, the Bernstein polynomial
bernstein_poly(k,n,x) vanishes. When either k or n are
non integers, the option variable bernstein_explicit
controls the expansion of the Bernstein polynomials into its explicit form;
example: