numapprox
chebyshev
Chebyshev series expansion
Calling Sequence
Parameters
Description
Examples
chebyshev(f, x=a..b, eps)
chebyshev(f, x, eps)
chebyshev(f, a..b, eps)
f
-
procedure or expression representing the function
x
variable name appearing in f, if f is an expression
a, b
numerical values specifying the interval of approximation
eps
(optional) numeric value
This function computes the Chebyshev series expansion of f, with respect to the variable x on the interval a..b, valid to accuracy eps.
If the second argument is simply a name x then the equation x=−1..1 is implied.
If the second argument is a range then the first argument is assumed to be a Maple operator and the result will be returned as an operator. Otherwise, the first argument is assumed to be an expression and the result will be returned as an expression.
If the third argument eps is present then it specifies the desired accuracy; otherwise, the value used is eps=10−Digits. It is an error to specify eps less than 10^(-Digits).
The expression or operator f must evaluate to a numerical value when x takes on a numerical value. Moreover, it must represent a function which is analytic in a region surrounding the interval a..b.
The resulting series is expressed in terms of the Chebyshev polynomials T⁡k,x,... with floating-point series coefficients. If 'ser' is the Chebyshev series then conversion to ordinary polynomial form can be accomplished via eval(ser, T=orthopoly[T]).
The series computed is the ``infinite'' Chebyshev series, truncated by dropping all terms with coefficients smaller than eps multiplied by the largest coefficient.
Note: The name T used in representing the Chebyshev polynomials is a global name, so the user must ensure that this name has no previous value.
The command with(numapprox,chebyshev) allows the use of the abbreviated form of this command.
with⁡numapprox:
Digits≔5:
chebyshev⁡cos⁡x,x
0.76520⁢T⁡0,x−0.22981⁢T⁡2,x+0.0049533⁢T⁡4,x−0.000041877⁢T⁡6,x
chebyshev⁡exp⁡x,x=0..1,0.001
1.7534⁢T⁡0,2⁢x−1+0.85039⁢T⁡1,2⁢x−1+0.10521⁢T⁡2,2⁢x−1+0.0087221⁢T⁡3,2⁢x−1
chebyshev⁡exp,0..1,0.001
x↦1.7534⋅T⁡0,2⋅x−1+0.85039⋅T⁡1,2⋅x−1+0.10521⋅T⁡2,2⋅x−1+0.0087222⋅T⁡3,2⋅x−1
chebyshev⁡sin+cos,−1..1
x↦0.76520⋅T⁡0,x+0.88010⋅T⁡1,x−0.22981⋅T⁡2,x−0.039127⋅T⁡3,x+0.0049533⋅T⁡4,x+0.00049952⋅T⁡5,x−0.000041877⋅T⁡6,x
See Also
orthopoly
series
taylor
Download Help Document