DON - html representation

Paste ID: 036d457d

Created at: 2026-06-22 01:37:08

deep information observation pathfinding relationships theory

Content

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Unified Theory of Relativistic Optical Computation & Temporal Prediction</title>
    <!-- MathJax for rendering scientific equations -->
    <script>
        MathJax = {
            tex: { 
                inlineMath: [['$', '$'], ['\\(', '\\)']],
                tags: 'ams' 
            },
            svg: { fontCache: 'global' }
        };
    </script>
    <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
    <style>
        :root {
            --bg-color: #0b0f19;
            --card-bg: #141a26;
            --text-primary: #e6edf3;
            --text-secondary: #8b949e;
            --accent-blue: #58a6ff;
            --accent-green: #3fb950;
            --border-color: #30363d;
            --def-bg: #1c2333;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            margin: 0;
            padding: 40px 20px;
            line-height: 1.6;
        }
        .container {
            max-width: 1100px;
            margin: 0 auto;
        }
        h1, h2, h3 {
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
            margin-top: 40px;
        }
        h1 { 
            text-align: center; 
            border-bottom: 2px solid var(--accent-blue); 
            font-size: 2.4rem;
        }
        .abstract {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            font-style: italic;
        }
        .phase-block {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        }
        .equation-box {
            background: #0b0f19;
            border-left: 4px solid var(--accent-blue);
            padding: 20px;
            margin-bottom: 15px;
            border-radius: 4px;
            overflow-x: auto;
            font-size: 1.1rem;
        }
        /* Symbol Definition List Layout */
        .symbol-grid {
            display: grid;
            grid-template-columns: 1fr 3fr;
            gap: 8px 20px;
            background: var(--def-bg);
            border-radius: 6px;
            padding: 15px;
            margin-top: 15px;
            border: 1px solid var(--border-color);
        }
        .symbol-item {
            display: contents;
        }
        .symbol-char {
            font-family: 'Times New Roman', Times, serif;
            font-style: italic;
            font-weight: bold;
            color: var(--accent-blue);
            font-size: 1.1rem;
        }
        .symbol-desc {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        
        /* Simulation Panel Styling */
        .sim-panel {
            background: var(--card-bg);
            border: 2px solid var(--accent-green);
            border-radius: 8px;
            padding: 25px;
            margin-top: 40px;
        }
        .controls-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        @media (max-width: 768px) {
            .symbol-grid { grid-template-columns: 1fr; gap: 10px; }
            .controls-grid { grid-template-columns: 1fr; }
        }
        .slider-group {
            background: var(--bg-color);
            padding: 15px;
            border-radius: 6px;
        }
        .slider-group label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        input[type=range] {
            width: 100%;
            background: var(--border-color);
            height: 4px;
            -webkit-appearance: none;
            appearance: none;
        }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent-blue);
            cursor: pointer;
        }
        .result-data {
            background: var(--bg-color);
            padding: 15px;
            border-radius: 6px;
            margin-top: 10px;
        }
        .val { color: var(--accent-green); font-weight: bold; font-family: monospace; }
        .sim-canvas {
            background: #0b0f19;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            width: 100%;
            height: 150px;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>Unified Theory of Relativistic Optical Computation & Temporal Prediction</h1>
    
    <div class="abstract">
        <strong>Abstract:</strong> This framework details the mathematical propagation of a raw cosmic photon through an engineered "Near-Singularity Meta-Lens". By precisely manipulating the spacetime curvature around the photon, the system induces gravitational time-dilation and Shapiro delay. The photonic data is subsequently routed through a macro-controlled modulation network, extrapolated via a predictive kernel, and filtered through a societal risk operator. This document provides the long-form mathematical proof and comprehensive symbol definitions for each operational phase.
    </div>

    <!-- ================= PHASE I ================= -->
    <div class="phase-block">
        <h2>Phase I: Photon Inception & Initial State</h2>
        <p>The system begins at the Deep Space Outdoor Observatory. The incoming photon is modeled as a wave packet. This is the unaltered baseline state of the event.</p>
        
        <div class="equation-box">
            <strong>Long-Form Equation:</strong>
            \[ \Psi_0(\mathbf{x}, t_0) = \int_{-\infty}^{\infty} A(\omega) e^{i(\mathbf{k} \cdot \mathbf{x} - \omega t_0)} d\omega \]
        </div>

        <div class="symbol-grid">
            <div class="symbol-item"><div class="symbol-char">\(\Psi_0\)</div><div class="symbol-desc">The initial complex wavefunction of the incoming light packet.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathbf{x}\)</div><div class="symbol-desc">The 3-dimensional spatial coordinate vector of the photon.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(t_0\)</div><div class="symbol-desc">The exact absolute time of photon emission at the source star or object.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(A(\omega)\)</div><div class="symbol-desc">The spectral amplitude function, defining the intensity of the source light across varying frequencies.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(e\)</div><div class="symbol-desc">Euler's mathematical constant (approx 2.718), serving as the base for the complex exponential function.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(i\)</div><div class="symbol-desc">The imaginary unit (\(\sqrt{-1}\)), used to represent the wave's phase.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathbf{k}\)</div><div class="symbol-desc">The wave vector, representing the photon's momentum and direction of travel.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\omega\)</div><div class="symbol-desc">The angular frequency of the photon wave (\(2\pi f\)).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(d\omega\)</div><div class="symbol-desc">The differential variable for frequency, indicating summation over the continuous spectrum.</div></div>
        </div>
    </div>

    <!-- ================= PHASE II ================= -->
    <div class="phase-block">
        <h2>Phase II: Near-Singularity Lens Convolution & Time Dilation</h2>
        <p>The photon enters the "Near-Singularity Accelerator Lens". The immense gravitational gradient of the lens warps spacetime, bending the photon's trajectory and inducing measurable time dilation.</p>
        
        <div class="equation-box">
            <strong>(II.a) Gravitational Time Dilation Factor:</strong>
            \[ \gamma = \sqrt{ 1 - \frac{2 G M_{\text{lens}}}{c^2 r_{\text{eff}}} } \]
            <br>
            <strong>(II.b) Gravitational Deflection Angle:</strong>
            \[ \theta = \frac{4 G M_{\text{lens}}}{c^2 r_{\text{eff}}} \]
            <br>
            <strong>(II.c) The Complete Lens Optical Operator:</strong>
            \[ \mathcal{O}_{\text{lens}}[\Psi_0] = \int_{\text{lens volume}} \gamma \left( \nabla^2 \Psi_0 - \frac{m_{\gamma}^2 c^2}{\hbar^2} \Psi_0 \right) d^3x \]
            <br>
            <strong>(II.d) Gravitational Shapiro Delay:</strong>
            \[ \Delta t = \frac{2 G M_{\text{lens}}}{c^3} \ln\left( 1 + \frac{D_{\text{source}}}{r_{\text{eff}}} \right) \]
        </div>

        <div class="symbol-grid">
            <div class="symbol-item"><div class="symbol-char">\(\gamma\)</div><div class="symbol-desc">The dimensionless Lorentz factor. Values < 1 indicate physical time dilation relative to a distant observer.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(G\)</div><div class="symbol-desc">Newton's universal gravitational constant (\(6.674 \times 10^{-11} \text{ m}^3 \text{ kg}^{-1} \text{ s}^{-2}\)).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(M_{\text{lens}}\)</div><div class="symbol-desc">The effective, engineered mass of the meta-lens (measured in kilograms).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(c\)</div><div class="symbol-desc">The speed of light in a vacuum (\(2.998 \times 10^8 \text{ m/s}\)).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(r_{\text{eff}}\)</div><div class="symbol-desc">The effective radial distance from the center of the singularity to the photon's path. As \(r_{\text{eff}} \to \frac{2GM}{c^2}\), dilation approaches infinity.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\theta\)</div><div class="symbol-desc">The Einstein deflection angle (measured in radians). This physically bends the photon's trajectory.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{O}_{\text{lens}}\)</div><div class="symbol-desc">The operator that transforms the baseline wavefunction \(\Psi_0\) into its dilated, curved spacetime state.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\nabla^2\)</div><div class="symbol-desc">The Laplace operator (second spatial derivative) representing the photon's spatial distribution.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(m_{\gamma}\)</div><div class="symbol-desc">The effective rest mass of the photon (theoretically zero, but modeled as a virtual mass in extreme gravity).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\hbar\)</div><div class="symbol-desc">The reduced Planck constant, bridging quantum wave behavior with gravitational fields.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\Delta t\)</div><div class="symbol-desc">The propagation delay (Shapiro delay) caused by the lens, measured in microseconds.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(D_{\text{source}}\)</div><div class="symbol-desc">The original physical distance from the light source to the edge of the meta-lens.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\ln\)</div><div class="symbol-desc">The natural logarithm function, scaling the delay logarithmically based on the lens proximity.</div></div>
        </div>
    </div>

    <!-- ================= PHASE III ================= -->
    <div class="phase-block">
        <h2>Phase III: Router Syndication & Macro-Driven Data Modulation</h2>
        <p>Passing through the CMOS sensor, the dilated photonic data is translated into digital frames. The "HP The Machine" control unit selects an operational Macro to dictate how the data will be utilized (e.g., deep-space logging, generative gaming, or live communication).</p>
        
        <div class="equation-box">
            <strong>Long-Form Equation:</strong>
            \[ S_{\text{data}}(t) = [ L(t) \cdot \mathcal{M}_{\text{macro}}(t) \cdot \alpha_{\text{freq}} ] \oplus \mathcal{B}_{\text{inject}}(t) \]
        </div>

        <div class="symbol-grid">
            <div class="symbol-item"><div class="symbol-char">\(S_{\text{data}}(t)\)</div><div class="symbol-desc">The final, modulated digital data stream being transmitted to the prediction kernel at time \(t\).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(L(t)\)</div><div class="symbol-desc">The raw optical data stream translated directly from the dilated photon's pulse.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{M}_{\text{macro}}(t)\)</div><div class="symbol-desc">The selected operational Macro function. This acts as a software filter dictating the intended usage of the incoming light data.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\alpha_{\text{freq}}\)</div><div class="symbol-desc">The frequency modulation scaling factor used to encode the analog light signal into machine-readable bits.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\oplus\)</div><div class="symbol-desc">The Exclusive-OR (XOR) bitwise operator, used here to mathematically inject new data packets without corrupting the original bitstream.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{B}_{\text{inject}}(t)\)</div><div class="symbol-desc">The "novel bit addition" function representing external wireless signals, memory loaders, or secondary router inputs injected in real-time.</div></div>
        </div>
    </div>

    <!-- ================= PHASE IV ================= -->
    <div class="phase-block">
        <h2>Phase IV: Predictive Extrapolation Kernel & Full Time of Arrival</h2>
        <p>The modulated stream is fed into the FPGA/NVLink cluster. Here, the cross-correlative Relativistic Memory Kernel processes the time-dilated data to extrapolate the photon's future state and arrival.</p>
        
        <div class="equation-box">
            <strong>(IV.a) Full Relativistic Time-of-Arrival Equation:</strong>
            \[ t_{\text{arrival}} = t_{\text{emit}} + \frac{1}{c} \int_{\text{source}}^{\text{obs}} \left[ 1 - \frac{2 G M(r)}{c^2 r} \right]^{-1} dr - \frac{\mathbf{v}_{\text{obs}} \cdot \hat{\mathbf{k}}}{c^2} D \]
            <br>
            <strong>(IV.b) The Future State Prediction Operator:</strong>
            \[ \mathcal{P}(t_{\text{future}}) = \int_{0}^{t_{\text{now}}} \mathcal{K}(t_{\text{now}} - \tau) \cdot \left[ \frac{d}{dt} ( t_{\text{arrival}} ) \right] \cdot e^{-\frac{(t_{\text{future}} - \tau)^2}{2\sigma^2}} d\tau \]
        </div>

        <div class="symbol-grid">
            <div class="symbol-item"><div class="symbol-char">\(t_{\text{arrival}}\)</div><div class="symbol-desc">The predicted, corrected absolute timestamp of when the photon arrives at the observer after passing the lens.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(t_{\text{emit}}\)</div><div class="symbol-desc">The initial timestamp of emission (\(t_0\) from Phase I).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(M(r)\)</div><div class="symbol-desc">The mass distribution profile of the gravitational lens integrated along the exact path of the photon.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathbf{v}_{\text{obs}}\)</div><div class="symbol-desc">The velocity vector of the observer's platform (Earth, satellite, or router node).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\hat{\mathbf{k}}\)</div><div class="symbol-desc">The unit vector representing the propagation direction of the photon wave.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(D\)</div><div class="symbol-desc">The comoving distance to the source, accounting for cosmological expansion of the universe.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{P}(t_{\text{future}})\)</div><div class="symbol-desc">The computed probability density of the event occurring at a specific future time.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{K}(t_{\text{now}} - \tau)\)</div><div class="symbol-desc">The Relativistic Memory Kernel, which heavily weights recent historical events over older ones to determine predictive trends.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\frac{d}{dt}\)</div><div class="symbol-desc">The derivative with respect to time, representing the rate of change of the arrival timestamp.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(e\)</div><div class="symbol-desc">The exponential function, used to create a Gaussian bell-curve for prediction uncertainty.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\sigma\)</div><div class="symbol-desc">The standard deviation (error margin) of the system. Higher time dilation (\(\gamma\)) mathematically reduces \(\sigma\), increasing predictive confidence.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\tau\)</div><div class="symbol-desc">The integration variable representing time in the recent past.</div></div>
        </div>
    </div>

    <!-- ================= PHASE V ================= -->
    <div class="phase-block">
        <h2>Phase V: Societal Feedback & Risk Aggregation Operator</h2>
        <p>The predicted future state does not exist in isolation. The system concludes with an Ethical Interpretive Layer and a Risk Operator to assess how releasing this prediction will impact human psychology, demographics, and data integrity.</p>
        
        <div class="equation-box">
            <strong>(V.a) The Risk Aggregation Vector:</strong>
            \[ \mathcal{R}_{\text{risk}}[U] = \lambda_{\text{hysteria}} \|\nabla U\|_{\text{propagation}} + \delta(t_{\text{release}} \in \text{agenda}) \cdot \mathcal{Q}_{\text{manipulation}} \]
            <br>
            <strong>(V.b) The Final Unified Societal Output:</strong>
            \[ \Psi_{\text{societal}} = \mathcal{R}_{\text{risk}} \left( \mathcal{E}_{\text{ethical}} \left( \mathcal{P}(t_{\text{future}}) \right) \right) \]
        </div>

        <div class="symbol-grid">
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{R}_{\text{risk}}\)</div><div class="symbol-desc">The operator responsible for calculating the societal risk vector of a given prediction.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(U\)</div><div class="symbol-desc">The current state of the input data (global sentiment, demographic stability, historical trends).</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\lambda_{\text{hysteria}}\)</div><div class="symbol-desc">A constant representing the sensitivity of the media/society to panic and misinformation.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\|\nabla U\|_{\text{propagation}}\)</div><div class="symbol-desc">The magnitude of the gradient of data propagation across global communication networks.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\delta(...)\)</div><div class="symbol-desc">The Dirac delta function. It returns a value of 1 only if the condition inside the parenthesis is true.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(t_{\text{release}}\)</div><div class="symbol-desc">The timestamp at which the system broadcasts the predicted findings to the public.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\text{agenda}\)</div><div class="symbol-desc">A set of predetermined, government/operator-approved release windows.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{Q}_{\text{manipulation}}\)</div><div class="symbol-desc">A non-linear multiplier representing active censorship, propaganda, or suppression of the truth.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\Psi_{\text{societal}}\)</div><div class="symbol-desc">The final physical outcome determining how the predicted future actually impacts human life and events.</div></div>
            <div class="symbol-item"><div class="symbol-char">\(\mathcal{E}_{\text{ethical}}\)</div><div class="symbol-desc">The Ethical Interpretive Layer gatekeeper, ensuring "hostile space-time transmissions" are blocked before they can cause hysteria.</div></div>
        </div>
    </div>

    <!-- ================= LIVE INTERACTIVE SIMULATOR (PROOF OF CONCEPT) ================= -->
    <div class="sim-panel">
        <h2 style="border-bottom-color: var(--accent-green); text-align: center; border-bottom: 2px solid var(--accent-green);">Interactive Proof of Concept: Time Dilation Simulator</h2>
        <p style="text-align: center; margin-bottom: 20px;">Utilize the sliders below to manipulate the mass and radius of the "Near-Singularity Lens". Observe in real-time how these changes alter the photon's deflection, time delay, and the resulting predicted future confidence.</p>
        
        <div class="controls-grid">
            <div class="left-controls">
                <div class="slider-group">
                    <label for="massSlider">Lens Mass (\(M_{\text{lens}}\)): <span id="massVal">1.0</span> \(M_{\odot}\)</label>
                    <input type="range" id="massSlider" min="0.1" max="10" step="0.1" value="1.0">
                </div>
                <div class="slider-group">
                    <label for="radiusSlider">Distance from Singularity (\(r_{\text{eff}}\)): <span id="radiusVal">1000</span> km</label>
                    <input type="range" id="radiusSlider" min="100" max="10000" step="10" value="1000">
                </div>
                <div class="slider-group">
                    <label for="sourceDistSlider">Source Distance (\(D_{\text{source}}\)): <span id="sourceVal">100</span> Ly</label>
                    <input type="range" id="sourceDistSlider" min="10" max="1000" step="10" value="100">
                </div>
            </div>
            
            <div class="right-results">
                <div class="result-data">
                    <p><strong>Deflection Angle (\(\theta\)):</strong> <span id="deflectionAngle" class="val">0.0</span> arcseconds</p>
                    <p><strong>Time Dilation (\(\gamma\)):</strong> <span id="dilationFactor" class="val">1.000</span></p>
                    <p><strong>Shapiro Delay (\(\Delta t\)):</strong> <span id="shapiroDelay" class="val">0.0</span> \(\mu\)s</p>
                    <hr style="border-color: var(--border-color);">
                    <p><strong>Predicted Future Confidence (\(\mathcal{P}\)):</strong></p>
                    <div style="background: #0b0f19; height: 20px; width: 100%; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden;">
                        <div id="predictionBar" style="height: 100%; width: 50%; background: var(--accent-blue); transition: width 0.2s;"></div>
                    </div>
                    <p style="margin-top: 5px; text-align: right; font-size: 1.2rem;"><span id="predictionValue" class="val">50.0%</span></p>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    // --- Interactive Simulation Logic ---
    const G = 6.67430e-11; // m^3 kg^-1 s^-2
    const c = 299792458;   // m/s
    const M_sun = 1.98841e30; // kg
    const ly_to_m = 9.4607e15; // m

    const massSlider = document.getElementById('massSlider');
    const radiusSlider = document.getElementById('radiusSlider');
    const sourceDistSlider = document.getElementById('sourceDistSlider');
    const massVal = document.getElementById('massVal');
    const radiusVal = document.getElementById('radiusVal');
    const sourceVal = document.getElementById('sourceVal');
    const deflAngle = document.getElementById('deflectionAngle');
    const dilFactor = document.getElementById('dilationFactor');
    const shapiroDelay = document.getElementById('shapiroDelay');
    const predictionVal = document.getElementById('predictionValue');
    const predictionBar = document.getElementById('predictionBar');

    function updateSimulator() {
        const M_solar = parseFloat(massSlider.value);
        const r_km = parseFloat(radiusSlider.value);
        const dist_ly = parseFloat(sourceDistSlider.value);

        massVal.textContent = M_solar.toFixed(1);
        radiusVal.textContent = r_km.toFixed(0);
        sourceVal.textContent = dist_ly.toFixed(0);

        const M_lens = M_solar * M_sun;
        const r_eff = r_km * 1000;
        const D_source = dist_ly * ly_to_m;

        const R_s = (2 * G * M_lens) / (c * c);
        let gamma = 1.0;
        let isSingularity = false;
        if (r_eff <= R_s) {
            gamma = 0.0;
            isSingularity = true;
        } else {
            gamma = Math.sqrt(1 - (R_s / r_eff));
        }
        dilFactor.textContent = gamma.toFixed(4);

        let theta_rad = (4 * G * M_lens) / (c * c * r_eff);
        let theta_arcsec = theta_rad * (180 / Math.PI) * 3600;
        deflAngle.textContent = isSingularity ? "?" : theta_arcsec.toFixed(4);

        let delta_t = 0;
        if (!isSingularity && r_eff > 0) {
            delta_t = (2 * G * M_lens / (c * c * c)) * Math.log(1 + (D_source / r_eff));
        } else {
            delta_t = Infinity;
        }
        let delta_t_us = delta_t * 1e6;
        shapiroDelay.textContent = isSingularity ? "?" : delta_t_us.toFixed(4);

        // Prediction Confidence
        let predScore = 50;
        if (!isSingularity) {
            let massFactor = Math.min(M_solar / 5.0, 1.0);
            let radiusFactor = Math.max(0, 1.0 - (r_km / 10000.0)); 
            let delayFactor = Math.min((delta_t_us / 500.0), 1.0);
            predScore = (massFactor * 40) + (radiusFactor * 20) + (delayFactor * 30) + 10;
            predScore = Math.min(100, Math.max(0, predScore));
        } else {
            predScore = 0;
        }
        predictionVal.textContent = predScore.toFixed(1) + "%";
        predictionBar.style.width = predScore + "%";
        if (predScore > 75) predictionBar.style.background = 'var(--accent-red)';
        else if (predScore > 45) predictionBar.style.background = 'var(--accent-blue)';
        else predictionBar.style.background = 'var(--accent-green)';
    }

    massSlider.addEventListener('input', updateSimulator);
    radiusSlider.addEventListener('input', updateSimulator);
    sourceDistSlider.addEventListener('input', updateSimulator);
    updateSimulator();
</script>
</body>
</html>

Share this Paste