"""Original LCENJ educational calculation, CC0-1.0. Python3.10+ standard library.
No RF transmission, device access or measured input.
"""
from math import pi,sin,radians,degrees,atan
wavelength=3e8/60e9; d=wavelength/2; theta=radians(30)
phase=2*pi*d*sin(theta)/wavelength; tx=[0,2]; rx=[0,.5,1,1.5]; virtual=sorted(t+r for t in tx for r in rx)
separation=degrees(atan(.5/3))
assert abs(degrees(phase)-90)<1e-10 and virtual==[0,.5,1,1.5,2,2.5,3,3.5] and len(set(virtual))==8
print(f"phase={degrees(phase):g} deg; virtual positions/lambda={virtual}")
print(f"virtual aperture={3.5*wavelength*1000:g} mm; example angular separation={separation:.4f} deg")
print("Calculated hypothetical examples only; no hardware, RF or measured-data test.")
