New and Enhanced Packages in Maple 7

Many new packages have been added to Maple 7. In addition, many existing packages have been enhanced.


New Packages



The CurveFitting Package (CurveFitting)



The CurveFitting package contains functions to fit various types of curves through given data points. The functions in this package allow the data points to be provided in several different formats. Some of the functions replace older Maple functions which are now obsolete, while others, such as CurveFitting[BSplineCurve], provide new functionality.



The ExternalCalling Package (ExternalCalling)



This new package provides a convenient interface to Maple's existing External Calling mechanism.



The LinearFunctionalSystems Package (LinearFunctionalSystems)



The package implements direct methods for solving linear functional systems (differential, difference, qdifference) with polynomial coefficients. The direct methods are based on constructing the corresponding matrix recurrence for the coefficients of the solution to be found (similar to some known algorithms for the scalar case). The main functionalities include:

1.

Find polynomial solutions of the linear functional (namely, differential, difference, and qdifference) systems of equations with polynomial coefficients.

2.

Find rational solutions of the linear functional systems of equations with polynomial coefficients.

3.

Find formal power series solutions of the linear functional systems of equations with polynomial coefficients.

4.

Find the universal denominator of the rational solutions of the linear functional systems of equations with polynomial coefficients (this problem is auxiliary for the second item).

5.

Transform matrix recurrence system into an equivalent system with nonsingular leading or trailing matrix.

>

sys := [
diff(y1(x), x)  y2(x),
diff(y2(x), x)  y3(x)  y4(x),
diff(y3(x), x)  y5(x),
diff(y4(x), x)  2*y1(x)  2*x*y2(x)  y5(x),
diff(y5(x), x)  x^2*y1(x)  2*x*y3(x)  y6(x),
diff(y6(x), x)  x^2*y2(x) + 2*y3(x)
];

${\mathrm{sys}}{\u2254}\left[\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{\mathrm{y1}}{}\left({x}\right){}{\mathrm{y2}}{}\left({x}\right){\,}\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{\mathrm{y2}}{}\left({x}\right){}{\mathrm{y3}}{}\left({x}\right){}{\mathrm{y4}}{}\left({x}\right){\,}\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{\mathrm{y3}}{}\left({x}\right){}{\mathrm{y5}}{}\left({x}\right){\,}\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{\mathrm{y4}}{}\left({x}\right){}{2}{}{\mathrm{y1}}{}\left({x}\right){}{2}{}{x}{}{\mathrm{y2}}{}\left({x}\right){}{\mathrm{y5}}{}\left({x}\right){\,}\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{\mathrm{y5}}{}\left({x}\right){}{{x}}^{{2}}{}{\mathrm{y1}}{}\left({x}\right){}{2}{}{x}{}{\mathrm{y3}}{}\left({x}\right){}{\mathrm{y6}}{}\left({x}\right){\,}\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{\mathrm{y6}}{}\left({x}\right){}{{x}}^{{2}}{}{\mathrm{y2}}{}\left({x}\right){+}{2}{}{\mathrm{y3}}{}\left({x}\right)\right]$
 (1) 
>

vars := [y1(x), y2(x), y3(x), y4(x), y5(x), y6(x)];

${\mathrm{vars}}{\u2254}\left[{\mathrm{y1}}{}\left({x}\right){\,}{\mathrm{y2}}{}\left({x}\right){\,}{\mathrm{y3}}{}\left({x}\right){\,}{\mathrm{y4}}{}\left({x}\right){\,}{\mathrm{y5}}{}\left({x}\right){\,}{\mathrm{y6}}{}\left({x}\right)\right]$
 (2) 

Find polynomial solution:

>

LinearFunctionalSystems[PolynomialSolution](sys, vars);

$\left[{x}{}{{\mathrm{\_c}}}_{{3}}{+}{{\mathrm{\_c}}}_{{2}}{\,}{{\mathrm{\_c}}}_{{3}}{\,}{}{{x}}^{{2}}{}{{\mathrm{\_c}}}_{{3}}{}{x}{}{{\mathrm{\_c}}}_{{2}}{+}{{\mathrm{\_c}}}_{{1}}{\,}{{x}}^{{2}}{}{{\mathrm{\_c}}}_{{3}}{+}{x}{}{{\mathrm{\_c}}}_{{2}}{}{{\mathrm{\_c}}}_{{1}}{\,}{}{2}{}{x}{}{{\mathrm{\_c}}}_{{3}}{}{{\mathrm{\_c}}}_{{2}}{\,}{{x}}^{{3}}{}{{\mathrm{\_c}}}_{{3}}{+}{{x}}^{{2}}{}{{\mathrm{\_c}}}_{{2}}{}{2}{}{x}{}{{\mathrm{\_c}}}_{{1}}{}{2}{}{{\mathrm{\_c}}}_{{3}}\right]$
 (3) 
>

