fn julia_max0(x: f64) -> f64
Julia’s max(0, x): NaN stays NaN (Rust’s f64::max(0.0) would return 0).
max(0, x)
f64::max(0.0)