CantorStaircase

CantorStaircase[x]

gives the Cantor staircase function .

Details

  • The Cantor staircase function is also known as Cantor ternary function or Cantor function.
  • Mathematical function, suitable for both symbolic and numeric manipulation.
  • For , the Cantor function equals TemplateBox[{x}, CantorStaircase]=sum_i2^(-n_i).
  • For certain arguments, CantorStaircase automatically evaluates to exact values.
  • CantorStaircase can be evaluated to arbitrary numerical precision.
  • CantorStaircase automatically threads over lists. »

Examples

open allclose all

Basic Examples  (2)

Evaluate at a point in the Cantor set:

Plot CantorStaircase over the unit interval:

Scope  (13)

Numerical Evaluation  (5)

Evaluate numerically:

Evaluate with integer inputs:

Evaluate at rational numbers:

Evaluate at high precision:

Compute the elementwise values of an array using automatic threading:

Or compute the matrix CantorStaircase function using MatrixFunction:

Function Properties  (8)

CantorStaircase is defined for all real numbers:

Its domain is restricted to real inputs:

The range of CantorStaircase:

Since its range is bounded, it is not surjective:

CantorStaircase is not injective:

CantorStaircase is continuous:

CantorStaircase is nondecreasing:

CantorStaircase is non-negative:

CantorStaircase is neither convex nor concave:

TraditionalForm formatting:

Wolfram Research (2014), CantorStaircase, Wolfram Language function, https://reference.wolfram.com/language/ref/CantorStaircase.html.

Text

Wolfram Research (2014), CantorStaircase, Wolfram Language function, https://reference.wolfram.com/language/ref/CantorStaircase.html.

CMS

Wolfram Language. 2014. "CantorStaircase." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CantorStaircase.html.

APA

Wolfram Language. (2014). CantorStaircase. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CantorStaircase.html

BibTeX

@misc{reference.wolfram_2024_cantorstaircase, author="Wolfram Research", title="{CantorStaircase}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/CantorStaircase.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cantorstaircase, organization={Wolfram Research}, title={CantorStaircase}, year={2014}, url={https://reference.wolfram.com/language/ref/CantorStaircase.html}, note=[Accessed: 22-November-2024 ]}