sys := [
(x+3)*(x + 6)*(x + 1)*(x + 5)*x*y1(x + 1) 
(x  1)*(x + 2)*(x + 3)*(x + 6)*(x + 1)*y1(x) 
x*(x^6 + 11*x^5 + 41*x^4 + 65*x^3 + 50*x^236)*y2(x) +
6*(x + 2)*(x + 3)*(x + 6)*(x + 1)*x*y4(x),
(x + 6)*(x + 2)*y2(x + 1)  x^2*y2(x),
(x + 6)*(x + 1)*(x + 5)*x*y3(x + 1) +
(x + 6)*(x + 1)*(x  1)*y1(x)  x*(x^5 + 7*x^4 + 11*x^3 +
4*x^2  5*x + 6)*y2(x)  y3(x)*(x + 6)*(x + 1)*(x + 5)*x +
(x + 6)*(x + 1)*x*3*(x + 3)*y4(x),
(x + 6)*y4(x + 1) + x^2*y2(x)  (x + 6)*y4(x)
];

${\mathrm{sys}}{\u2254}\left[\left({x}{+}{3}\right){}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}\left({x}{+}{5}\right){}{x}{}{\mathrm{y1}}{}\left({x}{+}{1}\right){}\left({x}{}{1}\right){}\left({x}{+}{2}\right){}\left({x}{+}{3}\right){}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}{\mathrm{y1}}{}\left({x}\right){}{x}{}\left({{x}}^{{6}}{+}{11}{}{{x}}^{{5}}{+}{41}{}{{x}}^{{4}}{+}{65}{}{{x}}^{{3}}{+}{50}{}{{x}}^{{2}}{}{36}\right){}{\mathrm{y2}}{}\left({x}\right){+}{6}{}\left({x}{+}{2}\right){}\left({x}{+}{3}\right){}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}{x}{}{\mathrm{y4}}{}\left({x}\right){\,}\left({x}{+}{6}\right){}\left({x}{+}{2}\right){}{\mathrm{y2}}{}\left({x}{+}{1}\right){}{{x}}^{{2}}{}{\mathrm{y2}}{}\left({x}\right){\,}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}\left({x}{+}{5}\right){}{x}{}{\mathrm{y3}}{}\left({x}{+}{1}\right){+}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}\left({x}{}{1}\right){}{\mathrm{y1}}{}\left({x}\right){}{x}{}\left({{x}}^{{5}}{+}{7}{}{{x}}^{{4}}{+}{11}{}{{x}}^{{3}}{+}{4}{}{{x}}^{{2}}{}{5}{}{x}{+}{6}\right){}{\mathrm{y2}}{}\left({x}\right){}{\mathrm{y3}}{}\left({x}\right){}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}\left({x}{+}{5}\right){}{x}{+}{3}{}\left({x}{+}{6}\right){}\left({x}{+}{1}\right){}{x}{}\left({x}{+}{3}\right){}{\mathrm{y4}}{}\left({x}\right){\,}\left({x}{+}{6}\right){}{\mathrm{y4}}{}\left({x}{+}{1}\right){+}{{x}}^{{2}}{}{\mathrm{y2}}{}\left({x}\right){}\left({x}{+}{6}\right){}{\mathrm{y4}}{}\left({x}\right)\right]$
 (4) 
>

vars := [y1(x), y2(x), y3(x), y4(x)];

${\mathrm{vars}}{\u2254}\left[{\mathrm{y1}}{}\left({x}\right){\,}{\mathrm{y2}}{}\left({x}\right){\,}{\mathrm{y3}}{}\left({x}\right){\,}{\mathrm{y4}}{}\left({x}\right)\right]$
 (5) 
>

LinearFunctionalSystems[RationalSolution](sys, vars);

$\left[\frac{{{\mathrm{\_c}}}_{{1}}}{\left({x}{}{1}\right){}\left({x}{+}{2}\right){}\left({x}{+}{4}\right){}\left({x}{+}{3}\right)}{\,}{0}{\,}\frac{{20}{}{{x}}^{{5}}{}{{\mathrm{\_c}}}_{{2}}{+}{200}{}{{x}}^{{4}}{}{{\mathrm{\_c}}}_{{2}}{+}{700}{}{{x}}^{{3}}{}{{\mathrm{\_c}}}_{{2}}{+}{1000}{}{{x}}^{{2}}{}{{\mathrm{\_c}}}_{{2}}{+}{5}{}{x}{}{{\mathrm{\_c}}}_{{1}}{+}{480}{}{x}{}{{\mathrm{\_c}}}_{{2}}{+}{4}{}{{\mathrm{\_c}}}_{{1}}}{{20}{}{x}{}\left({x}{+}{1}\right){}\left({x}{+}{2}\right){}\left({x}{+}{4}\right){}\left({x}{+}{3}\right)}{\,}{0}\right]$
 (6) 


The LinearOperators Package (LinearOperators)



This package provides tools to work with linear functional equations. The main functionalities of the package include:

1.

For a given linear equation with d'Alembertian right hand side, find a d'Alembertian solution if it exists.

2.

For a given d'Alembertian term, find an operator which annihilates the term.

3.

For a given d'Alembertian term, find the minimal annihilator of the term.

4.

For two given operators, find their greatest common right divisor in the factored form.

5.

For a given operator L, find the annihilator of the term g which is primitive for the solution f of Ly=0 and the operator K which convert f to $g\:K\=g$ (if they exist). This is called ``accurate integration.''


This set of tools can be used, for example,

6.

to solve linear differential equations,

7.

to expand a function as a power series and subsequently to investigate the expansion,

8.

to solve inhomogeneous linear functional equations,

10.

to recognize the equivalence of two given functions.


D'Alembertian solution (differential case):

>

