Enhancements to Maple Symbolic Capabilities in Maple 6
<Text-field style="Heading 2" layout="Heading 2">dsolve</Text-field>The Maple Ordinary Differential Equation (ODE) solver, dsolve, includes implementations of most of the decision procedures available in the literature, as well as heuristic procedures. Maple 6 introduces new solving algorithms, following recent presentations in the literature, as well as new features requested by Maple users. These improvements can be summarized as follows.Educational FeaturesMost of the intermediate solving steps used by Maple's dsolve are now available as user-level commands, including all of the steps of the integrating factor and symmetry approaches. New optional arguments in dsolve also allow you to tackle a given ODE using methods of your choosing, with or without performing the integration step. This facilitates the understanding of the different solving processes that are possible (see dsolve - Educational Features).Solving ODEs Subject to ConstraintsOne can now tackle ODEs, or systems of them, subject to constraints. Constraints are now also allowed when solving ODE problems with Initial Conditions. These constraints can be given as equations or as inequations, and may involve either the dependent variables of the ODEs or just other functions or symbols that enter the ODEs.First-order ODEsNew solving methods were added and others were replaced by more efficient ones. The performance of Maple's "dsolve" in solving the first-order ODE examples shown as solvable in the "book by E. Kamke" is now 97% solved. The additions include methods for:Solving ODEs by matching them against invariant ODE families, as presented in Computer Physics Communications 113 (1998) 239 (see Symmetries for First-order ODEs)Solving Abel ODEs that belong to non-constant invariant classes, as presented in Abel Equations: Equivalence and New Integrable Classes, to appear in Computer Physics Communications- CPC - (2000) (see Solving non-constant invariant Abel ODEs and dsolve, references).Determining potential symmetries when the first-order ODE can be mapped into a second-order ODE with two-point symmetries.Second-order ODEs - NonlinearNew solving methods were incorporated in dsolve for second-order nonlinear ODEs as well. The performance of Maple's "dsolve" in solving the second-order nonlinear ODE examples shown as solvable in the "book by E. Kamke" is now 95% solved. The additions include methods for:Determining integrating factors depending on two variables, as presented in Journal of Symbolic Computation V. 27, No. 5 (1999) 501 (see Integrating Factors for 2nd order ODEs);Determining linear symmetries systematically, extending the algorithm incorporated in Maple V Release 5 (see Linear symmetries)In addition, all the routines for nonlinear ODEs were thoroughly revised, resulting in a general acceleration of 30% in typical examples, as for instance those found in Kamke's book.Second-order ODEs - LinearNew solving methods were incorporated in dsolve for the case of linear second-order ODEs (LODEs) too. The performance of Maple's "dsolve" in solving the second-order LODE examples shown as solvable in the "book by E. Kamke" is now 88% solved. The most relevant additions include methods for:Determining when a LODE with variable coefficients can be systematically transformed into another one with constant coefficientsPerforming a factorization of the linear differential operator associated to a LODE (when it exists), making use of the routines in the diffop package, as presented in the Journal of Symbolic Computation 24 (1997) 537 (see Factoring Linear Differential Operators)Determining when a LODE with variable coefficients can be systematically transformed into another one with Bessel function solutions.Determining special function solutions for various new LODE families.Determining integrating factors for LODEs by solving the adjoint equation (see Integrating Factors for LODEs)Heuristic substitutions that turn rational the coefficients of a LODE when they are not, leading in this way to the solution of various LODE families.Higher-order ODEsNew methods and improvements have also been introduced in Maple 6 respect to higher-order ODEs. A summary of these follows:Determining when a higher-order linear ODE of order--say "k"--is the nth order derivative of a "k-n" linear ODE; this provides fast and clear multiple reduction of orders in one step, both in the homogeneous and non-homogeneous cases (see Fully Exact LODEs)Determining integrating factors polynomial in the "(n-1)th" derivative for nonlinear nth-order ODEs.Determining the solvability of multiparameter underlying symmetry groups before proceeding with the ODE integration. This permits an efficient use of the ODE symmetries, resulting in more families being solved, and fewer integrals or RootOfs in answers (see the page for the new DEtools command, solve_group.Systems of ODEsThe routines for solving ODE systems were rewritten for Maple 6, to take advantage of the differential elimination packages diffalg and DEtools,Rif. Among the most noticeable new features are the following.The ODE system may include both equations and inequations. Among these can be algebraic equations.You can request a solution split into cases with respect to possible values or relations between other functions or symbols that enter the system (as parameters).Linear ODE systems are now solved in more efficient manner, resulting in simpler answers. You can also indicate a preferred solving ordering.Nonlinear ODE systems are first simplified with respect to the integrability conditions implied by the system, resulting in solutions for various systems that could not be solved in Release 5, as well as in simpler answers in general. A new heuristic algorithm for determining suitable uncoupling orderings was incorporated and is in use by default. You can now also indicate different preferred solving orderings; this is quite relevant in the nonlinear case, since different orderings can lead to quite different shapes for the solution.Singular Solutions for Nonlinear ODEs or for Systems of ThemWhen the ODE or a system of them is polynomial in the dependent variable or variables and their derivatives, Maple's dsolve now makes use of the diffalg package to determine the existence of extra singular solutions.
<Text-field style="Heading 2" layout="Heading 2">pdsolve and PDEs</Text-field>New solving algorithms were incorporated into pdsolve both for linear and nonlinear PDEs. For second-order linear PDEs (unknown functions that depend on two variables), pdsolve now attempts a factorization of the corresponding differential operators, resulting in general solutions for PDEs that were not solved in Release 5, or that were previously solved, but only in terms of particular solutions.A new command in the PDEtools package, casesplit, permits analyzing and simplifying PDE systems, as well as working out different ways of separating variables in PDEs or systems of them (see, for instance, the example that follows, related to separability). This command has multiple possible uses and makes a noticeable impact in what can now be worked out with PDEs in Maple. casesplit makes use of the diffalg package (introduced in Release 5) and the Rif package (new in Maple 6) for differential elimination.A new command in the PDEtools package, separability, permits a systematic determination of when a given PDE admits complete solutions by separation of sum or product. When separability is used together with the casesplit command (also new in Maple 6), practically all the cases in which a PDE could be solved by separation of variables can be determined systematically, and the problem restricted to solving the ODEs that arise in the separation of variables process.A Hamilton-Jacobi PDE that separates by sum:pde1 := 1/2/m*diff(S(r,theta,phi,t),r)^2 + a(r) +
1/2/m/r^2*(diff(S(r,theta,phi,t), theta)^2 + 2*m*b(theta)) +
1/2/m/r^2/sin(theta)^2*diff(S(r,theta,phi,t), phi)^2 +
c(phi)/r^2/sin(theta)^2- diff(S(r,theta,phi,t),t)=0;PDEtools[separability](pde1,S(r,theta,phi,t));The output of separability means that all the conditions required for separation by sum were canceled (satisfied).An example of where the separation of variables can be obtained by using separability and casesplit:pde := diff(f(x,y),x,x) + (a*y + x - b) * diff(f(x,y),y) - a*f(x,y) = 0;For this PDE, separability indicates that a complete solution separable by sum exists:PDEtools[separability](pde, f(x,y));From that, we proceed with this hint by introducing f(x,y) = g(x) + h(y).eval(pde, f(x,y) = g(x)+h(y));The resulting PDE can be split and triangularized with a call to casesplit.PDEtools[casesplit]();In the above we see an uncoupled ODE for g(x) and the solution for h(y) in terms of the solution for g(x), so we first solve the ODE for g(x).dsolve( op([1,2],) );Now we substitute this result in the answer for h(y).simplify(eval( op([1,1],), ));The complete solution separable by sum is given byf(x,y) = rhs() + rhs();pdetest(,pde);In the last input, pdetest checks that the answer indeed cancels the PDE.Simplification of PDE/ODE SystemsNew in Maple 6, the Rif package contains tools for the simplification and analysis of polynomially nonlinear ODE/PDE systems. The name Rif stands for Reduced Involutive Form, a generalization of Standard Form for nonlinear equations. (See the main Rif package page, or the rifsimp overview..)The efficiency of a number of algorithms in the diffalg package have been improved, and its documentation significantly expanded (examples and thorough explanations are found in diffalg).
<Text-field style="Heading 2" layout="Heading 2">Maple's Solvers</Text-field>Solving for Discontinuities ("discont")The procedure discont now knows about most special functions' branch cuts, and will detect whether, for real values of the variable specified, the branch cut will be crossed.For example,discont(ln(exp(I*x)), x);returns all integer multiples of Pi.Solving Over the Integers ("isolve")For isolve to conform with other procedures in Maple, the integers are now denoted by the symbol _Z, suffixed by a positive integer .
<Text-field bookmark="examples" style="Heading 2" layout="Heading 2">Examples</Text-field>LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2J0YrLUYjNictRiw2JVEnaXNvbHZlRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUkjbW9HRiQ2LVEwJkFwcGx5RnVuY3Rpb247RicvRjpRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0ZELyUpc3RyZXRjaHlHRkQvJSpzeW1tZXRyaWNHRkQvJShsYXJnZW9wR0ZELyUubW92YWJsZWxpbWl0c0dGRC8lJ2FjY2VudEdGRC8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRlMtSShtZmVuY2VkR0YkNiQtRiM2J0YrLUYjNistSSVtc3VwR0YkNiUtRiw2JVEieUYnRjZGOS1JI21uR0YkNiRRIjRGJ0ZALyUxc3VwZXJzY3JpcHRzaGlmdEdRIjBGJy1GPTYtUSgmbWludXM7RidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjIyMjIyMjJlbUYnL0ZVRmhvLUYjNiYtRmhuNiUtRiw2JVEiekYnRjZGOS1GXm82JFEiMkYnRkBGYW8tRj02LVExJkludmlzaWJsZVRpbWVzO0YnRkBGQkZFRkdGSUZLRk1GT0ZRRlQtRmhuNiVGam5GYXBGYW9GQEZkby1GIzYqLUZebzYkUSIzRidGQEZkcC1GLDYlUSJ4RidGNkY5RmRwRl5wRmRwRmdwRkBGZG8tRiM2Ji1GaG42JUZecUZbcUZhb0ZkcEZecEZARitGQEYrLyUrZXhlY3V0YWJsZUdGREZARkBGZXFGQEYrRmVxRkBGK0ZlcUZAThe procedure isolve can now solve some inequalities. If an infinity of answers are possible, the answer returned will be _Z (which represents the set of all integers), suffixed by a positive integer, or an integer plus or minus _NN (which represents the non-negative integers), also suffixed by an integer. If either of these are used, an appropriate assumption can be placed on the new variable.LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2J0YrLUYjNictRiw2JVEnaXNvbHZlRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUkjbW9HRiQ2LVEwJkFwcGx5RnVuY3Rpb247RicvRjpRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0ZELyUpc3RyZXRjaHlHRkQvJSpzeW1tZXRyaWNHRkQvJShsYXJnZW9wR0ZELyUubW92YWJsZWxpbWl0c0dGRC8lJ2FjY2VudEdGRC8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRlMtSShtZmVuY2VkR0YkNiQtRiM2J0YrLUYjNigtSSNtbkdGJDYkUSIwRidGQC1GPTYtUSI8RidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjI3Nzc3NzhlbUYnL0ZVRl9vLUYjNiYtRiw2JVEieEYnRjZGOS1GPTYtUSIrRidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjIyMjIyMjJlbUYnL0ZVRmpvLUYsNiVRJyYjOTYwO0YnL0Y3RkRGQEZARisvJStleGVjdXRhYmxlR0ZERkBGK0ZgcEZARkBGYHBGQEYrRmBwRkBGK0ZgcEZALUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2J0YrLUYjNictRiw2JVEmYWJvdXRGJy8lJ2l0YWxpY0dRJXRydWVGJy8lLG1hdGh2YXJpYW50R1EnaXRhbGljRictSSNtb0dGJDYtUTAmQXBwbHlGdW5jdGlvbjtGJy9GOlEnbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRkQvJSlzdHJldGNoeUdGRC8lKnN5bW1ldHJpY0dGRC8lKGxhcmdlb3BHRkQvJS5tb3ZhYmxlbGltaXRzR0ZELyUnYWNjZW50R0ZELyUnbHNwYWNlR1EmMC4wZW1GJy8lJ3JzcGFjZUdGUy1JKG1mZW5jZWRHRiQ2JC1GIzYlLUYsNiVRJV9OTjRGJ0Y2RjkvJStleGVjdXRhYmxlR0ZERkBGQEZobkZARitGaG5GQEYrRmhuRkA=Also, isolve will no longer return an error if the expression has a floating-point number. In the case of equations, it will return NULL, but in the case of inequalities, it will attempt to return an answer.Solving in Z Modulo m ("msolve")As with isolve, msolve now also uses _Z to denote the integers.LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2J0YrLUYjNictRiw2JVEnbXNvbHZlRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUkjbW9HRiQ2LVEwJkFwcGx5RnVuY3Rpb247RicvRjpRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0ZELyUpc3RyZXRjaHlHRkQvJSpzeW1tZXRyaWNHRkQvJShsYXJnZW9wR0ZELyUubW92YWJsZWxpbWl0c0dGRC8lJ2FjY2VudEdGRC8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRlMtSShtZmVuY2VkR0YkNiQtRiM2KEYrLUYjNictSSVtc3VwR0YkNiUtSSNtbkdGJDYkUSIyRidGQC1GLDYlUSJpRidGNkY5LyUxc3VwZXJzY3JpcHRzaGlmdEdRIjBGJy1GPTYtUSI9RidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjI3Nzc3NzhlbUYnL0ZVRmhvLUZbbzYkUSIzRidGQC8lK2V4ZWN1dGFibGVHRkRGQC1GPTYtUSIsRidGQEZCL0ZGRjhGR0ZJRktGTUZPRlEvRlVRLDAuMzMzMzMzM2VtRictRltvNiRRIzE5RidGQEZdcEZARkBGXXBGQEYrRl1wRkBGK0ZdcEZASolving Quintics ("solve")It is well-known that, in general, polynomials of degree 5 cannot be solved in terms of radicals. Less well-known is that all cases in which degree 5 polynomials can be solved in terms of radicals have been classified. Maple now knows about this decomposition.For example,LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2J0YrLUYjNictRiw2JVEtX0VudkV4cGxpY2l0RicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUkjbW9HRiQ2LVEjOj1GJy9GOlEnbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRkQvJSlzdHJldGNoeUdGRC8lKnN5bW1ldHJpY0dGRC8lKGxhcmdlb3BHRkQvJS5tb3ZhYmxlbGltaXRzR0ZELyUnYWNjZW50R0ZELyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGUy1GLDYlRjhGNkY5LyUrZXhlY3V0YWJsZUdGREZARitGWEZARitGWEZALUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2J0YrLUYjNigtRiw2JVEickYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIzo9RicvRjpRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0ZELyUpc3RyZXRjaHlHRkQvJSpzeW1tZXRyaWNHRkQvJShsYXJnZW9wR0ZELyUubW92YWJsZWxpbWl0c0dGRC8lJ2FjY2VudEdGRC8lJ2xzcGFjZUdRLDAuMjc3Nzc3OGVtRicvJSdyc3BhY2VHRlMtRiM2Jy1GLDYlUSZzb2x2ZUYnRjZGOS1GPTYtUTAmQXBwbHlGdW5jdGlvbjtGJ0ZARkJGRUZHRklGS0ZNRk8vRlJRJjAuMGVtRicvRlVGaW4tSShtZmVuY2VkR0YkNiQtRiM2KEYrLUYjNiotSSVtc3VwR0YkNiUtRiw2JVEieEYnRjZGOS1JI21uR0YkNiRRIjVGJ0ZALyUxc3VwZXJzY3JpcHRzaGlmdEdRIjBGJy1GPTYtUSIrRidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjIyMjIyMjJlbUYnL0ZVRmNwLUYjNiYtRmlvNiRRIjNGJ0ZALUY9Ni1RMSZJbnZpc2libGVUaW1lcztGJ0ZARkJGRUZHRklGS0ZNRk9GaG5Gam4tRmNvNiVGZW8tRmlvNiRRIjJGJ0ZARlxwRkBGX3AtRiM2JkZfcUZqcEZlb0ZALUY9Ni1RKCZtaW51cztGJ0ZARkJGRUZHRklGS0ZNRk9GYnBGZHAtRmlvNiRRIjFGJ0ZARkAtRj02LVEiLEYnRkBGQi9GRkY4RkdGSUZLRk1GT0Zobi9GVVEsMC4zMzMzMzMzZW1GJ0Zlby8lK2V4ZWN1dGFibGVHRkRGQEZARmByRkBGK0ZgckZARitGYHJGQC1GPTYtUSI6RidGQEZCRkVGR0ZJRktGTUZPRlFGVEZgckZALUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2I1EhRictRiM2JS1JJW1zdWJHRiQ2JS1GLDYlUSJyRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUYjNiUtSSNtbkdGJDYkUSIxRicvRjtRJ25vcm1hbEYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRidGQy8lL3N1YnNjcmlwdHNoaWZ0R1EiMEYnRkVGQ0YrRkVGQw==
<Text-field style="Heading 2" layout="Heading 2">Simplify, Convert, and Expand</Text-field>Simplifications for ConstantsAny expression with a constant applied to any number of arguments will be simplified to that constant, as long as the symbol is not a procedure and there is no evalf procedure for that symbol.[Pi(x), false(), gamma(3)];simplify();type( `evalf/gamma`, 'procedure' );Simplifying Hypergeometric Functions ("simplify,hypergeom")The simplifier for hypergeometric functions has been improved. As an example, we provide:ode := z*(1-z)*diff(y(z),z,z) + (c - (a + b + 1)*z)*diff(y(z), z) - a*b*y(z);eval( ode, dsolve( ode=0, y(z) ) );simplify( , 'hypergeom' );Simplifications for Special FunctionsSimplifications for the Jacobi trigonometric, Jacobi Theta, Jacobi Zeta, and Weierstrass functions have been added to simplify.simplify( JacobiTheta2(0, 4)^4+JacobiTheta4(0, 4)^4, 'JacobiTheta' );simplify( JacobiZeta( 2*EllipticK(1/2), 1/2 ), 'JacobiZeta' );simplify( JacobiCN( 1/2*EllipticK(1/2)+1/2*I*EllipticK(sqrt(1-(1/2)^2)), 1/2 ), 'Jacobi' );The second argument to simplify is not required.Convert to Radical ("convert,radical")Given a rational multiple of Pi, the trigonometric functions now return a radical only if the result is is a non-nested radical for each of sin, cos, and tan (and thus necessarily for sec, csc, and cot). This includes the rational multiples 0, Pi/6, Pi/4, Pi/3, Pi/2, and Pi.Rational numbers with a denominator or divisor of 120 or 24 can be converted to radical form by using convert/radical.sin(Pi/120);convert( sin(Pi/120), radical );sin(Pi/6), cos(Pi/6), tan(Pi/6);sin(Pi/8), cos(Pi/8), tan(Pi/8);map( 'convert', [], 'radical' );Convert to Jacobi Trigonometric FunctionsThe equivalent of convert[sincos] for Jacobi trigonometric functions is now convert[Jacobi], which converts expressions in the 13 various functions into one in JacobiAM, JacobiCN, JacobiSN, and JacobiDN.convert( JacobiCD(z,v), 'Jacobi' );Expand Weierstrass and Jacobi Trigonometric FunctionsThe procedure expand is now aware of the addition and multiplication formulae of the Weierstrass and Jacobi trigonometric functions.expand(WeierstrassZeta(a+b,g1,g2));expand(JacobiSN(a+b,v));
<Text-field style="Heading 2" layout="Heading 2">The Complex Number I</Text-field>The symbol I which represented the imaginary unit in release 5 was converted to (-1)^(1/2) by Maple's alias processor on input, and converted back to I on output. Now, I is processed by the lexical analyzer and converted directly to a Complex(1) structure.The symbol used to represent the imaginary unit is an interface setting. The command interface(imaginaryunit = symbol) sets the imaginary unit symbol to the specified simple symbol (a symbol that does not require back-quotes). In order to prevent evaluation, the imaginary unit can also be entered as a string which when parsed is a simple symbol. When a complex number is printed, it is printed using the current setting of imaginaryunit.If you load a Maple worksheet which has an imaginary unit displayed in the output, your current setting of interface(imaginaryunit) is used to display that value regardless of the setting when the worksheet was saved. This is not true for input.sqrt(-1);a := 3+4*I;interface( imaginaryunit="j" );sqrt(-1);a;interface( imaginaryunit="I" );A complex numeric can be generated independently of the current setting of imaginaryunit by using the Complex constructor. A single numeric argument is converted into an imaginary complex number, while two numeric arguments are converted to a complex number with the arguments being the real and imaginary parts, respectively.Complex(3);Complex(4,3);Complex(a);
<Text-field style="Heading 2" layout="Heading 2">Miscellaneous</Text-field>Absolute Irreducibility Function ("AIrreduc")This function is used to test whether a multivariate polynomial is irreducible over the algebraic closure of the rational numbers.evala(AIrreduc(92*x^9*y-93*x^2*y^2+91*x^7*y^3+y^4+x^10));Context MenusAlong with numerous modifications, the new Context Menu configuration is located in an easy-to-understand worksheet. This allows the user to more easily understand and thus extend the functionality of the default Context Menu.An example worksheet with numerous examples that present changes of various degrees has been included in this release.In the actual configuration file, words such as Class2 and action1 are replaced by more descriptive names, but continue to follow the same pattern.Some rules followed in the construction of such menus:Comments for classes have each leading letter capitalized, whereas other comments have only the first letter of the statement capitalized.Classes always have the ending _Class attached to them, while actions do not.Classes for the top level are simple symbols, while sub-classes and sub-actions have their parent classes (without the _Class ending) prefixed to them and are separated by slashes /. For this reason, the entire object must be surrounded by back quotes; for example, `First/Second/action1` and `First/Second_Class'.Where possible, simple examples are included in the comments.A Configuration display FunctionGiven a configuration data structure for a context-sensitive menu, a quick human-readable form of the menu can be displayed by using the procedure context[display].Test Context-Sensitive Menu ActionsThe calling sequence testactions(e, cm) has changed to testactions[cm](e).ExponentiationMaple no longer checks the type of exponents by default, but instead leaves them unevaluated.[a,b,c]^{1,2,3};Computing the Galois Group ("galois")The galois function to compute the Galois group of a polynomial has been completely rewritten and extended to cover all polynomials of up to degree 9.Evaluating Over a Galois FieldThe procedure evalgf has been removed. Use mod instead.Gcd(x^2-1, x^2+x*RootOf(_Z^2-1)+2) mod 3;Geometry and Geom3d DetailThe detail procedures of the geometry and geom3d packages have been improved in two ways.They return details about all known figures now, including the more complex ones.They return a data structure that contains the information which is then printed. This allows access to the information directly from the data structure.with(geom3d):point(A,sqrt(5-3^(1/3)), 3/4, 1):detail(A);lprint();op(3, );TruncatedIcosidodecahedron( T, point(P,[0,0,0]), 3);detail(T);The ith Prime Number ("ithprime")This procedure has been written to return answers more quickly for larger arguments.ithprime(1000000);Minimize and Maximize ("minimize")The procedure maximize calls minimize with the expression negated, and then negates the result, so this section focuses on the procedure minimize.The procedure minimize is not new in Maple 6, but it has been completely redesigned with a newer and more standardized calling sequence. It now has the ability (in some cases) to return not only the minimum (in fact, the infimum), but also where the minimum (infimum) occurs.The calling sequence now follows the pattern that the first argument must be the expression being minimized, while subsequent arguments can be either options or a name, which indicates that the variable ranges over the entire real line, a name set equal to a range, or an inequality. The options can be placed anywhere in the subsequent arguments.The procedure minimize will no longer return NULL if it cannot find a minimum. Rather, it returns unevaluated. If it finds multiple possible minima where it cannot determine which is lower, it will return these values in a call to min. This removes the requirement to check for expression sequences.The previous version of minimize used numeric methods to find the minima. The current version uses symbolic methods where possible. Thus, the new minimize can solve a much larger class of expressions.As a result of the techniques used in the old version of minimize, there was a distinction between finite and infinite minima. This distinction has been eliminated since, in general, it is difficult to tell if an extreme point is in fact a local minima.If the option location or location=true is included, then an expression sequence that contains two objects, the minimum, and a set of lists that indicate where the minimum occurred are returned.minimize( sin(x), x = 0..10 );minimize( sin(x), x = 0..10, 'location' );Whereas the old minimize gave the 'minimum' and 'maximum' of x^3 both as 0 and required the user to give the third argument 'infinite' to get infinity or -infinity, respectively, now you get:minimize( x^3 );maximize( x^3 );One benefit of the new notation is that for a simple one- or two-dimensional minimizations, to see the equivalent plot, you need only replace the word minimize by plot or plot3d, respectively:minimize(abs(384/(1+x^2)^5*x^4-288/(1+x^2)^4*x^2+24/(1+x^2)^3), x=0..10);plot(abs(384/(1+x^2)^5*x^4-288/(1+x^2)^4*x^2+24/(1+x^2)^3), x=0..10);The Number Theoretic pi Function ("numtheory[pi]")The number theoretic function pi returns the number of primes less than or equal to a given integer.numtheory[pi](1000000);plot( [Li(x), x/ln(x), numtheory[pi](floor(x))], x=1..20, y=0..10,
legend=["Logarithmic Integral", "Prime Number Theorem", "The pi Function"] );plot( [Li(x), pi(floor(x)), Li(x) - sqrt(x)*ln(x)/8/Pi,
Li(x) + sqrt(x)*ln(x)/8/Pi], x=2657..3000, 'color=[blue, black, red, red]',
'title'="Schoenfeld, 1976", numpoints=500, legend = ["Logarithmic Integral",
"The pi Function", "upper bound", "lower bound"] );This procedure is only as efficient as ithprime.Rational Interpolation ("ratinterp")The rational interpolation procedure ratinterp has been introduced into Maple 6. The calling sequence is similar to that of the procedure interp, with a fourth argument being a list of two non-negative integers that indicate the degree of the numerator and the degree of the denominator.rat_interp := ratinterp( [0,1,2,4,6,7], [2,1,-3,7,5,4], x, [4,1] );poly_interp := interp( [0,1,2,4,6,7], [2,1,-3,7,5,4], x );plot( [rat_interp,poly_interp], x=0..7, -5..5 );Sorting Numerics ("sort")The procedure sort now accepts `>` (sort in decreasing order) as well as `<` (sort in increasing order.)sort( [2,3,1], `<` );sort( [2,3,1], `>` );SetsThe operators union, intersect, and minus now check for inappropriate objects before making automatic simplifications."ehl" union {};Stacks and Queues ("SimpleStack" and "SimpleQueue")New constructors for Queue and Stack objects have been introduced. They provide similar functionality to the queue and stack packages, but in a message-passing interface.s := MetredStack():for i to 10 do
s:-push( i );
end do:
s:-top();s:-pop();s:-pop();s:-stats();See the help topics Stack and Queue for more information.Returning an Operator from an Expression ("unapply")This procedure no longer attempts to make any simplifications, but instead always returns an operator. For example,unapply( 1/x, x );