This site is supported by donations to The OEIS Foundation.

Template:Pochhammer/test

From OeisWiki
Jump to: navigation, search
This is the test page of the {{Pochhammer}} mathematical function template.

The {{Pochhammer}} mathematical function template returns the rising factorial (represented with the Pochhammer symbol
x (n)
) of the real number
x
, 
n
being a nonnegative integer, otherwise returns an error message. This template works by repeating conditional multiplications.

Test cases

For maximum numbers allowed within {{expr}}, see{{Expr/doc#Maximum and minimum numbers allowed}}.

Examples with valid input

Code Result Code Result
{{Pochhammer|1|0}} 1   {{x^(n)|1|0}} 1
{{Pochhammer|1|2}} 2   {{x^(n)|1|2}} 2
{{Pochhammer|1|3}} 6   {{x^(n)|1|3}} 6
{{Pochhammer|1|5}} 120   {{x^(n)|1|5}} 120
{{Pochhammer|1|10}} 3628800   {{x^(n)|1|10}} 3628800
{{Pochhammer|1|16}} 20922789888000   {{x^(n)|1|16}} 20922789888000
{{Poch|3|0}} 1   {{Poch|3|3}} 60
{{Poch|3|1}} 3   {{Poch|3|10}} 239500800
{{Poch|3|2}} 12   {{Poch|3|16}} 3.201186852864E+15
{{Poch|4|0}} 1   {{Poch|4|4}} 840
{{Poch|4|1}} 4   {{Poch|4|10}} 1037836800
{{Poch|4|2}} 20   {{Poch|4|16}} 2.0274183401472E+16
{{Poch|5|0}} 1   {{Poch|5|5}} 15120
{{Poch|5|1}} 5   {{Poch|5|10}} 3632428800
{{Poch|5|2}} 30   {{Poch|5|16}} 1.0137091700736E+17
{{Poch|1|17}} 3.55687428096E+14 (approximatively)   {{Poch|5|17}} 2.1287892571546E+18 (approximatively)
{{Poch|1|32}} 2.6313083693369E+35 (approximatively)   {{Poch|5|32}} 1.5499721949579E+40 (approximatively)
{{Poch|1|33}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].   {{Poch|5|33}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|1|47}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].   {{Poch|5|47}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|0|0}} 1   {{Poch|0|5}} 0
{{Poch|2.71828|0}} 1   {{Poch|2.71828|5}} 1832.0760928814
{{Poch|-1.4142|0}} 1   {{Poch|-1.4142|5}} 1.4070633124019
{{Poch|-2.4142|0}} 1   {{Poch|-2.4142|5}} -1.3136871563155
{{Poch|-3.4142|0}} 1   {{Poch|-3.4142|5}} 2.828345749207

Examples with invalid input (returns an error message)

Code Result
{{Poch|1|text}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|5|text}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|1|6 blobs}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|5|6 blobs}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|1|0.5}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|5|0.5}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|1|-1}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|5|-1}} Pochhammer error: Second argument (number of iterations) must be a nonnegative integer within [0..32].
{{Poch|x|-1}} Pochhammer error: First argument (initial number) must be a real number.
{{Poch|5x|-1}} Pochhammer error: First argument (initial number) must be a real number.

Code

See {{Pochhammer/code}}.