Mathematical Functions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Information : Updates : Maple 2015 : Mathematical Functions

Mathematical Functions

Maple provides a state-of-the-art environment for algebraic and numeric computations with mathematical functions. The requirements concerning mathematical functions, however, are not just computational: typically, you also need information on identities, alternative definitions and mathematical properties in general. For these purposes Maple provides the MathematicalFunctions package and the FunctionAdvisor command, whose main goals are to provide tools for advanced computations with mathematical functions, and to make the information that the Maple system can provide more complete at each release, providing access to each piece of information through a simple interface.

 

The FunctionAdvisor

The conversion network for mathematical functions

New commands in the MathematicalFunctions package

Numerical evaluation of the Jacobi Amplitude

The FunctionAdvisor

• 

For Maple 2015, an important amount of mathematical formulas were added to the database of the FunctionAdvisor   command.

Examples

• 

The complex components:

(1.1.1)

(1.1.2)
• 

The Jacobi elliptic functions:

(1.1.3)
• 

A new topic, periodicity, got added:

(1.1.4)

(1.1.5)

(1.1.6)

(1.1.7)
• 

The JacobiTheta functions:

(1.1.8)
• 

The Weierstrass functions:

(1.1.9)
• 

New specializations for elliptic functions:

(1.1.10)

 

The conversion network for mathematical functions

• 

Related to the changes in FunctionAdvisor , a relevant number of new conversion routines related to elliptic functions got added to the network of relationships between mathematical functions.

Examples

• 

New conversion routines in connection with these enhancements to the FunctionAdvisor.

The Jacobi elliptic functions:

* Partial match of "jacobi" against topic "Jacobi_related".
The 18 functions in the "Jacobi_related" class are:

(2.1.1)

Apply them:

(2.1.1)(z,k)

(2.1.2)

The elliptic Theta functions start at position 14:

(2.1.3)

The following are relationships (conversions) between Jacobi theta functions now implemented in the library:

(2.1.4)

The JacobiPQ elliptic functions are thirteen elliptic functions that in some sense generalize trigonometric functions and have an enormous amount of properties. There are new conversion routines for all of them. For example:

(2.1.5)

 

New commands in the MathematicalFunctions package

• 

Seven new commands were added to the MathematicalFunctions package:
· &Intersect, &Minus and &Union respectively compute the intersection, minus, and union of regions of the complex plane expressed algebraically as sets of equations and inequations.
· Assume places assumptions similar to what the assume command does but without redefining the variables. Coulditbe and Is compute boolean answers (like the coulditbe and is commands respectively), but also handle a sequence of an arbitrary number of nested conditionals, which possibly include And, Or, and Not (see also convert/boolean_function to relate to and, or, and not respectively), along with the ability to test them directly on lists.
· Evalf is a new command to numerically evaluate the Heun and HeunPrime mathematical functions (in Maple 2015 it is restricted to HeunC and HeunCPrime) using different approaches, including sequences of Taylor functions through paths that go around singularities.

Examples

• 

The MathematicalFunctions package has 7 new commands.

(3.1.1)

The new commands and &Union respectively perform the intersection, union, and minus of regions of the complex plane expressed algebraically as sets of equation and inequations.

Consider:

(3.1.2)

(3.1.3)

(3.1.4)

(3.1.5)

Using algebraic expressions to represent regions:

(3.1.6)

(3.1.7)

(3.1.8)

(3.1.9)

(3.1.10)

The set of new commands Assume, Coulditbe, and Is perform basically the same operations as the standard assume, coulditbe, and is commands but with the following differences, more convenient depending on the situation.

• 

Assume uses the new Physics:-Assume command, capable of placing assumptions without redefining the variables, hence it is possible to reuse expressions entered before placing the assumptions. The result can also be reused after removing the assumptions, computing as in an extended-assuming context.

Consider:

(3.1.11)

This expression cannot be simplified further: it is equal to x only within some restricted range of x values. You can now place the assumption,

(3.1.12)

and reuse the equation (3.1.11) entered before placing the assumption, hence invoke it by entering its label:

(3.1.13)
• 

Coulditbe and Is permit computing the related operations with an arbitrary number of conditions to be tested, that could be nested with no restrictions, involving And and Or, and also lists.

Consider the two conditions:

(3.1.14)

(3.1.15)

None of them can be true, so:

(3.1.16)

Change the second condition to be:

(3.1.17)

Now  can be true, therefore:

(3.1.18)

Coulditbe can also receive as sequence of arguments (statements), in which case it only returns true if it would return true for each of the arguments received. In this example, two conditions cannot be true at the same time, but either of them can be true.

(3.1.19)

(3.1.20)

Add a condition that cannot be:

(3.1.21)

Note the difference with Or:

(3.1.22)

Note also the difference between the result (3.1.20) and the one using And:

(3.1.23)

The Is command is entirely based on Coulditbe so that  returns as . This is a generalization to many arguments of the relationship between the output of the standard is and coulditbe commands.

