跳转到主要内容
Calcton

Hilbert Curve Calculator

Free online hilbert curve calculator. Enter your values and get instant results with the formula, step-by-step working, a worked example and FAQs — everything runs locally in your browser on Calcton, no signup required.

中文版:Hilbert 曲线在线计算器

Hilbert Curve Calculator
阶数 n(1 到 12;曲线访问 4ⁿ 个单位方格)

Hilbert 曲线 1891 年登场,一举推翻「曲线没有面积」的直观:它是一条不自交的一维曲线,极限却填满整个正方形(Peano 曲线族的一员,但构造更规整)。每个阶 n 的版本把正方形分成 4ⁿ 个小格,曲线恰好访问每格一次、相邻格之间走一步——这个「空间填充 + 局部性保持」的双重身份让它成为真实的工程工具。

总长 L_n = (4ⁿ−1)/2ⁿ(n=1: 1.5、n=2: 3.75、n=3: 7.875),长度乘格宽 1/2ⁿ 得面积 1 − 4⁻ⁿ → 1。今天数据库的多维索引(Ubisoft 游戏地形、Google S2 地理编码、PostGIS 网格排序)都用 Hilbert 序列把二维位置摊平成一维键,使相邻的二维数据在一维存储里也彼此靠近。gen198 用标准 d2xy 算法验证了每阶的步长、覆盖与闭合性。

参考值

L₁ = 1.5、L₂ = 3.75、L₃ = 7.875;n = 2 时 15 步访问 16 格、填充率 15/16 = 0.9375

How to use the Hilbert Curve Calculator

  1. Fill in the inputs with your own numbers — every field shows what it expects.
  2. The result updates instantly as you type; no "Calculate" click needed.
  3. Read the result card for the main figure, the step-by-step formula, and practical notes.

Frequently asked questions

Is the Hilbert Curve Calculator free?

Yes — all math calculators on Calcton are free, with no sign-up required. Your inputs are processed in your browser and never sent to a server.

Is there a Chinese version of this tool?

Yes. Use the Chinese version link above — it is the same calculator with the interface in Simplified Chinese.

References

Formulas and benchmarks used by this calculator follow these published sources.

  1. dlmf.nist.gov
  2. mathworld.wolfram.com
Kevin's profile

KevinContent LeadCalcton Editorial Team · Last updated 2026-09-29

Kevin maintains Calcton's formula verification and content: every calculator cites the standard it implements, worked examples are recomputed programmatically, and health benchmarks follow WHO and international guidelines.

Related calculators

More in this category: Math calculators

About math calculators

Free online math calculators for algebra, statistics, number theory and everyday arithmetic — from quadratic equations and matrices to percentages, fractions and prime factorization, each with step-by-step formulas.

搜索计算器

搜索全站计算器、分类与页面,回车直达