BernsteinBasis - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : BernsteinBasis

BernsteinBasis

Bernstein polynomials on an interval

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

BernsteinBasis(k, n, a, b, x)

Parameters

k

-

algebraic expression; the index

n

-

algebraic expression; the degree

a

-

algebraic expression; left end of interval

b

-

algebraic expression; right end of interval

x

-

algebraic expression; the argument

Description

• 

BernsteinBasisk,n,a,b,x=nkb−xn−k⁢x−akb−an defines the kth Bernstein polynomial of degree n which is nonnegative on the interval a,b.

• 

At present, this can only be evaluated in Maple by prior use of the object-oriented representation obtained by P:=convert(p,MatrixPolynomialObject,x) and subsequent call to P:-Value(<x-value>), which uses the de Casteljau algorithm to evaluate the polynomial p.

Examples

> 

p≔3⁢BernsteinBasis⁡0&comma;4&comma;0&comma;1&comma;x+5⁢BernsteinBasis⁡2&comma;4&comma;0&comma;1&comma;x+7⁢BernsteinBasis⁡4&comma;4&comma;0&comma;1&comma;x

p≔3⁢BernsteinBasis⁡0&comma;4&comma;0&comma;1&comma;x+5⁢BernsteinBasis⁡2&comma;4&comma;0&comma;1&comma;x+7⁢BernsteinBasis⁡4&comma;4&comma;0&comma;1&comma;x

(1)
> 

P≔convert⁡p&comma;MatrixPolynomialObject&comma;x

P≔Record⁡Value=Defaultvalue&comma;Variable=x&comma;Degree=4&comma;Coefficient=coe&comma;Dimension=1&comma;1&comma;Basis=BernsteinBasis&comma;BasisParameters=4&comma;0&comma;1&comma;IsMonic=mon&comma;OutputOptions=shape=&comma;storage=rectangular&comma;order=Fortran_order&comma;fill=0&comma;attributes=

(2)
> 

P:-Degree⁡

4

(3)

Note that the result returned by convert(...,MatrixPolynomialObject) represents a matrix polynomial; hence these results are 1 by 1 matrices.

> 

P:-Value⁡0

3

(4)
> 

P:-Value⁡1

7

(5)
> 

P:-Value⁡0.3

2.100000000

(6)
> 

factor⁡P:-Value⁡t1,1

40⁢t4−72⁢t3+48⁢t2−12⁢t+3

(7)

See Also

convert/MatrixPolynomialObject

LagrangeBasis

LinearAlgebra[CompanionMatrix]

NewtonBasis

OrthogonalSeries

PochhammerBasis

type/MatrixPolynomialObject