ode := x^2*diff(diff(y(x),x),x)+x*diff(y(x),x)+(x^23)*y(x);

${\mathrm{ode}}{\u2254}{{x}}^{{2}}{}\left(\frac{{{\ⅆ}}^{{2}}}{{\ⅆ}{{x}}^{{2}}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right){+}{x}{}\left(\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right){+}\left({{x}}^{{2}}{}{3}\right){}{y}{}\left({x}\right)$
 (7) 
>

b := 2*x/Pi^(1/2)*(1+2*x^2)*exp(x^2)+(x^23)*erf(x);

${b}{\u2254}{}\frac{{2}{}{x}{}\left({2}{}{{x}}^{{2}}{}{1}\right){}{{\ⅇ}}^{{}{{x}}^{{2}}}}{\sqrt{{\mathrm{\pi}}}}{+}\left({{x}}^{{2}}{}{3}\right){}{\mathrm{erf}}{}\left({x}\right)$
 (8) 
>

L:=LinearOperators[DEToOrePoly](ode,y(x),x);

${L}{\u2254}{\mathrm{OrePoly}}{}\left({{x}}^{{2}}{}{3}{\,}{x}{\,}{{x}}^{{2}}\right)$
 (9) 
>

normal(LinearOperators[dAlembertianSolver](L,b,x,'differential'));

${\mathrm{erf}}{}\left({x}\right)$
 (10) 

Accurate integration (difference case):

>

sn := binomial(2*n,n)/4^n;

${\mathrm{sn}}{\u2254}\frac{\left(\genfrac{}{}{0ex}{}{{2}{}{n}}{{n}}\right)}{{{4}}^{{n}}}$
 (11) 
>

L := LinearOperators[FactoredAnnihilator](sn,n,'shift');

${L}{\u2254}{\mathrm{FactoredOrePoly}}{}\left(\left[{}\frac{{2}{}{n}{+}{1}}{{2}{}\left({n}{+}{1}\right)}{\,}{1}\right]\right)$
 (12) 
>

ML := LinearOperators[MinimalAnnihilator](L,expr,n,'shift');

${\mathrm{ML}}{\u2254}{\mathrm{OrePoly}}{}\left({}\frac{{2}{}{n}{+}{1}}{{2}{}\left({n}{+}{1}\right)}{\,}{1}\right)$
 (13) 
>

(Lt,r) := LinearOperators[IntegrateSols](ML,n,'shift');

${\mathrm{Lt}}{,}{r}{\u2254}{\mathrm{OrePoly}}{}\left({}\frac{{2}{}{n}{+}{1}}{{2}{}{n}}{\,}{1}\right){,}{\mathrm{OrePoly}}{}\left({2}{}{n}\right)$
 (14) 

Hence, a primitive of sn is

>

Sum(sn,n) = LinearOperators[Apply](r,sn,n,'shift');

${\textstyle {\sum}}_{{n}}{}\frac{\left(\genfrac{}{}{0ex}{}{{2}{}{n}}{{n}}\right)}{{{4}}^{{n}}}{=}\frac{{2}{}{\mathrm{\Gamma}}{}\left(\frac{{1}}{{2}}{+}{n}\right)}{\sqrt{{\mathrm{\pi}}}{}{\mathrm{\Gamma}}{}\left({n}\right)}$
 (15) 


The ListTools Package (ListTools)



The new ListTools package contains functions that perform fundamental operations on list objects, useful for constructions or manipulations.


The ListTools functions have been written to provide the fastest possible implementations using the Maple library. Some of the functions accept optional arguments, but their calling sequences are fixed.

${L}{\u2254}\left[{x}{\,}{y}{\,}{z}\right]$
 (16) 
$\left[{z}{\,}{y}{\,}{x}\right]$
 (17) 
$\left[{x}{\,}{a}{\,}{y}{\,}{a}{\,}{z}{\,}{a}\right]$
 (18) 


The MathML Package (MathML)



This package supports the MathML 2.0 standard (http://www.w3.org/TR/MathML2/). It imports or exports Maple expressions as either Presentation, Content, or Parallel mode MathML text. The package provides a programmer's API to the new facilities. Moreover, these facilities are used by Maple to implement the MathML functionality available in the Graphical User Interface (GUI).


MathML, as a standard, is still in its early stages. It will take time before applications fully comply and for it to fulfill its true potential for offering seamless Web connectivity and operatability between applications. With Maple 7, we have tried our best to provide an implementation that complies to the standard as it existed at the time of development, and to provide the necessary tools to help you benefit from this existing standard immediately. For the latest information on MathML, and to get useful applets and other components to take maximum advantage of the standard, visit http://www.maplesoft.com/standards/MathML/info.html. We will maintain this page with all of the latest developments.



The OrthogonalSeries Package (OrthogonalSeries)



This package contains functions to manipulate series expansions in terms of classical orthogonal polynomials or, more generally, hypergeometric polynomials. More precisely, it can manipulate series expansions in terms of continuous, discrete, and qdiscrete hypergeometric polynomials. It can handle both univariate and multivariate series, and the expansion basis can differ for each variable. It can perform all manipulations on the truncated forms of the series, and some manipulations can also be done on the infinite series.


At present, the manipulations implemented include addition, multiplication (series, polynomial, and scalar), evaluation, as well as truncation, degree, derivative, coefficient extraction, apply, create, and conversion to Sum form. For more details, see the OrthogonalSeries page.



The RandomTools Package (RandomTools)



The new RandomTools package contains a function Generate which creates pseudorandom objects of specified types, bounds, and other properties. A specification of such properties is called a flavor (similar to a type or verification), and numerous flavors have been predefined. Other functions are available for creating new flavors.

>

Generate(integer*identical(x) + rational);

${}{69809698700}{}{x}{+}\frac{{117603601272}}{{249999999997}}$
 (19) 
>

seq(Generate(1/nonzeroint(range=3..3)), i=1..10);

${1}{,}{}\frac{{1}}{{3}}{,}\frac{{1}}{{2}}{,}{1}{,}\frac{{1}}{{2}}{,}{}\frac{{1}}{{2}}{,}{1}{,}{}\frac{{1}}{{3}}{,}\frac{{1}}{{2}}{,}{}\frac{{1}}{{2}}$
 (20) 


The RationalNormalForms Package (RationalNormalForms)



Multiplicative normal forms of rational functions which exhibit the shift structure of the factors are useful in the design of algorithms for summation and solution of difference equations in closed form. The Polynomial Normal Form is used in algorithms for hypergeometric summation, finding hypergeometric solutions of difference equations, and rational summation. The Rational Normal Forms are used to construct minimal representations and to solve the decomposition problem for indefinite sums of hypergeometric terms.


The main functionalities of the package include:

1.

Construct the polynomial normal form of a rational functions.

2.

Construct the rational canonical forms of a rational functions.

3.

Construct the minimal representations of a hypergeometric terms.


Minimal representation of hypergeometric terms:

>

F := (n^21)*(3*n+1)!/((n+3)!*(2*n+7)!);

${F}{\u2254}\frac{\left({{n}}^{{2}}{}{1}\right){}\left({3}{}{n}{+}{1}\right){!}}{\left({n}{+}{3}\right){!}{}\left({2}{}{n}{+}{7}\right){!}}$
 (21) 
>

RationalNormalForms:MinimalRepresentation[1](F,n,k);

$\frac{{\left(\frac{{27}}{{4}}\right)}^{{n}}{}\left({n}{}{1}\right){}\left({\textstyle {\prod}}_{{k}{=}{2}}^{{n}{}{1}}{}\frac{\left({k}{+}\frac{{2}}{{3}}\right){}\left({k}{+}\frac{{4}}{{3}}\right)}{\left({k}{+}{4}\right){}\left({k}{+}\frac{{9}}{{2}}\right)}\right)}{{721710}{}\left({n}{+}{3}\right){}\left({n}{+}{2}\right)}$
 (22) 
>

RationalNormalForms:MinimalRepresentation[2](F,n,k);

$\frac{{4}{}{\left(\frac{{27}}{{4}}\right)}^{{n}}{}\left({\textstyle {\prod}}_{{k}{=}{2}}^{{n}{}{1}}{}\frac{\left({k}{+}\frac{{2}}{{3}}\right){}\left({k}{+}\frac{{4}}{{3}}\right)}{\left({k}{+}\frac{{9}}{{2}}\right){}\left({k}{}{1}\right)}\right)}{{24057}{}{\left({n}{+}{3}\right)}^{{2}}{}{\left({n}{+}{2}\right)}^{{2}}{}\left({n}{+}{1}\right){}{n}}$
 (23) 


The RealDomain Package (RealDomain)



The RealDomain package provides an environment in which the user is able to work entirely with real numbers. This package provides special forms of the usual basic functions and commands of Maple. They attempt to avoid returning complex numbers as answers.

${\mathrm{undefined}}$
 (25) 

This package tries to accommodate users, such as precalculus students, who are not yet familiar with complex numbers, and would prefer answers from the real number system to be returned when possible. Whenever the only correct answer is a complex number, the value undefined (or Float(undefined) if the answer is approximate) is returned instead.



The Sockets Package (Sockets)



Use the Sockets package to write Intranet and Internet applications in Maple. Using this package, your Maple programs can communicate with any host anywhere in the world via TCP/IP networking. The package provides facilities with which you can write networked clients that access existing servers, or your own servers, so that you can establish bidirectional communication between Maple sessions running on different machines on a common network.



The SolveTools Package (SolveTools)



The SolveTools package provides a few routines that are used at the heart of Maple's solve command. These allow an expert user more control over how a solution is found.


The package includes routines for comparing relative complexities of expressions, and choosing the simplest linear basis for a collection of expressions. Also, rational coefficients can be found for attempts at rewriting expressions as linear combinations of particular forms.

>

SolveTools:RationalCoefficients( 2*a+3*b,[4*(ab),5*a+3*b]);

$\left[{}\frac{{9}}{{32}}{\,}\frac{{5}}{{8}}\right]$
 (26) 


The StringTools Package (StringTools)



The StringTools package provides a number of highly efficient routines for manipulating text in the form of Maple strings. Also provided are some facilities for working with regular expressions.

>

msg := Capitalize( "text processing is fun" );

${\mathrm{msg}}{\u2254}{''Text\; Processing\; Is\; Fun''}$
 (27) 
>

RegSub( "(^.*)Fun", msg, "\\1Fast" );

${''Text\; Processing\; Is\; Fast''}$
 (28) 

The package comprises a carefully designed set of efficient routines that can be easily and effectively composed to build efficient and elegant text processing tools. While not a primary domain of application for Maple, the increasing demands of communication with external applications and processes makes the ability to manipulate text efficiently more important. This package therefore contributes to the overall themes of improved efficiency in general, and of connectivity in particular.



The Units Package (Units)



The package implements unit conversions and allows the user to augment Maple's already significant knowledge of known units and dimensions.

>

convert( 32, units, ft, m );

$\frac{{6096}}{{625}}$
 (29) 
>

convert( 1.0, units, cm/min, furlongs/fortnight );

>

convert( 32.5, temperature, degF, K );

>

convert( N*m, dimensions );

>

convert( N*m/K, dimensions );

${\mathrm{heat\_capacity}}$
 (33) 
>

convert( [kg, lb, oz], conversion_table, output=grid );

$\left[\begin{array}{cccccc}{}& {}& {\mathrm{To:}}& {\mathrm{kg}}& {\mathrm{lb}}& {\mathrm{oz}}\\ {\mathrm{Unit\; Name}}& {\mathrm{Symbol}}& {}& {}& {}& {}\\ {\mathrm{kilograms}}& {\mathrm{kg}}& {}& {1}& \frac{{100000000}}{{45359237}}& \frac{{1600000000}}{{45359237}}\\ {\mathrm{pounds}}& {\mathrm{lb}}& {}& \frac{{45359237}}{{100000000}}& {1}& {16}\\ {\mathrm{ounces}}& {\mathrm{oz}}& {}& \frac{{45359237}}{{1600000000}}& \frac{{1}}{{16}}& {1}\end{array}\right]$
 (34) 

This package contains a number of subpackages:


The Standard Units environment is a package which, when loaded using with, creates an environment in which unit calculations can be done by specifying units.

>

3*s^4*Unit(m/s) + 4*s*Unit(km/h);

$\left({3}{}{{s}}^{{4}}{+}\frac{{10}}{{9}}{}{s}\right){}\u27e6\frac{{m}}{{s}}\u27e7$
 (35) 
>

3*Unit(lb)*diff((35), s*Unit(s));

$\left(\frac{{408233133}{}{{s}}^{{3}}}{{25000000}}{+}\frac{{45359237}}{{30000000}}\right){}\u27e6{N}\u27e7$
 (36) 

The Natural Units environment is like the Standard Units environment, but units are implicitly used.

$\frac{{2637}}{{625}}{}\u27e6{m}\u27e7$
 (37) 
$\frac{{2637}}{{625}}{}\u27e6\frac{{m}}{{s}}\u27e7$
 (38) 
>

convert( (38), system, FPS );

$\frac{{1758}}{{127}}{}\u27e6\frac{{\mathrm{ft}}}{{s}}\u27e7$
 (39) 

The Unit Converter package allows access to those units and dimensions which appear in the worksheet's Unit Converter.


The natural environment interprets all symbols, names, or functions which could be interpreted as units as such, including many single letter symbols including as $a,b,c,d,e,f,g,h,i,l,m,s,t,u,A,B,C,\mathrm{D},F,G,H,J,L,M,N,R,S,T,V,W$. In order to have only those symbols which are interpreted as units within the current system of units (by default SI), use the strict option to UseSystem routine.

>

2.0*Bi*AU*d + D; # biot astronomical units days + debyes

${2.585051206}{\times}{{10}}^{{17}}{}\u27e6{A}{}{m}{}{s}\u27e7$
 (40) 
>

km + 4*ft*m; # kilometers + 4 foot metres

>

Units[UseSystem](strict=true);

>

Bi*d*ft + D; # an expression of symbols

${\mathrm{Bi}}{}{d}{}{\mathrm{ft}}{+}{\mathrm{D}}$
 (41) 
>

km + 4*ft*m; # kilometers + '4*ft' meters

$\left({1000}{+}{4}{}{\mathrm{ft}}\right){}\u27e6{m}\u27e7$
 (42) 

Strictly using the SI system results in only m, g, s, A, K, mol, cd, and their associated multiples (e.g., km, ms) to be interpreted as units. You can still use the Unit routine to force a symbol to be recognized as a unit, though:

$\frac{{625000762}}{{625}}{}\u27e6{{m}}^{{2}}\u27e7$
 (43) 


The XMLTools Package (XMLTools)



The XMLTools package provides access to structured data represented as XML through a Maple interface. The package provides a (nonvalidating) parser, formatter, and a number of simple utilities that define an XML document as an abstract data type.




Enhanced and/or Renamed Packages



The algcurves Package (algcurves)



This package includes two new functions: implicitize and algfun_series_sol. implicitize computes an implicit polynomial equation of a curve surface or hypersurface given by parametric equations and can deal with a wide variety of problems. For a given algebraic equation, algfun_series_sol finds the Puiseux expansions with ``nice'' coefficients (hypergeometric, rational, polynomial, msparse, and msparsehypergeometric cases) and determines candidate points for all these cases.

>

algcurves[algfun_series_sol](x*y^212*yy^2,x,y,'coeffs'='polynomial');

$\left\{\left[{\mathrm{Point}}{=}{0}{\,}\left\{{}\left({\textstyle {\sum}}_{{\mathrm{\_n}}{=}{0}}^{{\mathrm{\infty}}}{}{\left(\sqrt{{x}}\right)}^{{\mathrm{\_n}}}\right)\right\}\right]\right\}$
 (44) 
>

algcurves[algfun_series_sol](x^112*x^8+x^5y^2*x^6+2*y^2*x^3y^2+2*y*x^32*y1,
x=0,y,'coeffs'='mhypergeom','msparse_order'=6);

${\left\{{}{1}{}{{x}}^{\raisebox{1ex}{${5}$}\!\left/ \!\raisebox{1ex}{${2}$}\right.}{}{{x}}^{{3}}{}{{x}}^{{6}}{}{{x}}^{{9}}{}\left({\textstyle {\sum}}_{{\mathrm{\_n}}{=}{4}}^{{\mathrm{\infty}}}{}{\left(\sqrt{{x}}\right)}^{{6}{}{\mathrm{\_n}}}\right)\right\}}}$
 (45) 


The codegen Package (codegen)



The codegen[MathML] function has been added to provide translation of Maple expressions to MathML text. Also, the codegen[C] function allows a new mode option to specify whether single precision or double precision math function names are generated.



The DEtools (DEtools) and PDEtools (PDEtools) Packages


•

Maple 7 includes enhancements and new tool commands for differential equations. With the new features of Maple's dsolve and pdsolve, Maple can now successfully compute, in varied situations, closed form solutions to systems of partial differential equations (PDEs). These systems could also include ordinary differential equations (ODEs), inequations, and algebraic nondifferential equations as constraints.

•

Also, system of equations containing nonpolynomial objects are now tackled using techniques for polynomial ones (see PDEtools[dpolyform]) and the solutions returned optionally include the singular solutions of the system. This feature permits a detailed analysis of the parameters entering a given problem, in order to find the particular values of them which lead to "different" singular solutions not included in the general solution.


Functions for manipulating with differential equations:

•

A new command, PDEtools[dpolyform], receives a system of equations (ODEs, PDEs, and may also include nondifferential equations), typically containing nonpolynomial objects. It returns an equivalent system of equations such that: 1) the returned system if fully polynomial in the unknowns and its derivatives; 2) any solution of the original nonpolynomial system is also a solution of the polynomial system. This command has a number of potential applications in it that permits tackling nonpolynomial systems using techniques for polynomial ones.

•

The PDEtools[casesplit] command can now perform differential elimination, triangularization, and uncoupling of nonpolynomial systems of differential equations, in the presence of much varied nonpolynomial objects.

•

A new command, DEtools[hyperode], will return the Ordinary Differential Equation (ODE) satisfied by the product of any function and a given hypergeometric or generalized hypergeometric (MeijerG) function. The ODE returned can optionally admit additional given solutions. This command is useful for studying hypergeometric functions and their relations, in connection with the properties their differential equations have, as well as to study formal solutions to linear ODEs in general.

•

The capabilities of the conversion facility for ODEs (see convert,ODEs) have been extended. It is now possible to convert to normal form ODEs of type: linear (arbitrary order), Riccati and Abel. For Abel ODEs there is a new conversion to "Rational Normal Form". These tools are useful to study the solving properties of these relevant classes of equations. Also a conversion applicable to ODEs in general, called here 'y_x', to switch the roles between the dependent (y) and independent (x) variables, was implemented. This is a useful conversion tool in different frameworks since this transformation enters many standard and alternative interactive solving approaches.


Functions for handling ODEs in the framework of the Integrating Factors and Lie symmetry approaches

•

Taking advantage of the new PDE system solver available in Maple 7, the DEtools[symgen] command now accepts the optional argument 'way = formal', meaning: compute the ODE symmetries by formally triangularizing and solving the underlying partial differential equations system. In this way, when symgen is successful, it directly returns the infinitesimals generating a multiparameter Lie group (when such a group exists). This new branch of the program is automatically invoked by Maple's dsolve whenever the optional argument 'Lie' is given to it (see dsolve,Lie).

