convert/function_rules - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Conversions : convert/function_rules

convert/function_rules

convert special functions applying contiguity rules

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(expr, function, "rule1", "rule2", ...)

Parameters

expr

-

Maple expression, equation, or a set or list of them

function

-

name of the function to which the contiguity rule(s) are applied

"rule"

-

Maple string indicating the rule, for example, "raise a"

Description

• 

convert/function_rules converts the special functions in an expression applying to it contiguity rules, that is, rules which mix, raise or lower by one, or normalize each of the parameters entering a special function. For example,

HermiteH(alpha,z);

HermiteHα,z

(1)

(1) = convert((1), HermiteH, "raise a");

HermiteHα,z=2zHermiteHα+1,zHermiteHα+2,z2α+2

(2)
  

A typical call to convert to apply these contiguity conversion rules may include many rules at once, in which case the rules are applied in sequence, as given (see the second last example).

• 

The special functions implemented in Maple typically depend on one variable - say z - and zero parameters - for example, the Airy functions - up to one variable and three parameters - for example, the JacobiP function. The convention followed to indicate the parameter with respect to which the contiguity rule will be applied is: use a,b,c to respectively refer to the first, second and third parameters. The rules known by the system are:

"raise a",

"lower a",

"normalize a",

"raise b",

"lower b",

"normalize b",

"raise c",

"lower c",

"normalize c",

"mix a and b",

"1F1 to 0F1",

"0F1 to 1F1"

  

It is then possible to raise, lower, or normalize the first, second or third parameter in an independent manner. In addition, it is possible to "mix" the first and second parameters, where mixing means applying a contiguity relation where both the first and second parameters change and the new parameters are a function of the original ones.

  

In addition to these rules, the following rules with application restricted to the hypergeometric function are available.

"quadratic 1",

"quadratic 2",

"quadratic 3"

"quadratic 4",

"quadratic 5",

"quadratic 6"

"2a2b",

"raise 1/2",

"lower 1/2"

• 

Regarding the rule relating 0F1 to 1F1, the 0F1(;gamma;z) hypergeometric function - in Maple represented by hypergeom([],[gamma],z) - can always be rewritten as 1F1(alpha;beta;z)) for some alpha and beta, and these resulting 1F1 functions, which are not the most general ones, can be converted back to the 0F1 form. To perform those conversions, use the rules "0F1 to 1F1", "1F1 to 0F1" respectively, for example, as in convert(expr, hypergeom, "0F1 to 1F1"). For these two rules, which relate Kummer, Cylindrical and Whittaker, all 1F1 functions, to the Bessel related ones, all 0F1, due to the frequency with which the rule is applied, a special shortcut is also provided via convert(expr, `0F1 to 1F1`) and ditto for `1F1 to 0F1`.

• 

When normalizing a parameter - for example, using the option "normalize a" - if the parameter value is positive and greater than one the parameter will be lowered as close as possible to one; if its value is negative and lower than -1, it will be raised as close as possible to -1. When the parameter is an algebraic expression involving symbols, the approach described will be applied to the rational numeric part of it - see the examples below. This normalization scheme is convenient in varied situations, including zero recognition.

• 

Regarding the contiguity rules for the pFq hypergeometric function, they are implemented only for 1F1 and 2F1 and the convention is as follows. For the confluent hypergeometric function, that is 1F1(alpha; beta; z) , in Maple implemented as hypergeom([alpha],[beta],z), the rule "raise a" will raise by one the single parameter found in the first list (here alpha) while the rule "raise b" will raise by one the single parameter found in the second list (here beta).

  

For the Gauss hypergeometric function, that is 2F1(alpha, beta; gamma; z), in Maple implemented as hypergeom([alpha,beta],[gamma],z), the rule "raise a" will raise by one the first parameter in the first list (here alpha), "raise b" will raise by one the second parameter of the first list (here beta) and "raise c" will raise by one the first parameter in the second list (here gamma). The idea is to think first, second, third the same way you read the parameters in the usual mathematical notation 2F1(alpha, beta; gamma; z).

Examples

Consider the 1F1 confluent hypergeometric function and the contiguity rule for raising by one the first parameter

H0hypergeoma,b,z

H0:=hypergeoma,b,z

(3)

H0=convertH0,hypergeom,raise a

