QFactorial[n,q]
gives the
-factorial
.
QFactorial
QFactorial[n,q]
gives the
-factorial
.
Details
- Mathematical function, suitable for both symbolic and numerical manipulation.
for positive integer
, and
otherwise.- QFactorial automatically threads over lists.
Examples
open all close allBasic Examples (5)
QFactorial[10, 0.7]Plot over a subset of the reals with respect to the first argument:
Plot[QFactorial[x, 1 / 2], {x, -2, 2}]Plot over a subset of the reals with respect to q:
Plot[QFactorial[1 / 2, q], {q, 0, 2}]Plot over a subset of the complexes:
ComplexPlot3D[QFactorial[z, 1 / 2], {z, -2 - 2I, 2 + 2I}, PlotLegends -> Automatic]Series expansion at the origin:
Series[QFactorial[10, q], {q, 0, 10}]Series expansion at Infinity:
Series[QFactorial[3, x], {x, ∞, 6}]Scope (27)
Numerical Evaluation (6)
QFactorial[.5, 5]QFactorial[12, .8]N[QFactorial[1 / 3, 6], 50]The precision of the output tracks the precision of the input:
QFactorial[3., 1.3330000000000000000000000000]QFactorial[.7 + I, 5 - I]Evaluate efficiently at high precision:
QFactorial[1 / 3, 82`100]//TimingQFactorial[1 / 2, 82`1000];//TimingCompute average-case statistical intervals using Around:
QFactorial[ 2, Around[.2, 0.01]]Compute the elementwise values of an array:
QFactorial[3, {{-1, 0}, {0, 5}}]Or compute the matrix QFactorial function using MatrixFunction:
MatrixFunction[QFactorial[3, #]&, {{-1, 0}, {0, 5}}]Specific Values (5)
Table[QFactorial[n, 1 / 2], {n, 1, 4}]QFactorial[0, 5]Evaluate for symbolic n at integer and half-integer parameters:
QFactorial[n, {-1 / 2, 1 / 2}]//FunctionExpandQFactorial[n, {-1, 2}]//FunctionExpandEvaluate for symbolic q at integer and half-integer parameters:
QFactorial[{-1 / 2, 1 / 2}, q]//FunctionExpandQFactorial[4, q]//FunctionExpandFind a value of n for which QFactorial[n,2]=10:
nval = n /. FindRoot[QFactorial[n, 2] == 10, {n, 1}]Plot[QFactorial[n, 2], {n, -2, 3}, Epilog -> Style[Point[{nval, QFactorial[nval, 2]}], PointSize[Large], Red]]Visualization (3)
Plot the QFactorial function:
Plot[QFactorial[x, 1 / 2], {x, -2, 2}]Plot the QFactorial as a function of its second parameter q:
Plot[{QFactorial[1 / 4, q], QFactorial[1 / 3, q], QFactorial[1 / 2, q]}, {q, 0, 5}]ComplexContourPlot[Re[QFactorial[z, 1 / 2]], {z, -4 - 4I, 4 + 4I}, Contours -> 20]ComplexContourPlot[Im[QFactorial[z, 1 / 2]], {z, -4 - 4I, 4 + 4I}, Contours -> 20]Function Properties (9)
The real domain of QFactorial:
FunctionDomain[QFactorial[x, q], {x, q}]FunctionDomain[QFactorial[z, q], {z, q}, Complexes]QFactorial threads elementwise over lists:
QFactorial[{1, 2, 3, 4}, 1 / 2]FunctionAnalytic[QFactorial[z, q], {z, q}]It has both singularities and discontinuities for
and
:
FunctionSingularities[QFactorial[z, q], z]FunctionDiscontinuities[QFactorial[z, 1 / 5], z]
is neither nonincreasing nor nondecreasing:
FunctionMonotonicity[QFactorial[z, 1 / 5], z]QFactorial is not injective:
FunctionInjective[QFactorial[z, q], z, Assumptions -> q > 0]Plot[{QFactorial[z, 1 / 5], 1.5}, {z, -4, 4}]QFactorial is not surjective:
FunctionSurjective[QFactorial[z, q], z, Assumptions -> q > 0]Plot[{QFactorial[z, 1 / 5], 0}, {z, -4, 4}]
is neither non-negative nor non-positive:
FunctionSign[QFactorial[z, 1 / 5], z]QFactorial is neither convex nor concave:
FunctionConvexity[QFactorial[z, q], {z, q}]TraditionalForm formatting:
QFactorial[n, q]//TraditionalFormDifferentiation (2)
The first derivative with respect to n:
D[QFactorial[n, q], n]Higher derivatives with respect to n:
Table[D[QFactorial[n, q], {n, k}], {k, 1, 3}]//FullSimplifyPlot the higher derivatives with respect to n when q=3:
Plot[Evaluate[% /. { q -> 3}], {n, -3, 3}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative"}]Series Expansions (2)
Find the Taylor expansion using Series:
Series[QFactorial[x, q], {x, 0, 3}]//Normal//FullSimplifyPlots of the first three approximations around
:
terms = Normal@Table[Series[QFactorial[x, 2], {x, 0, m}], {m, 1, 5, 2}];
Plot[{QFactorial[x, 2], terms}, {x, 0, 10}, PlotRange -> {-50, 50}]The Taylor expansion at a generic point:
Series[QFactorial[x, q], {x, x0, 2}]//Normal// FullSimplifyProperties & Relations (1)
Use FunctionExpand to expand
-series:
FunctionExpand[QFactorial[5, q]]See Also
Related Guides
Related Links
History
Text
Wolfram Research (2008), QFactorial, Wolfram Language function, https://reference.wolfram.com/language/ref/QFactorial.html.
CMS
Wolfram Language. 2008. "QFactorial." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QFactorial.html.
APA
Wolfram Language. (2008). QFactorial. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QFactorial.html
BibTeX
@misc{reference.wolfram_2026_qfactorial, author="Wolfram Research", title="{QFactorial}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/QFactorial.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_qfactorial, organization={Wolfram Research}, title={QFactorial}, year={2008}, url={https://reference.wolfram.com/language/ref/QFactorial.html}, note=[Accessed: 12-June-2026]}