This site is supported by donations to The OEIS Foundation.

Template:Pochhammer/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Pochhammer. [<Edit> Template:Pochhammer]

[⧼Purge⧽ Template:Pochhammer/doc]
The {{Pochhammer}} mathematical function template returns the rising factorial (represented with
x (n)
or with the Pochhammer symbol
(x)n
[1]) of the real number
x
,
n
being a nonnegative integer, otherwise returns an error message. This template works by repeating conditional multiplications.

Usage

{{rising factorial|real number x|nonnegative integer n}}

or

{{risefact|real number x|nonnegative integer n}}

or

{{Pochhammer|real number x|nonnegative integer n}}

or

{{Poch|real number x|nonnegative integer n}}

or

{{x^(n)|real number x|nonnegative integer n}}

Valid input

Returns
x (n)
for a real number
x
and a nonnegative integer
n
, otherwise returns an error message.

Examples

Examples with valid input

Numerical results.— Daniel Forgues 00:30, 12 March 2018 (EDT)
Code Result Comment Code Result Comment
{{Pochhammer|1|0}} 1 Green tickY {{x^(n)|1|0}} 1 Green tickY
{{Pochhammer|1|2}} 2 Green tickY {{x^(n)|1|2}} 2 Green tickY
{{Pochhammer|1|3}} 6 Green tickY {{x^(n)|1|3}} 6 Green tickY
{{Pochhammer|1|5}} 120 Green tickY {{x^(n)|1|5}} 120 Green tickY
{{Pochhammer|1|10}} 3628800 Green tickY {{x^(n)|1|10}} 3628800 Green tickY
{{Pochhammer|1|16}} 20922789888000 Green tickY {{x^(n)|1|16}} 20922789888000 Green tickY
{{rising factorial|1|16}} 20922789888000 Green tickY {{risefact|1|16}} 20922789888000 Green tickY
{{Poch|3|0}} 1 Green tickY {{Poch|3|3}} 60 Green tickY
{{Poch|3|1}} 3 Green tickY {{Poch|3|10}} 239500800 Green tickY
{{Poch|3|2}} 12 Green tickY {{Poch|3|16}} 3.201186852864E+15 Green tickY
{{Poch|4|0}} 1 Green tickY {{Poch|4|4}} 840 Green tickY
{{Poch|4|1}} 4 Green tickY {{Poch|4|10}} 1037836800 Green tickY
{{Poch|4|2}} 20 Green tickY {{Poch|4|16}} 2.0274183401472E+16 Green tickY
{{Poch|5|0}} 1 Green tickY {{Poch|5|5}} 15120 Green tickY
{{Poch|5|1}} 5 Green tickY {{Poch|5|10}} 3632428800 Green tickY
{{Poch|0|0}} 1 Green tickY {{Poch|0|5}} 0 Green tickY
{{Poch|2.71828|0}} 1 Green tickY {{Poch|2.71828|5}} 1832.0760928814 Green tickY
{{Poch|-1.4142|0}} 1 Green tickY {{Poch|-1.4142|5}} 1.4070633124019 Green tickY
{{Poch|-2.4142|0}} 1 Green tickY {{Poch|-2.4142|5}} -1.3136871563155 Green tickY
{{Poch|-3.4142|0}} 1 Green tickY {{Poch|-3.4142|5}} 2.828345749207 Green tickY

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

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

Cf. {{Pochhammer/code}}.

Test

Cf. {{Pochhammer/test}}.

See also

Notes

  1. Note: depending on the context, the Pochhammer symbol
    (x)n
    , introduced by Leo August Pochhammer, may represent either the rising factorial or the falling factorial.