
(FPCore (s u) :precision binary32 (* s (log (/ 1.0 (- 1.0 (* 4.0 u))))))
float code(float s, float u) {
return s * logf((1.0f / (1.0f - (4.0f * u))));
}
real(4) function code(s, u)
real(4), intent (in) :: s
real(4), intent (in) :: u
code = s * log((1.0e0 / (1.0e0 - (4.0e0 * u))))
end function
function code(s, u) return Float32(s * log(Float32(Float32(1.0) / Float32(Float32(1.0) - Float32(Float32(4.0) * u))))) end
function tmp = code(s, u) tmp = s * log((single(1.0) / (single(1.0) - (single(4.0) * u)))); end
\begin{array}{l}
\\
s \cdot \log \left(\frac{1}{1 - 4 \cdot u}\right)
\end{array}
herbie shell --seed 2024158 -o setup:simplify
(FPCore (s u)
:name "Disney BSSRDF, sample scattering profile, lower"
:precision binary32
:pre (and (and (<= 0.0 s) (<= s 256.0)) (and (<= 2.328306437e-10 u) (<= u 0.25)))
(* s (log (/ 1.0 (- 1.0 (* 4.0 u))))))
Please file a bug report with this information.
| binary32 is not implemented in this comparison | L | C | |
|---|---|---|---|
| run-sollya | /home/nightlies/herbie/artem-popl-s-eval/src/run-sollya.rkt | 173 | 0 |
| sample-points | /home/nightlies/herbie/artem-popl-s-eval/src/sampling.rkt | 180 | 0 |
| setup-context! | /home/nightlies/herbie/artem-popl-s-eval/src/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/artem-popl-s-eval/src/sandbox.rkt | 171 | 0 |
| (unnamed) | /home/nightlies/herbie/artem-popl-s-eval/src/sandbox.rkt | 265 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |