File size: 339 Bytes
b4f0dea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# syf_core.py
def syf_core(F: float, E: float, K: float) -> float:
"""
Pure SYF invariant computation.
"""
if F < 0:
raise ValueError("F must be >= 0")
if not (0.0 <= E <= 1.0):
raise ValueError("E must be in [0, 1]")
if K <= 0:
raise ValueError("K must be > 0")
return (F * E) / K
|