hypergeoma,b,z=2ab+z+2hypergeoma+1,b,z+a1hypergeoma+2,b,zab+1

(4)

Here is a concrete example

Hhypergeom2,4,z

H:=hypergeom2,4,z

(5)

HHconvertH,hypergeom,raise a

HH:=2zhypergeom3,4,z+3hypergeom,,z

(6)

The contiguity rule "mixing" the indices is

H0=convertH0,hypergeom,mix a and b

hypergeoma,b,z=ⅇzhypergeomba,b,z

(7)

Applying it to HH our original H appears rewritten as

HHconvertHH,hypergeom,mix a and b

HH:=2zⅇzhypergeom1,4,z+3hypergeom,,z

(8)

The contiguity rule for lowering by one the second parameter is

H0=convertH0,hypergeom,lower b

hypergeoma,b,z=bz+2hypergeoma,b1,z+hypergeoma,b2,zb2b1ab+1z

(9)

Applying it to HH our original H appears now as

convertHH,hypergeom,lower b

122zⅇz3z6hypergeom1,3,z+6hypergeom1,2,zz+3hypergeom,,z

(10)

Applying recursively the rules for the raising and lowering the first and second parameters in order to make them as close as possible to one you normalize H to

convertH,hypergeom,normalize a,normalize b

3z2+12hypergeom,,zz2+3+3z36z12hypergeom1,2,zz2

(11)

This expression is equal to the original H

simplifyH

0

(12)

The given H actually admits a 0F1 representation:

H=convertH,`1F1 to 0F1`

hypergeom2,4,z=ⅇ12zhypergeom,52,116z2

(13)

from which a Bessel related form is possible, in this case - in turn - automatically simplified to trigonometric functions:

convertH,Bessel_related

6ⅇ12zπBesselJ32,12IzIz3/2

(14)

Consider the associated Legendre function

LegendrePa,b,z

LegendrePa,b,z

(15)

The first parameter is raised using the rule

=convert,LegendreP,raise a

LegendrePa,b,z=2a+3zLegendrePa+1,b,z+ba2LegendrePa+2,b,za+b+1

(16)

The rule for raising the second parameter involves radicals in a particular way, related to the way these functions are defined in Maple

=convert,LegendreP,raise b

LegendrePa,b,z=2b+1zLegendrePa,b+1,zz11+z+LegendrePa,b+2,zaba+b+1

(17)

The Maple definition for the associated Legendre functions is in terms of their hypergeometric representation:

LegendrePa,b,z=convertLegendrePa,b,z,hypergeom

LegendrePa,b,z=1+z12bhypergeoma,a+1,1b,1212zz112bΓ1b

(18)

LegendreQa,b,z=convertLegendreQa,b,z,hypergeom

LegendreQa,b,z=12ⅇIbππ1+z12bz112bΓa+b+1hypergeom1+12a+12b,12a+12b+12,a+32,1z2za+b+1Γa+322a

(19)

The application of "rule conversions" can be requested with many rules at once and performed in any desired specific order; for instance, consider the following expression

ee1KummerU32,12,z281KummerU1,32,z2z281KummerU1,32,z2z2z24+1z24

ee:=18KummerU32,12,z218KummerU1,32,z2z214KummerU1,32,z2z2z2+14z2

(20)

By applying rules for normalizing the first and second indices of all Kummer functions and then mixing these two parameters you obtain varied mathematically equivalent representations for the same expression

convertee,KummerU,normalize a,normalize b,mix a and b

18z2KummerU2,32,z218KummerU12,12,z214KummerU12,12,z2z2+14z2

(21)

convert,KummerU,normalize a,normalize b,mix a and b

182z2+1KummerU12,12,z218KummerU1,32,z2z214KummerU1,32,z2z2z2

(22)

A further manipulation actually shows the expression is equal to zero

convert,KummerU,normalize a,normalize b,mix a and b

182z2+1KummerU12,12,z218KummerU12,12,z214KummerU12,12,z2z2

(23)

normal

0

(24)

Due to the importance of the 2F1 hypergeometric function, a special set of conversion rules for it is available. Each of these rules is valid under certain conditions on the 2F1 parameters. The conversion happens only when the condition is satisfied. For arbitrary values of the parameters, these conversions can also performed using assuming.