•

A new command, DEtools[reduce_order], receives an ODE linear or nonlinear, and a sequence of symmetries admitted by this ODE, and returns a reduction of the differential order of the ODE using these symmetries. When the amount of symmetries is equal to the differential order this command actually returns the solution in parametric form, thus providing a useful alternative for nonlinear problems, where the solution typically involves RootOfs. Also, since reduce_order can be used with linear nonhomogeneous ODEs, where any ODE solution S(x) to the homogeneous part is also an ODE symmetry of the form [0, S(x)], this command provides an alternative way to constructing solutions for nonhomogeneous linear equations. In both cases, reduce_order can be used with pedagogical purposes by taking advantage of its optional argument 'in_sequence', which allows for displaying, one after the other, the whole sequence of reductions of order involved in the solving of an ODE using its symmetries.

•

Taking advantage of the new PDE system solver available in Maple 7, the DEtools[equinv] command now accepts the optional argument 'formal = true', meaning: compute the ODE invariant under possibly many given symmetries by formally triangularizing and solving the underlying system of partial differential equations. This new branch of the program permits solving varied problems not solved in previous Maple releases.


Functions for constructing closedform solutions

•

Two new functions have been added under this title: hypergeomsols and MeijerGsols. The former will attempt to find hypergeometric solutions and the latter will attempt generalized hypergeometric (i.e. MeijerG function) solutions to given linear ODEs with rational coefficients.

