Skip to content
Oakfield Operator Calculus Function Reference Site

q-Number

For q1q \neq 1 and xCx \in \mathbb{C}, the q-number is

[x]q=1qx1q[x]_q = \frac{1 - q^{x}}{1 - q}

Defined for q<1|q|<1 (or more generally q>0q>0, q1q\ne 1) and all complex xx (with a branch choice for qxq^x when xx is non-integer). Output is complex-valued and analytic in xx away from branch issues.


Recovers the identity in the classical limit:

limq1[x]q=x\lim_{q \to 1} [x]_q = x
[x+y]q=[x]q+qx[y]q[x+y]_q = [x]_q + q^{x}[y]_q

For integers n1n\ge 1,

[n]q=1+q++qn1[n]_q = 1 + q + \cdots + q^{n-1}

xx[x]q[x]_q
0000
1111

For integer nn, [n]q[n]_q is the q-analog of nn used throughout basic hypergeometric series and q-calculus.


q-exponentials and q-zeta functions are built from the same q-calculus primitives. Many q-analogs (q-factorials, q-binomial coefficients) can be expressed in terms of q-numbers.


Oakfield implements Jackson q-numbers as part of its q-special-function toolkit:

  • Special function core provides sim_q_number (real) and sim_q_number_complex plus “safe” variants with diagnostics/fallback hooks.
  • Lua API exposure: q-numbers are available to scripts (useful for experimenting with q-series models and parameter sweeps).
  • q-numbers are also used internally by the q-series implementations (e.g. q-zeta) that build on [n+a]q[n+a]_q denominators.

q-numbers are a core building block of q-calculus, where geometric progressions replace linear increments and many classical identities admit q-deformed analogues.

They serve as the “q-version” of a scalar, feeding into q-derivatives, q-factorials, and basic hypergeometric series.


  • Gasper & Rahman, Basic Hypergeometric Series
  • Andrews, Askey, Roy, Special Functions