Dragon Curve Calculator
Free online dragon 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.
中文版:龙曲线在线计算器
原理:龙曲线(Heighway 龙)由不断对折纸条得到——把纸条反复对折 n 次后展开,使每处折痕成直角,纸条便盘成一条巨龙。方向序列满足正则折叠规律:d(2n) = d(n)、d(4n+1) = 1(右转)、d(4n+3) = 0(左转);也可迭代构造 D(n+1) = D(n) + [右转] + reverse(D(n) 取反)。前 16 步方向为 1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1。曲线的神奇性质:n = 8 时从 (0,0) 出发恰好停在 (16, 0),且整条曲线自不相交——阶数每加一,段数翻倍、龙身对折加倍。
步骤:输入折叠阶数 n(1–15),程序计算方向序列并逐段追踪,绘制折线并给出终点与包围盒。
示例:n = 5 时终点 = (−4, 4),包围盒 6 × 7;n = 8 时终点 = (16, 0),包围盒 23 × 15,共 256 段。
注意事项:n ≤ 15(32768 段已达渲染上限);坐标以步长 1 的格点计。龙曲线是分形——n → ∞ 时维数为 2(它最终铺满平面区域),豪斯多夫维数恰好为 2。
相关:n = 8 段数 256;终点 (16, 0);包围盒 23 × 15。
How to use the Dragon Curve Calculator
- Fill in the inputs with your own numbers — every field shows what it expects.
- The result updates instantly as you type; no "Calculate" click needed.
- Read the result card for the main figure, the step-by-step formula, and practical notes.
Frequently asked questions
Is the Dragon 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.
KevinContent LeadCalcton Editorial Team · Last updated 2026-10-01
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.