|
AudioTools Package
|
|
|
The AudioTools package provides tools for reading and writing WAVE format audio files, and performing basic audio processing operations.
|
>
|
audiofile := cat(kernelopts(datadir), "/audio/stereo.wav"):
|
>
|
aud := Read(audiofile);
|
>
|
filtered := Convolution(mono,<1,1,1,1,1,1,1,1,1,1,1,1,1,1,1>);
|
>
|
Write("filteredmono.wav",filtered);
|
|
|
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.
|
>
|
imagefile := cat(kernelopts(datadir), "/images/fjords.jpg"):
|
>
|
img := Read(imagefile);
|
>
|
gray := ToGrayscale(img);
|
>
|
sharper := Convolution(gray,<<0,-1,0>|<-1,6,-1>|<0,-1,0>>);
|
>
|
Write("sharpgray.jpg",sharper);
|
|
|
IntegrationTools Package
|
|
|
The IntegrationTools package provides a number of low-level tools for manipulating definite and indefinite integrals.
|
>
|
with(IntegrationTools):
|
>
|
v := Int(f(x), x=a..b);
|
|
|
PolynomialIdeals Package
|
|
|
The PolynomialIdeals package provides tools for computing with ideals of commutative polynomials.
|
>
|
with(PolynomialIdeals):
|
>
|
J := <x^2 + y + z - 1, x + y^2 + z - 1, x + y + z^2 - 1>;
|
>
|
Simplify(PrimaryDecomposition(J));
|
>
|
Simplify(PrimeDecomposition(J));
|
>
|
K subset R, R subset K;
|
|
|
ProcessControl Package
|
|
|
The ProcessControl package provides various tools for statistical process control.
|
>
|
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];
|
>
|
CControlLimits(A, 100);
|
|
|
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.
|
>
|
R := PolynomialRing([x,y,z]):
|
>
|
sys := {x^2 + y + z - 1, x + y^2 + z - 1, x + y + z^2 - 1};
|
|
The Triangularize command splits this system into a union of triangular systems:
|
>
|
dec := Triangularize(sys, R):
|
>
|
map(Equations, dec, R);
|
|
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 :
|
>
|
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]]);
|
|
The ideal generated by the algebraic relations in is reducible. The MatrixInverse command detects that is not invertible modulo . 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);
|
|
Using the Equations command, the generators for a specific component can be displayed:
|
>
|
res[1,1,1],Equations(res[1,1,2],R);
|
|
|
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.
|
>
|
X:= RandomVariable(Poisson(lambda)):
|
>
|
ProbabilityFunction(X, 2);
|
>
|
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)]):
|
|
|
Student[VectorCalculus]
|
|
|
A new package for vector calculus is available in the Student package.
|
•
|
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.
|
>
|
with(Student[VectorCalculus]):
|
>
|
CrossProduct( <a, b, c>, <d, e, f> );
|
>
|
SetCoordinates(polar[r, theta]);
|
>
|
F:=VectorField(<r^2*theta, -theta>);
|
>
|
simplify(evalVF(F, <1, Pi/2>));
|
|
|
Tolerances
|
|
|
Using the Tolerances package, you can perform computations with quantities involving tolerances.
|
|
|
Typesetting
|
|
|
The Typesetting package is a command-line interface for controlling Typeset and 2-D equation Parsing options in the Standard Worksheet interface.
|
>
|
Typeset(BesselJ(v, x));
|
|
|
|