\left(3 \cdot s\right) \cdot \log \left(\frac{1}{1 - \frac{u - 0.25}{0.75}}\right)
s \cdot \left(\log \left(\sqrt[3]{{\left(\mathsf{fma}\left(u, -1.3333333333333333, 1.3333333333333333\right)\right)}^{3}}\right) \cdot -3\right)
(FPCore (s u) :precision binary32 (* (* 3.0 s) (log (/ 1.0 (- 1.0 (/ (- u 0.25) 0.75))))))
(FPCore (s u) :precision binary32 (* s (* (log (cbrt (pow (fma u -1.3333333333333333 1.3333333333333333) 3.0))) -3.0)))
float code(float s, float u) {
return (3.0f * s) * logf((1.0f / (1.0f - ((u - 0.25f) / 0.75f))));
}
float code(float s, float u) {
return s * (logf(cbrtf(powf(fmaf(u, -1.3333333333333333f, 1.3333333333333333f), 3.0f))) * -3.0f);
}



Bits error versus s



Bits error versus u
Initial program 1.3
Simplified1.0
Applied egg-rr1.0
Final simplification1.0
herbie shell --seed 2022130
(FPCore (s u)
:name "Disney BSSRDF, sample scattering profile, upper"
:precision binary32
:pre (and (and (<= 0.0 s) (<= s 256.0)) (and (<= 0.25 u) (<= u 1.0)))
(* (* 3.0 s) (log (/ 1.0 (- 1.0 (/ (- u 0.25) 0.75))))))