THE TRASH ONE -> LUNIT_TEST_A
import os import shutil import zipfile import json from datetime import datetime import numpy as np import pandas as pd # Environment Detection try: from google.colab import files, drive IN_COLAB = True except ImportError: IN_COLAB = False # Configuration & Paths PROJECT_NAME = "LUNIT_TEST_A_CORRECTED" TIMESTAMP = datetime.now().strftime("%Y%m%d_%H%M%S") OUTPUT_DIR = f"output_{TIMESTAMP}" ZIP_NAME = f"{PROJECT_NAME}_{TIMESTAMP}.zip" DRIVE_BASE_DIR = f"/content/drive/MyDrive/{PROJECT_NAME}" DRIVE_TARGET_DIR = os.path.join(DRIVE_BASE_DIR, OUTPUT_DIR) # Physical Constants PHI = (1.0 + np.sqrt(5.0)) / 2.0 A1_COEFF = 1.0 + (1.0 / (PHI**2)) # The corrected 1.381966... A2_TARGET = 1.0 / (PHI**3) # The 0.236067... asymptote def run_test_a_isolated(): # STEP 1 — SAVE TO COLAB WORKSPACE os.makedirs(OUTPUT_DIR, exist_ok=True) # Sweep ends at 1e-5. Beyond 1e-6, exact_resid - linear_pred approaches ~1e-16, ...