This repository was archived by the owner on Jul 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlider.html
More file actions
185 lines (164 loc) · 7.32 KB
/
Copy pathSlider.html
File metadata and controls
185 lines (164 loc) · 7.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Segmented Spacetime: Exponential Triangle (λ → N)</title>
<style>
body {
font-family: sans-serif;
text-align: center;
padding: 2rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
min-height: 100vh;
}
.container {
background: rgba(255,255,255,0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
max-width: 800px;
margin: 0 auto;
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
h1 {
margin-bottom: 1rem;
font-size: 1.8rem;
}
.theory-note {
background: rgba(255,255,255,0.15);
padding: 1.5rem;
border-radius: 10px;
margin: 1rem 0;
font-size: 0.9rem;
line-height: 1.5;
}
svg {
margin-top: 1.5rem;
background: rgba(255,255,255,0.9);
border-radius: 15px;
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
label {
display: block;
margin-top: 1.5rem;
font-weight: bold;
font-size: 1.1rem;
}
input[type=range] {
width: 400px;
height: 8px;
margin: 0.5rem 0;
}
.value-display {
font-family: 'Courier New', monospace;
background: rgba(255,255,255,0.2);
padding: 0.5rem 1rem;
border-radius: 8px;
display: inline-block;
margin: 0.5rem;
font-size: 1.1rem;
}
#equationResult {
font-family: 'Courier New', monospace;
font-size: 1.2rem;
margin: 1.5rem 0;
background: rgba(255,255,255,0.2);
padding: 1rem;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>🌌 Segmented Spacetime: Exponential Triangle Visualizer</h1>
<div class="theory-note" style="text-align: left; line-height: 1.8;">
<h3 style="margin-top: 0; text-align: center;">Mathematical Framework</h3>
<p><strong>Exponential Growth Model:</strong></p>
<p>The radius in segmented spacetime follows the exponential law:</p>
<p style="text-align: center; font-size: 1.1rem; margin: 1rem 0;">
<strong>r(N) = r₀ · e^(λN)</strong>
</p>
<p><strong>Parameters:</strong></p>
<ul style="margin: 0.5rem 0;">
<li><strong>r₀</strong> = initial radius at N = 0 (reference scale)</li>
<li><strong>λ</strong> = growth rate parameter (controls expansion speed)</li>
<li><strong>N</strong> = continuous segment number (real-valued, not discrete)</li>
<li><strong>e</strong> ≈ 2.71828 (Euler's number, base of natural logarithm)</li>
</ul>
<p><strong>Continuous vs. Discrete Nature:</strong></p>
<p>While N is treated as a <em>continuous</em> variable in the mathematical model, the physical
segmentation arises through <strong>φ-quantization</strong> where φ = (1+√5)/2 ≈ 1.618034 (golden ratio).
Each physical segment scales by factor φ, but the underlying growth trend is captured by the
continuous exponential function.</p>
<p><strong>Connection to φ-segmentation:</strong></p>
<p>The discrete segment radii follow r_n = r₀ · φ^n. Taking logarithms:</p>
<p style="margin-left: 2rem;">ln(r_n) = ln(r₀) + n · ln(φ)</p>
<p>This shows that φ-based growth is equivalent to exponential growth with λ = ln(φ) ≈ 0.481211,
establishing the mathematical bridge between discrete φ-steps and continuous exponential expansion.</p>
</div>
<label for="lambda">Lambda (λ): <span class="value-display" id="lambdaValue">0.200</span></label>
<input type="range" id="lambda" min="0" max="1" step="0.001" value="0.2">
<p>Segment number N (continuous): <span class="value-display" id="nValue">?</span></p>
<svg width="400" height="600" viewBox="0 0 400 600">
<polygon id="upperTriangle" fill="none" stroke="black" stroke-width="3" />
<polygon id="lowerTriangle" fill="none" stroke="black" stroke-width="3" />
<text id="upperText" x="180" fill="#1e40af" font-weight="bold" font-size="16">λN</text>
<text id="lowerText" x="180" fill="#1e40af" font-weight="bold" font-size="16">λt</text>
<!-- Oberes Dreieck Labels -->
<text x="90" y="255" fill="#374151" font-size="14">r₀e</text>
<text x="290" y="255" fill="#374151" font-size="14">r(N)</text>
<text x="140" y="270" fill="#059669" font-size="14">x</text>
<text x="260" y="270" fill="#059669" font-size="14">z</text>
<!-- Unteres Dreieck Labels -->
<text x="90" y="355" fill="#374151" font-size="14">r₀e</text>
<text x="290" y="355" fill="#374151" font-size="14">r(t)</text>
<text x="140" y="370" fill="#059669" font-size="14">x</text>
<text x="260" y="370" fill="#059669" font-size="14">z</text>
</svg>
<p id="equationResult">r(N) = r₀ · e^λN = ???</p>
<div class="theory-note" style="margin-top: 2rem; font-size: 0.8rem;">
<strong>φ-Quantization:</strong> The actual discrete structure arises through φ = (1+√5)/2 ≈ 1.618034,
where each segment scales by the factor φ. The continuous representation shows the
underlying exponential growth trend.
</div>
</div>
<script>
const lambdaSlider = document.getElementById('lambda');
const lambdaValue = document.getElementById('lambdaValue');
const nValue = document.getElementById('nValue');
const upperTriangle = document.getElementById('upperTriangle');
const lowerTriangle = document.getElementById('lowerTriangle');
const upperText = document.getElementById('upperText');
const lowerText = document.getElementById('lowerText');
const equationResult = document.getElementById('equationResult');
function updateTriangles() {
const lambda = parseFloat(lambdaSlider.value);
const r0 = 1;
// IMPORTANT: N is now a REAL NUMBER, no longer an integer simplification!
// The continuous segment number reflects the true nature of the theory
const n = 4 + 6 * lambda; // Continuous from 4 to 10
const rN = r0 * Math.exp(lambda * n);
// Display with higher precision for real numbers
lambdaValue.textContent = lambda.toFixed(3);
nValue.textContent = n.toFixed(4); // 4 decimal places for continuous N
// Coordinates adjusted for larger SVG (viewBox: 400×600)
// Center at x=200, upper triangle at y≈250, lower at y≈350
const scaleFactor = 30; // Reduced for better visibility
const upperY = 250 - lambda * n * scaleFactor;
const lowerY = 350 + lambda * n * scaleFactor;
// Triangles centered at x=200, width ±100
upperTriangle.setAttribute('points', `200,${upperY} 100,250 300,250`);
lowerTriangle.setAttribute('points', `200,${lowerY} 100,350 300,350`);
upperText.setAttribute('y', upperY - 10);
upperText.setAttribute('x', 180); // Centered
lowerText.setAttribute('y', lowerY + 25);
lowerText.setAttribute('x', 180); // Centered
// Result with higher precision
equationResult.textContent = `r(N) = r₀ · e^(λN) = ${rN.toFixed(6)} (N = ${n.toFixed(4)})`;
}
lambdaSlider.addEventListener('input', updateTriangles);
window.onload = updateTriangles;
</script>
</body>
</html>