•

The Maple implementation of Kovacic's algorithm for linear ODEs was entirely rewritten. The new implementation is an order of magnitude faster and can reliably tell whether a given second order linear ODE, with rational coefficients (may include symbolic parameters) admits Liouvillian solutions.


Functions for simplifying differential systems using integrability conditions or performing differential elimination


Many enhancements have been made to the Rif, subpackage of DEtools.

•

The new command maxdimsystems can be used for determining the "maximum dimensional" subsystems of a given system of differential equations.

•

The caseplot command (for plotting the tree corresponding to the splitting into cases of a DE system) can now display information related to the case splitting performed by rifsimp, and the initial data of the computed cases.

•

The initialdata command can now be given a case from the output of a rifsimp computation, and will provide in the output any additional constraints that the data must satisfy in terms of the computed initial data. These additional constraints are the nonlinear relations and inequations (equations of the form $\mathrm{expr}\ne 0$) that must hold for the case.

•

The main rifsimp command accepts a new optional argument indicating that some functions or constants (not the true unknowns of the problem) should be considered "arbitrary", and to avoid splitting into cases dependent upon their values. This results in a significant decrease in the running time of the algorithm when arbitrary functions or constants are present.

•

Additional functionality is available with options to control the form of the output solution, the manner in which case splitting is performed, detection of empty cases, nonlinear equation processing, and time spent investigating cases (see rifsimp[options], rifsimp[adv_options], and rifsimp[cases]).

