New Packages - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


New Packages in Maple 10

  

Maple 10 contains many new packages.

  

For information on enhancements and improvements to existing packages, see Enhanced Packages in Maple 10.

  

This help page describes the following new packages.

  

AudioTools package

  

DocumentTools package

  

ImageTools package

  

IntegrationTools package

  

PolynomialIdeals package

  

ProcessControl package

  

RegularChains package

  

Statistics package

  

Student[VectorCalculus] package

  

Tolerances package

  

Typesetting package

 

AudioTools Package

DocumentTools Package

ImageTools Package

IntegrationTools Package

PolynomialIdeals Package

ProcessControl Package

RegularChains Package

Statistics Package

Student[VectorCalculus]

Tolerances

Typesetting

AudioTools Package

  

The AudioTools package provides tools for reading and writing WAVE format audio files, and performing basic audio processing operations.

  

Examples

audiofile := cat(kernelopts(datadir), "/audio/stereo.wav"):

with(AudioTools):

aud := Read(audiofile);

audSample Rate22050File FormatPCM File Bit Depth8Channels2Samples/Channel19962Duration0.90531s

(1)

attributes(aud);

22050,8,1

(2)

mono := ToMono(aud);

monoSample Rate22050File FormatPCM File Bit Depth8Channels1Samples/Channel19962Duration0.90531s

(3)

filtered := Convolution(mono,<1,1,1,1,1,1,1,1,1,1,1,1,1,1,1>);

filteredSample Rate22050File FormatPCM File Bit Depth8Channels1Samples/Channel19976Duration0.90594s

(4)

Write("filteredmono.wav",filtered);

20020

(5)

DocumentTools Package

  

The DocumentTools package is a collection of commands that allow programmatic access to the properties of interactive components, such as buttons or sliders, in a Standard Maple worksheet or document.

ImageTools Package

  

The ImageTools package provides tools for reading and writing JPEG, TIFF, and BMP format image files, and performing basic image processing operations.

  

Examples

imagefile := cat(kernelopts(datadir), "/images/fjords.jpg"):

with(ImageTools):

img := Read(imagefile);

(6)

gray := ToGrayscale(img);

(7)

sharper := Convolution(gray,<<0,-1,0>|<-1,6,-1>|<0,-1,0>>);

(8)

Write("sharpgray.jpg",sharper);

53095

(9)

IntegrationTools Package

  

The IntegrationTools package provides a number of low-level tools for manipulating definite and indefinite integrals.

  

Examples

with(IntegrationTools):

v := Int(f(x), x=a..b);

vabfx&DifferentialD;x

(10)

GetIntegrand(v);

fx

(11)

GetVariable(v);

x

(12)

GetRange(v);

a..b

(13)

PolynomialIdeals Package

  

The PolynomialIdeals package provides tools for computing with ideals of commutative polynomials.

  

Examples

with(PolynomialIdeals):

J := <x^2 + y + z - 1, x + y^2 + z - 1, x + y + z^2 - 1>;

Jz2+x+y1&comma;y2+x+z1&comma;x2+y+z1

(14)

Simplify(PrimaryDecomposition(J));

x&comma;y&comma;1+z,x&comma;z&comma;y1,1+x+y&comma;1+x+z&comma;x22x+1,x+y&comma;x+z&comma;x2+2x1

(15)

Simplify(PrimeDecomposition(J));

y&comma;z&comma;x1,x+y&comma;x+z&comma;x2+2x1,x&comma;y&comma;1+z,x&comma;z&comma;y1

(16)

K := Intersect((16));

Kxy+yz&comma;xy+zx&comma;z2+x+y1&comma;y2+x+z1&comma;x2+y+z1

(17)

R := Radical(J);

Rxy+yz&comma;xy+zx&comma;z2+x+y1&comma;y2+x+z1&comma;x2+y+z1

(18)

K subset R, R subset K;

true,true

(19)

ProcessControl Package

  

The ProcessControl package provides various tools for statistical process control.

  

Examples

with(ProcessControl):

A:=[12, 8, 6, 9, 10, 12, 11, 16, 10, 6, 20, 15, 9, 8, 6, 8, 10, 7, 5, 8, 5, 8, 10, 6, 9];

A12&comma;8&comma;6&comma;9&comma;10&comma;12&comma;11&comma;16&comma;10&comma;6&comma;20&comma;15&comma;9&comma;8&comma;6&comma;8&comma;10&comma;7&comma;5&comma;8&comma;5&comma;8&comma;10&comma;6&comma;9

(20)

CChart(A, 100);

CControlLimits(A, 100);

0.181764854164603&comma;18.5382351458354

(21)

RegularChains Package

  

The RegularChains package provides tools for triangularization and solving systems of polynomial equations, as well as algebraic computations modulo ideals of polynomials. For a detailed overview and tutorial examples, see the RegularChains package overview page.

  

Examples

with(RegularChains):

R := PolynomialRing([x,y,z]):

sys := {x^2 + y + z - 1, x + y^2 + z - 1, x + y + z^2 - 1};

sysz2+x+y1&comma;y2+x+z1&comma;x2+y+z1

(22)
  

The Triangularize command splits this system into a union of triangular systems:

