MultivariatePowerSeries/ApproximatelyZero - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MultivariatePowerSeries/ApproximatelyZero

MultivariatePowerSeries

  

ApproximatelyZero

  

Determine equality with zero up to some precision

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ApproximatelyZero(p, deg)

ApproximatelyZero(u, deg)

Parameters

p

-

power series generated by this package

u

-

univariate polynomial over power series generated by this package

deg

-

(optional) the precision up to which to compare

Description

• 

Two power series p and q are said to be equal up to a degree deg, called the precision, if for each degree d <= deg, the homogeneous components of p and q of degree d are equal.

• 

The command ApproximatelyZero(p) returns true if the power series is equal to zero up to its currently computed precision, otherwise false.

• 

The command ApproximatelyZero(p,deg) returns true,  if the power series is equal to zero up to precision deg, otherwise false.

• 

The command ApproximatelyZero(u) returns true if each coefficient of the univariate polynomial over power series is equal to zero up to its currently computed precision, otherwise false.

• 

The command ApproximatelyZero(u,deg) returns true if each coefficient of the univariate polynomial over power series is equal to zero up to precision deg, otherwise false.

• 

When using the MultivariatePowerSeries package, do not assign anything to the variables occurring in the power series and univariate polynomials over power series. If you do, you may see invalid results.

Examples

withMultivariatePowerSeries&colon;

We create two power series and compute their difference.

aInversePowerSeries1xy

aPow&ExponentialE;rS&ExponentialE;rⅈ&ExponentialE;s of 11xy : 1+

(1)

bGeometricSeriesx&comma;y

bPow&ExponentialE;rS&ExponentialE;rⅈ&ExponentialE;s of 11xy : 1+x+y+

(2)

cab

cPow&ExponentialE;rS&ExponentialE;rⅈ&ExponentialE;s: 0

(3)

The power series a is known to have nonzero terms.

ApproximatelyZeroa

false

(4)

In order to test whether c has any nonzero terms of homogeneous degree 10 or less, we can issue the following command. We see that a and b are the same up to homogeneous degree 10 (and indeed, from the analytic expression we can see that they are exactly equal).

ApproximatelyZeroc&comma;10

true

(5)

Because c is defined as a difference, we can test the same thing using the ApproximatelyEqual command.

ApproximatelyEquala&comma;b&comma;10

true

(6)

The following two univariate polynomials over power series are exactly equal to the polynomial z1+x+y. Hence, their difference is equal to 0 at any precision.

fUnivariatePolynomialOverPowerSeriesPowerSeries0&comma;InverseGeometricSeriesx&comma;y&comma;z

fUnⅈvarⅈat&ExponentialE;PolynomⅈalOv&ExponentialE;rPow&ExponentialE;rS&ExponentialE;rⅈ&ExponentialE;s: 0+1+z

(7)

gUnivariatePolynomialOverPowerSeriesPowerSeries0&comma;PowerSeries1xy&comma;z

gUnⅈvarⅈat&ExponentialE;PolynomⅈalOv&ExponentialE;rPow&ExponentialE;rS&ExponentialE;rⅈ&ExponentialE;s: 0+1xyz

(8)

hfg

hUnⅈvarⅈat&ExponentialE;PolynomⅈalOv&ExponentialE;rPow&ExponentialE;rS&ExponentialE;rⅈ&ExponentialE;s: 0+0z

(9)

ApproximatelyZeroh

true

(10)

ApproximatelyZeroh&comma;10

true

(11)

Compatibility

• 

The MultivariatePowerSeries[ApproximatelyZero] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

ApproximatelyEqual

GeometricSeries

Inverse

IsUnit

PowerSeries

Truncate