•

A new feature was added to rifsimp, providing the ability to save partial computations in order to examine them manually afterwards (see also rifread). This is most useful for large and/or complex problems that require excessive resources to complete.

•

Additionally, rifsimp has been enhanced so that it revises the case splitting tree to remove the effect of any inconsistent cases on the results. This has the benefit of producing a more compact set of cases, and removal of pivots that have been discovered to always hold true.

•

The whole package has been revised and optimized to perform faster for both linear and nonlinear problems. New nonlinear equation handling code has enabled rifsimp to tackle many significant problems that were too difficult for prior versions of the package (See also rifsimp[nonlinear]).



The Groebner Package (Groebner)



Two new functions have been added, Groebner[SetBasis] and Groebner[MulMatrix], to compute respectively a "normal set" from a zero dimensional Groebner basis, and the corresponding multiplication matrix.



The LinearAlgebra Package (LinearAlgebra)



This package includes a large number of enhancements that lead to faster computation, reduced storage requirements, and greater ease of use.

•

Optimized Routines for Basic Operations: Significant improvements to the speed of hardware floatingpoint computations in the LinearAlgebra package have been made for supported UNIX platforms. This is due to new linking of the external NAG and CLAPACK libraries with the optimized ATLAS library. These optimizations parallel the high performance present in Maple 6 for the Microsoft Windows platforms obtained from linking with Intel's Math Kernel library.

•

Enhanced Support for Band and Packed Triangular Matrices: There is added support for fast matrix operations involving floatingpoint band and packed triangular matrices. This support, provided through external routines specially designed for such matrix structures, allows the operations to be done with a minimum amount of storage. See Shapes and Storage Modes for Matrices and Vectors for more information.

•

Enhanced Support for Sparse Matrices: There is added support for efficient floatingpoint sparse matrix arithmetic. In addition, the LinearSolve function now allows the option of choosing an iterative solver for sparse symmetric linear systems. Conjugate Gradient and SYMMLQ methods are available, along with various types of incomplete factorization preconditioners.

•

Extended Parameter Domain: The LinearAlgebra routines now allow the user to provide, as input values, algebraic expressions that simplify to the parameter types expected. An example is provided below:

>

expr := <<a,b><c,d>>  x * IdentityMatrix(2);

${\mathrm{expr}}{\u2254}\left[\begin{array}{cc}{a}{}{x}& {c}\\ {b}& {d}{}{x}\end{array}\right]$
 (46) 
${a}{}{d}{}{a}{}{x}{}{c}{}{b}{}{x}{}{d}{+}{{x}}^{{2}}$
 (47) 
•

Automatic Setting of Computation Environment: The UseHardwareFloats environment variable is now set to the default value deduced. This setting tells Maple to deduce the computation environment (hardware or software) from the current setting of the Digits environment variable.

•

Additional Improvements: There is improved floatingpoint support for the Eigenvectors, Transpose, and HermitianTranspose functions. The Eigenvectors function now uses a "divideandconquer" scheme for nongeneralized realsymmetric and complexhermitian problems. In addition, many improvements have been made to the LeastSquares function, including a more robust SVD scheme for rankdeficient problems, the ability to handle multiple righthand sides, and more efficient calculation of optimized solutions in the rankdeficient case.



The PolynomialTools Package (PolynomialTools)



The PolynomialTools is a collection of tools for working with polynomial objects in Maple, and has superseded the polytools package.

>

with( PolynomialTools ):

>

Sort( [x^3,x^2,x+1,x+5], x );

$\left[{1}{+}{x}{\,}{x}{+}{5}{\,}{{x}}^{{2}}{\,}{{x}}^{{3}}\right]$
 (48) 
>

Shorten( 3*x^3+18*x+14, x );



The Slode Package (Slode)



