Download python/syf_core.py from syfcore/syf-minimal: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/syfcore/syf-minimal/resolve/main/python/syf_core.py
- Command line
-
hf download hf://syfcore/syf-minimal/python/syf_core.py
-
curl -L -o syf_core.py https://huggingface.co/syfcore/syf-minimal/resolve/main/python/syf_core.py
339 Bytes
| # 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 | |