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  (1)

Scope  (3)

Evaluate numerically:

Evaluate at rational numbers:

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.

BibTeX

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

BibLaTeX

@online{reference.wolfram_2021_cantorstaircase, organization={Wolfram Research}, title={CantorStaircase}, year={2014}, url={https://reference.wolfram.com/language/ref/CantorStaircase.html}, note=[Accessed: 27-October-2021 ]}

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