MathematicalFunctionsEvalfPackage and command for the numerical evaluation of mathematical expressions, allowing for the use of different numerical methods in the case of Heun and Appell functions
DescriptionCompatibility
<Text-field style="Heading 2" layout="Heading 2" bookmark="info">Description</Text-field>
Evalf is both a command and a package of commands for the numerical evaluation of mathematical expressions and functions, numerical experimentation, and fast development of numerical algorithms, taking advantage of the advanced symbolic capabilities of the Maple computer algebra system. This kind of numerical/symbolic environment is increasingly relevant nowadays, when rather complicated mathematical expressions and advanced special functions, as for instance is the case of the Heun and Appell functions, appear more and more in the modeling of problems in science.
The Evalf environment is also an excellent helper for understanding how numerical algorithms work, placing some of the typical numerical approaches used in the literature at the tip of your fingers, in a flexible and friendly manner.
The Evalf command allows, among other things, for the indication of different numerical methods to evaluate the mathematical functions involved in an algebraic expression. In this version, Evalf implements optional arguments for the 10 Heun and 4 Appell functions. For anything else Evalf works the same as the standard evalf command. The options implemented for numerical evaluation, generally speaking, are divided into four groups:
restrictive options;
numerical methods options;
management options;
information options;
As a package, Evalf contains the following commands:AddEvalbGenerateRecurrencePairwiseSummationQuadrantNumbersSingularitiesZoom
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk0">Brief description of the commands of the Evalf package</Text-field>
Add accepts a procedure with a formula that depends on one integer parameter, say NiNJIm5HNiI=, or two of them, and numerically evaluates the formula adding it from NiMvSSJuRzYiIiIh until the result converges with the current value of Digits, or the value NiMvSSJuRzYiLCRJJ0RpZ2l0c0dGJSImKysi is reached.
Evalb works as evalb but can handle boolean expressions involving the functions as And, Or, Not and interpreting the integer types integer, posint, negint, nonposint, nonnegint, even and odd in an extended sense to include floats, for example: NiMkIiIiIiIh is considered of type integer and NiMkISIlIiIh is considered of type negint and even.
GenerateRecurrence accepts a mathematical function (currently working only with the four Appell functions) and returns a procedure to compute the NiNJIm5HNiI=th coefficient of a power series expansion of the given function around the origin as a function of the NiMsJkkibkc2IiIiIiEiIkYm previous coefficients, where NiNJIm5HNiI= depends on the function given.
PairwiseSummation accepts a one-dimensional Array or a procedure of one argument, say NiNJIlVHNiI= and performs a pairwise summation of NiMtSSJVRzYiNiNJImpHRiU= for NiNJImpHNiI= from given m to n, or from the lower to the upper bound of the given Array. Pairwise summation is a technique to add floating-point numbers that significantly reduces the accumulated round-off error if compared to adding the numbers one at a time.
QuadrantNumbers accepts a complex number and returns the quadrant of the complex plane where the number is located, or it accepts a list of numbers, and returns an Array of four lists, corresponding to each quadrant, of random complex numbers that are around the numbers indicated.
Singularities accepts a Heun or Appell function, for instance with numerical values for the function's parameters, and returns the singularities of the linear ODE satisfied by the given function.
Zoom is used to zoom within the last plot computed using Evalf for concatenated Taylor expansions used when performing numerical computations of Heun or Appell functions.
As usual, you can load the Evalf package using the with command, or invoke Evalf commands using the long form, e.g. as in Evalf:-Add.
<Text-field style="Heading 2" layout="Heading 2" bookmark="compatibility">Compatibility</Text-field>
The MathematicalFunctions[Evalf] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.See AlsoAddAppellAppellF1AppellF2AppellF3AppellF4EvalbevalfEvalf commandGenerateRecurrenceHeunHeunBHeunCHeunDHeunGHeunThypergeomMathematicalFunctionsMeijerGPairwiseSummationQuadrantNumbersSingularitiesZoom