__init__.pyi

1.7 kB · python · 30 lines

1from typing import Any, Literal23from numpy.typing import NDArray45COVER: float6EDGE: float78def deep(radius: float) -> float:9    """The volume `Deep(radius)` of the points of one arm's quarter beyond the tubes of both walls it touches, at every radius, to double precision."""1011def dimension() -> float:12    """The Minkowski dimension of the Menger sponge, `log(20)/log(3)`, the similarity dimension of its 20 maps of ratio `1/3`."""1314def distance(point: list[float]) -> float:15    """The Euclidean distance from a point of the unit cube to the Menger sponge, exact to the last binary place."""1617def exact(radius: float) -> float:18    """The volume `T(radius)` of the points of the plus within `radius` of the sponge at every radius, `Deep` included, to double precision."""1920def profile(radius: float) -> float | None:21    """The periodic function `p` of Kombrink, Pearse and Winter at `radius`: the reading's limit profile, unchanged when the radius is multiplied by 3, or `None` on the phases `(1/6, sqrt(2)/6]` where `T` has no closed form."""2223def reading(radius: float) -> float | None:24    """The Minkowski reading `radius^(D-3)` times the volume inside the cube, the number whose limit as the radius shrinks would be the sponge's Minkowski content."""2526def tube(radius: float) -> float | None:27    """The volume `T(radius)` of the points of the plus of seven removed level-1 cubes within `radius` of the sponge, or `None` on `(1/6, sqrt(2)/6)`, where no closed form is known."""2829def volume(radius: float) -> float | None:30    """The volume of the points of the unit cube within `radius` of the sponge, `sum_k (20/27)^k T(3^k radius)`, or `None` when some `3^k radius` falls where `T` has no closed form."""