Prism: Angle of Deviation Curve-Fitting

Simulates a non-linear regression workflow on synthetic experimental data containing systematic and random errors. Evaluates the effects of random measurement noise, systematic alignment offsets, and uncalibrated geometric parameters on the extracted refractive index.

System Parameters

Target Material
True bulk refractive index. Overridden if a specific wavelength is selected.
Geometric Calibration
True physical angle (Solver assumes exactly 60°).
Goniometer Alignment
Rigidly shifts data (e.g., inaccurate normal reference).
Visual Precision
Gaussian scatter scale multiplier.
Plot Limits
Extracted Index (nglass)
--
True Value: --
Extraction Error (Δn)
--
Deviation from True Index
Non-Linear Regression Fit
Fit Residuals

Angle of Deviation Regression

Governing Analytical Model
δ(θtrue) = θtrue + arcsin[ sin A [ (nglass / nair)2 − sin2θtrue ]1/2 − cos A sin θtrue ] − A

1. Forward Modeling vs. Inverse Regression

The true angle of deviation (δ) is physically governed by the true incident angle (θtrue), the prism apex angle (A), the refractive index of the prism (nglass), and the refractive index of the ambient medium (nair). An inverse curve-fitting regression calculates the unknown variable (nglass) from a discrete array of physical measurements by minimizing the sum of squared residuals (SSR) between the theoretical model and the empirical data.

This simulation employs a 1D Golden Section Search bounded between nglass = [1.60, 1.90]. The algorithm iteratively narrows the bracketed interval containing the SSR minimum by evaluating the objective function at internal points defined by the golden ratio, φ = (1 + 51/2) / 2. The optimization loop terminates when the bracket width falls below a specified tolerance limit (10-6).

2. Metrological Errors & Residual Signatures

The 1-Degree-of-Freedom (1-DOF) regression solver modifies only nglass to minimize the SSR. Because of this mathematical constraint, the solver cannot absorb structural geometric errors without generating characteristic residual signatures.