hypergeoma,b,c,z

hypergeoma,b,c,z

(25)

convert,hypergeom,2a2bassuming12+a+bc=0

hypergeom2a,2b,12+a+b,12121z

(26)

To see "which assumptions" are required for each rule as well as all the rules available for the 2F1 function use

FunctionAdvisoridentities,hypergeoma,b,c,z

2a2b&comma;hypergeoma&comma;b&comma;c&comma;z&equals;hypergeom2a&comma;2b&comma;12&plus;a&plus;b&comma;12121z&comma;Andz1&comma;12&plus;a&plus;bc&equals;0&comma;lower 1/2&comma;hypergeom1&comma;1&comma;2&comma;z&equals;hypergeom12&comma;12&comma;32&comma;14z22&plus;z2z12z2&plus;z1zz22z&plus;22z12&plus;z22&comma;And&real;z<1&comma;lower a&comma;hypergeoma&comma;b&comma;c&comma;z&equals;ab1z2a&plus;c&plus;2hypergeomb&comma;a1&comma;c&comma;z&plus;c&plus;a1hypergeomb&comma;a2&comma;c&comma;za1z1&comma;Anda1&comma;z1&comma;lower c&comma;hypergeoma&comma;b&comma;c&comma;z&equals;2z&plus;1c2&plus;a&plus;b&plus;3zhypergeoma&comma;b&comma;c1&comma;z&plus;hypergeoma&comma;b&comma;c2&comma;zz1c21cc&plus;1&plus;ac&plus;1&plus;bz&comma;quadratic 1&comma;hypergeoma&comma;b&comma;c&comma;z&equals;hypergeom1&plus;2a&comma;1&plus;2b&comma;12&plus;a&plus;b&comma;12121z1z&comma;Andz1&comma;12&plus;a&plus;bc&equals;0&comma;quadratic 2&comma;hypergeoma&comma;b&comma;c&comma;z&equals;12hypergeom1&plus;2a&comma;12&plus;ab&comma;12&plus;a&plus;b&comma;1&plus;1z1&plus;1z22a1&plus;1z1&plus;2a1z&comma;Andz1&comma;12&plus;a&plus;bc&equals;0&comma;quadratic 3&comma;hypergeoma&comma;b&comma;c&comma;z&equals;hypergeom2a&comma;2b&comma;12&plus;a&plus;b&comma;12121z&comma;Andz1&comma;12&plus;a&plus;bc&equals;0&comma;quadratic 4&comma;hypergeoma&comma;b&comma;c&comma;z&equals;22ahypergeom2a&comma;12&plus;ab&comma;12&plus;a&plus;b&comma;1&plus;1z1&plus;1z1&plus;1z2a&comma;Andz1&comma;12&plus;a&plus;bc&equals;0&comma;quadratic 5&comma;hypergeoma&comma;b&comma;c&comma;z&equals;hypergeoma&comma;a&plus;2b&comma;12&plus;b&comma;141&plus;1z21z1z12a&comma;Andz1&comma;2bc&equals;0&comma;quadratic 6&comma;hypergeoma&comma;b&comma;c&comma;z&equals;22ahypergeoma&comma;12&plus;ab&comma;12&plus;b&comma;1&plus;1z21&plus;1z21&plus;1z2a&comma;Andz1&comma;2bc&equals;0&comma;raise 1/2&comma;hypergeom12&comma;12&comma;32&comma;z&equals;I1z&plus;Iz1hypergeom1&comma;1&comma;2&comma;1zIz&plus;1z&comma;Andz0&comma;raise a&comma;hypergeoma&comma;b&comma;c&comma;z&equals;z&plus;2a&plus;b1zc&plus;2hypergeomb&comma;a&plus;1&comma;c&comma;z&plus;hypergeomb&comma;a&plus;2&comma;c&comma;zz1a&plus;1c&plus;1&plus;a&comma;Andca10&comma;raise c&comma;hypergeoma&comma;b&comma;c&comma;z&equals;a&plus;b2c1zchypergeoma&comma;b&comma;c&plus;1&comma;zhypergeoma&comma;b&comma;c&plus;2&comma;zzbc1c&plus;a1c&plus;1cz1

(27)

See Also

assuming

convert

convert/to_special_function

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam