Draw a V-Fractal
Count the branches and total length of a binary V-fractal, where each segment becomes two at 45 degrees and 1/root-2 scale.
Branches grow while stems shrink
A binary V replaces each segment with two at plus and minus 45 degrees, each of length L divided by the square root of two. Step n therefore holds 2^n branches, and their total length is L multiplied by root two to the n. The page prints the branch count, the total length and the growth factor per step.
The pair is the point: each child is shorter than its parent, yet the sum grows, because two children of 0.707 add up to 1.414 of the parent. That is why the page reports a length rather than drawing a shape — the figure is a measurement, and the canvas versions of the family cover the picture.
Steps are capped at twelve, where the count is 4,096. The starting length must be above zero and the step count a whole number in range; anything else is refused and the message says which bound it broke.
A binary V-fractal replaces each segment with two at plus and minus 45 degrees and one over root two the length, so step n holds 2^n branches and their total length is the start times root two to the n. The page reports the count, the total length and the per-step growth factor, and stops at 12 steps, where the count is 4,096.
How to use it
Enter a starting length and a step count, then press Run. The first line is the number of branches, the second their total length, and the third the factor by which the length grows at every step. There is no drawing on this page: the answer is a measurement.
The arithmetic
One segment becomes two at plus and minus 45 degrees, each of length L divided by the square root of two. So the count is 2^n and the total is L times root two to the n. Each child is shorter than its parent, yet two children add up to about 1.414 of the parent, and that ratio is what the third line reports.
Where it stops
Both figures are powers of exact constants, so the page refuses rather than clamps: a zero or negative length has no stem to split, and a fractional step count is not a step. The cap of 12 keeps the printed length inside a range a reader can compare with the curve.
What to Expect
Best for
- students of self-similar measures
- checking a V-fractal length by hand
What this tool keeps
- the branch count, the total length and the growth ratio
Sample input
Starting length 100, 6 steps
Sample output
Branches = 64 Total length = 800 (from 100) Growth per step = ×1.4142
Frequently asked questions
How do I use the V-fractal counter?
Enter the starting length and a whole number of steps, then press Run. The page prints the branch count, the total length of all branches and the growth factor each step applies, and reloading clears both fields.
Is anything uploaded?
No. The powers are computed in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.
What are its limits?
The length must be above zero and the steps must be a whole number from 0 to 12. Twelve steps gives 4,096 branches and a total length sixty-four times the start, so a larger count prints a figure nobody can check against a drawing.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.