This package includes two new functions: mhypergeom_formal_sol and series_by_leastsquare. The function mhypergeom_formal_sol constructs formal solutions with mhypergeometric series of a homogeneous linear differential equation with polynomial coefficients. The function series_by_leastsquare constructs the linear subspace of the given linear space of series such that the initial coefficients of those series best satisfy the given linear conditions in the leastsquares sense (at a given ordinary or singular point).

>

ode := diff(y(x),x,x)=(6*x^3+1)*diff(y(x),x)/x^42*y(x)*(3*x^3+2)/x^5;

${\mathrm{ode}}{\u2254}\frac{{{\ⅆ}}^{{2}}}{{\ⅆ}{{x}}^{{2}}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right){=}{}\frac{\left({6}{}{{x}}^{{3}}{+}{1}\right){}\left(\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right)}{{{x}}^{{4}}}{}\frac{{2}{}{y}{}\left({x}\right){}\left({3}{}{{x}}^{{3}}{+}{2}\right)}{{{x}}^{{5}}}$
 (50) 
>

Slode[mhypergeom_formal_sol](ode,y(x));

$\frac{{{\mathrm{\_C}}}_{{0}}{}\sqrt{{3}}{}\left({\textstyle {\sum}}_{{\mathrm{\_n}}{=}{0}}^{{\mathrm{\infty}}}{}\frac{{\mathrm{\Gamma}}{}\left({\mathrm{\_n}}{}\frac{{1}}{{3}}\right){}{\mathrm{\Gamma}}{}\left({\mathrm{\_n}}{}\frac{{2}}{{3}}\right){}{\left({\mathrm{3}}\right)}^{{\mathrm{\_n}}}{}{{x}}^{{3}{}{\mathrm{\_n}}}}{{\mathrm{\Gamma}}{}\left({\mathrm{\_n}}{+}{1}\right)}\right)}{{9}{}{{x}}^{{4}}{}{\mathrm{\pi}}}{+}\frac{{9}{}{{\ⅇ}}^{\frac{{1}}{{3}{}{{x}}^{{3}}}}{}{{x}}^{{2}}{}{{\mathrm{\_C}}}_{{1}}{}\sqrt{{3}}{}\left({\textstyle {\sum}}_{{\mathrm{\_n}}{=}{0}}^{{\mathrm{\infty}}}{}\frac{{\mathrm{\Gamma}}{}\left({\mathrm{\_n}}{+}\frac{{5}}{{3}}\right){}{\mathrm{\Gamma}}{}\left({\mathrm{\_n}}{+}\frac{{4}}{{3}}\right){}{{3}}^{{\mathrm{\_n}}}{}{{x}}^{{3}{}{\mathrm{\_n}}}}{{\mathrm{\Gamma}}{}\left({\mathrm{\_n}}{+}{1}\right)}\right)}{{4}{}{\mathrm{\pi}}}$
 (51) 

series_by_leastsquare via FPseries

>

ode := (x1)*diff(y(x),x$4)(x4)*diff(y(x),x$2)+diff(y(x),x)y(x)=0;

${\mathrm{ode}}{\u2254}\left({x}{}{1}\right){}\left(\frac{{{\ⅆ}}^{{4}}}{{\ⅆ}{{x}}^{{4}}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right){}\left({x}{}{4}\right){}\left(\frac{{{\ⅆ}}^{{2}}}{{\ⅆ}{{x}}^{{2}}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right)\right){+}\frac{{\ⅆ}}{{\ⅆ}{x}}\phantom{\rule[0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right){}{y}{}\left({x}\right){=}{0}$
 (52) 
>

Slode[FPseries]({ode,y(1)=a1,D(y)(1)=b1,(D@@2)(y)(1)=c1,(D@@3)(y)(1)=d1},y(x),u(n),1);

${\mathrm{FPSstruct}}{}\left(\frac{{47}{}{\mathrm{a1}}}{{49}}{+}\frac{{2}{}{\mathrm{b1}}}{{49}}{+}\frac{{6}{}{\mathrm{c1}}}{{49}}{+}\left(\frac{{2}{}{\mathrm{a1}}}{{49}}{+}\frac{{47}{}{\mathrm{b1}}}{{49}}{}\frac{{6}{}{\mathrm{c1}}}{{49}}\right){}\left({x}{}{1}\right){+}\left(\frac{{15}{}{\mathrm{a1}}}{{98}}{}\frac{{15}{}{\mathrm{b1}}}{{98}}{+}\frac{{2}{}{\mathrm{c1}}}{{49}}\right){}{\left({x}{}{1}\right)}^{{2}}{+}\frac{{\mathrm{d1}}{}{\left({x}{}{1}\right)}^{{3}}}{{6}}{+}\left({\textstyle {\sum}}_{{n}{=}{4}}^{{\mathrm{\infty}}}{}{u}{}\left({n}\right){}{\left({x}{}{1}\right)}^{{n}}\right){\,}\left({{n}}^{{4}}{}{6}{}{{n}}^{{3}}{+}{11}{}{{n}}^{{2}}{}{6}{}{n}\right){}{u}{}\left({n}\right){+}\left({3}{}{{n}}^{{2}}{}{9}{}{n}{+}{6}\right){}{u}{}\left({n}{}{1}\right){+}\left({}{{n}}^{{2}}{+}{6}{}{n}{}{8}\right){}{u}{}\left({n}{}{2}\right){}{u}{}\left({n}{}{3}\right)\right)$
 (53) 