dec := Triangularize(sys, R):

map(Equations, dec, R);

xz&comma;yz&comma;z2+2z1&comma;x&comma;y&comma;z1&comma;x&comma;y1&comma;z&comma;x1&comma;y&comma;z

(23)
  

One of these tools is the automatic detection of cases in the presence of algebraic relations.  In the example below, we compute the inverse of a matrix modulo the set of algebraic relations specified by the regular chain rc:

with(MatrixTools): with(ChainTools):

rc := Chain([z^3 - 1, z^2-y^2, x-y], Empty(R), R):

A := Matrix([[1, y+z], [2, x-z]]);

A1y+z2xz

(24)
  

The ideal generated by the algebraic relations in rc is reducible. The MatrixInverse command detects that A is not invertible modulo rc. It splits the ideal into four components, such that the matrix is invertible modulo each of these components. Note that the form of the inverse is different for each component:

res := MatrixInverse(A, rc, R);

res10112&comma;regular_chain&comma;10z1z2+12&comma;regular_chain&comma;0121214&comma;regular_chain&comma;012z212z4+14&comma;regular_chain&comma;

(25)
  

Using the Equations command, the generators for a specific component can be displayed:

res[1,1,1],Equations(res[1,1,2],R);

10112,x+1&comma;y+1&comma;z1

(26)

Statistics Package

  

The Statistics package is a collection of functions and interactive tools for mathematical statistics and data analysis.  The package supports a wide range of common statistical tasks such as quantitative and graphical data analysis, symbolic manipulation of random variables, simulation, and curve fitting.  Much of the functionality in the Statistics package is accessible through context menus.

  

Below is the list of primary topics. For a more detailed overview of the package, see the Statistics help page.

• 

Over 35 continuous and discrete probability distributions, as well as tools for creating new distributions.

• 

Tools for creating and manipulating random variables as well as functions for computing their densities, moments, generating functions and other quantities.

• 

A wide range of functions for computing descriptive statistics. This includes location, dispersion and shape statistics, moments and cumulants, as well as several data summary and tabulation commands.

• 

Statistical plots including box plots, bar charts, histograms, probability plots, and scatterplots.

• 

Optimized algorithms for simulating from all supported distributions, as well as tools for creating custom random number generators, and parametric and non-parametric bootstrapping.

• 

Tools for fitting linear and nonlinear models to data points and performing regression analysis.

• 

Tools for manipulating likelihood functions, maximum likelihood estimation, kernel density estimation, and bootstrapping.

• 

Tools for manipulating statistical data. Data smoothing functions including moving averages, exponential smoothing, and linear filters.

• 

Common tools for performing hypothesis testing and inference, including several parametric and non-parametric tests.

  

Examples

with(Statistics):

X:= RandomVariable(Poisson(lambda)):

ProbabilityFunction(X, 2);

λ2&ExponentialE;λ2

(27)

Mean(X);

λ

(28)

ProbabilityPlot(Sample(RandomVariable(Poisson(3)), 200), Poisson(3));

Z:=Sample(Normal(0, 1), 10):

A:=Array([seq(2+sin(10*Pi*i/15+2*Z[i]), i=1..5)]):

B:=Array([seq(2+sin(10*Pi*i/15+3*Z[i]), i=1..5)]):

C:=Array([seq(2+sin(10*Pi*i/15+4*Z[i]), i=1..5)]):

BarChart([A, B, C]);

Student[VectorCalculus]

  

A new package for vector calculus is available in the Student package.

• 

The Student[VectorCalculus] package assists with the teaching and learning of the calculus of functions from Rn to Rm, where 1<m.  For studying functions from Rn to R, see Student[MultivariateCalculus].

• 

Interactive tutors are provided covering the basic concepts, and a range of commands are included that allow exploration of these and other concepts in greater depth.

• 

This package can also be used as an introduction to the more broadly based, top-level VectorCalculus package.

  

For more information, see Student[VectorCalculus].

  

Examples

with(Student[VectorCalculus]):

CrossProduct( <a, b, c>, <d, e, f> );

bfceex&plus;af+cdey&plus;aebdez

(29)

SetCoordinates(polar[r, theta]);

polarr,θ

(30)

F:=VectorField(<r^2*theta, -theta>);

Fr2θe&lowbar;r&plus;θe&lowbar;&theta;

(31)

simplify(evalVF(F, <1, Pi/2>));

π2π2

(32)

Tolerances

  

Using the Tolerances package, you can perform computations with quantities involving tolerances.

  

Examples

with(Tolerances):

a := 2 &+- 0.1;

a2.000+-0.100

(33)

b := 3 &+- 0.05;

b3.000+-0.050

(34)

a+b;

5.000+-0.150

(35)

a^b;

8.127+-1.484

(36)

sin(a);

0.905+-0.042

(37)

Typesetting

  

The Typesetting package is a command-line interface for controlling Typeset and 2-D equation Parsing options in the Standard Worksheet interface.

  

Examples

with(Typesetting):

Typeset(BesselJ(v, x));

BesselJv&comma;x

(38)

See Also

Enhanced Packages in Maple 10

Index of New Maple 10 Features