Free Online Utility • Interactive Fractal Studio • 2× HiDPI + SVG Engine

Binary Fractal Tree

Design symmetric and asymmetric Binary Fractal Trees from Depth 1 to 12 with independent Left/Right branch angles (θ_L, θ_R) and Left/Right contraction ratios (r_L, r_R), growth animation, pan/zoom, and SVG/PNG export.

Binary Tree Depth (n)10
Left Branch Angle (θ_L)30°
Right Branch Angle (θ_R)30°
Left Scale Ratio (r_L)0.72
Right Scale Ratio (r_R)0.72
Stroke / Detail1.8px
Rotation Angle0°
Mathematical Specification Fractal Studio
General Asymmetric Binary Tree IFS:
Left Child:  Length r_L · L, Angle θ − θ_L
Right Child: Length r_R · L, Angle θ + θ_R
Moran Similarity Equation: r_L^(D_H) + r_R^(D_H) = 1
Total Branches = 2^(n+1) − 1
Branch Count2^(n+1) − 1 (up to 8,191)
Dimension Equationr_L^D + r_R^D = 1 (Newton Solve)
Symmetric CaseD_H = ln(2) / ln(1/r)
INTERACTIVE 2× HIDPI CANVAS
Binary Fractal Tree
100% • Scroll to Zoom • Drag to Pan
Client-side 2× HiDPI + Lossless SVG Engine Instant

Session Calculation Log

No entries recorded in this session yet.

Mathematical Foundations of Binary Fractal Tree

A general Binary Fractal Tree decouples the left and right child contractions (θ_L, r_L) and (θ_R, r_R), allowing both symmetric bifurcating canopies and dramatic self-similar logarithmic spiral trees. Its theoretical similarity dimension is computed in real time by solving the nonlinear Moran equation r_L^D + r_R^D = 1 via Newton-Raphson iteration.

Self-similar fractals exhibit recurring geometric structure across scales, governed by Iterated Function Systems (IFS), Lindenmayer L-System rewriting rules, or recursive spatial subdivisions. Every geometry calculation, 2× HiDPI canvas pass, progressive animation frame, and lossless SVG vector export executes natively inside your browser at 60 FPS with zero server latency.

Exact Newton-Raphson Moran Dimension Solver

For unequal contraction ratios r_L and r_R:
  f(D)  = r_L^D + r_R^D - 1 = 0
  f'(D) = r_L^D · ln(r_L) + r_R^D · ln(r_R)
  D_{k+1} = D_k - f(D_k) / f'(D_k)
When r_L = r_R = r, this simplifies to D_H = ln(2) / ln(1/r).

Try the Asymmetric Spiral Willow preset (θ_L = 18°, θ_R = 46°, r_L = 0.76, r_R = 0.64) to see how unequal scale ratios cause the main branch tips to curl into nested golden logarithmic spirals.

Iteration Scaling & Complexity Table

Iteration / SettingElements / SizeGeometric Property
Depth 6127 branchesClean 6-level binary hierarchy
Depth 8511 branchesDistinct symmetric or spiral crown
Depth 102,047 branchesLush textbook binary fractal tree
Depth 128,191 branchesHigh-density leaf-tip attractor

Applications in Science, Graphics & Engineering

Computer Science Recursion Pedagogy

The visual trace of a Depth-n Binary Fractal Tree mirrors the exact call tree of a recursive binary tree traversal.

Microchip H-Tree Clock Networks

Set θ_L = θ_R = 90° and r_L = r_R = 0.707 to model zero-skew VLSI H-tree clock distribution networks.

River Basin & Horton-Strahler Laws

Hydrologists model asymmetric river tributary networks using unequal binary contraction ratios (r_L ≠ r_R).

Precision Vector Export

Export any symmetric or asymmetric binary tree up to 8,191 segments as a clean vector SVG.

Interactive Controls, Pan/Zoom & Vector Export

Tune all four left/right angle and scale sliders independently while watching the Newton-Raphson Moran Hausdorff dimension update live, then export crisp SVG or PNG.

Export crisp 2× Retina PNG renders for presentations or scalable infinite-resolution SVG files directly into Illustrator, Figma, Inkscape, LaTeX, or laser-cutting workflows.

Frequently Asked Questions

How is the Hausdorff dimension calculated when Left and Right scales differ?
When r_L ≠ r_R, there is no simple log quotient; the engine solves Moran's exact equation r_L^D + r_R^D = 1 to 4 decimal places using Newton-Raphson iteration.
How do I turn the Binary Fractal Tree into an orthogonal H-Tree?
Click the 90° Orthogonal H-Canopy preset (setting both Left and Right angles to 90°).
How many branches are drawn at Depth 12?
A complete binary tree of depth 12 contains 2^13 - 1 = 8,191 branch segments.
Can I animate the recursive traversal?
Yes. Click Animate Growth to watch the tree render in pre-order depth-first traversal sequence.