Hence:

(3.1.24)
• 

Evalf is a new command to numerically evaluate the Heun mathematical functions using different approaches, including sequences of Taylor functions through paths that go around singularities.

      HeunCZ and HeunCZPrime at Z = .500000000000-.559016994375*I using a series expansion around Z = 0

      HeunCZ and HeunCZPrime at Z = 1.06250000000-.559016994375*I using a series expansion around Z = .500000000000-.559016994375*I
      HeunCZ and HeunCZPrime at Z = 1.16204916259-.149352378815*I using a series expansion around Z = 1.06250000000-.559016994375*I

      HeunCZ at Z = 1.200000000 using a series expansion around Z = 1.16204916259-.149352378815*I

(3.1.25)

Compare with the value obtained using a differential equation approach to this problem:

C using dsolve/numeric approach for 1 <= abs(z).

-> computing initial conditions for C and CPrime at z = .1
   HeunC at z = .1 using a series expansion around z = 0
   HeunCPrime at z = .1 using a series expansion around z = 0
-> computing an extra step at z = 1.+.2*I

(3.1.26)

Perform the same computation requiring accuracy up to the value of Digits:

(3.1.27)

      HeunCZ and HeunCZPrime at Z = .500000000000-.559016994375*I using a series expansion around Z = 0

      HeunCZ and HeunCZPrime at Z = 1.06250000000-.559016994375*I using a series expansion around Z = .500000000000-.559016994375*I
      HeunCZ and HeunCZPrime at Z = 1.16204916259-.149352378815*I using a series expansion around Z = 1.06250000000-.559016994375*I

      HeunCZ at Z = 1.200000000 using a series expansion around Z = 1.16204916259-.149352378815*I
            HeunCZ and HeunCZPrime at Z = .50000000000000000-.55901699437494740*I using a series expansion around Z = 0
            HeunCZ and HeunCZPrime at Z = 1.0625000000000000-.55901699437494740*I using a series expansion around Z = .50000000000000000-.55901699437494740*I

            HeunCZ and HeunCZPrime at Z = 1.1620491625867589-.14935237881501522*I using a series expansion around Z = 1.0625000000000000-.55901699437494740*I
            HeunCZ at Z = 1.200000000 using a series expansion around Z = 1.1620491625867589-.14935237881501522*I

-> Testing accuracy of 10 digits for HeunCZ at Z = 1.200000000 around Z = 1.162049163-.1493523788*I and Z = 1.200000000 using Digits = 15
         HeunCZ at Z = 1.16204916259-.149352378815*I using a series expansion around Z = 1.06250000000-.559016994375*I
            HeunCZ at Z = 1.06250000000-.559016994375*I using a series expansion around Z = .500000000000-.559016994375*I
                  HeunCZ and HeunCZPrime at Z = .499999999999973874825-.559016994374970791168*I using a series expansion around Z = 0
                  HeunCZ at Z = .500000000000-.559016994375*I using a series expansion around Z = .499999999999973874825-.559016994374970791168*I
                  HeunCZ and HeunCZPrime at Z = .272727272727272727250-.408180805829884514696*I using a series expansion around Z = 0
                  HeunCZ and HeunCZPrime at Z = .449885452775968702046-.541443395498165954360*I using a series expansion around Z = .272727272727272727250-.408180805829884514696*I
                  HeunCZPrime at Z = .500000000000-.559016994375*I using a series expansion around Z = .449885452775968702046-.541443395498165954360*I
            HeunCZPrime at Z = 1.06250000000-.559016994375*I using a series expansion around Z = .500000000000-.559016994375*I

         HeunCZPrime at Z = 1.16204916259-.149352378815*I using a series expansion around Z = 1.06250000000-.559016994375*I

<- Reached required accuracy of 10 digits for HeunCZ using Digits = 15

(3.1.28)

Options arguments of the new MathematicalFunctions Evalf command include:

• 

DE to numerically evaluate using a differential equation approach

• 

R = ...  to indicate the maximum value of the radius used in each Taylor series in a sequence of Taylor series.

• 

Taylor to indicate the use of a Taylor series approach

• 

Z to use the Z approach to numerically evaluate the confluent HeunC function

• 

fdiff to use numerical differentiation to evaluate any of the five HeunPrime functions

• 

to indicate the display of a plot showing the path and centers of the Taylor series used to evaluate the function

• 

 = ... to compute with as many accurate digits as the value of Digits

• 

truncate = ... to request truncating the value returned to the indicated number of digits

• 

zoom = ... to zoom within the last plot shown

 

Numerical evaluation of the Jacobi Amplitude

• 

Full rewriting of the numerical evaluation of the Jacobi amplitude, represented in Maple by the function JacobiAM, precisely matching the definition given in the NIST Digital Library of Mathematical Functions.

Examples

The graphs shown in NIST for the Jacobi amplitude:

(4.1.1)

 


Download Help Document