(FPCore (x y z) :precision binary64 (sqrt (/ (+ (+ (* x x) (* y y)) (* z z)) 3.0)))
double code(double x, double y, double z) { return sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0)); }
real(8) function code(x, y, z) real(8), intent (in) :: x real(8), intent (in) :: y real(8), intent (in) :: z code = sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0d0)) end function
public static double code(double x, double y, double z) { return Math.sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0)); }
def code(x, y, z): return math.sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0))
function code(x, y, z) return sqrt(Float64(Float64(Float64(Float64(x * x) + Float64(y * y)) + Float64(z * z)) / 3.0)) end
function tmp = code(x, y, z) tmp = sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0)); end
code[x_, y_, z_] := N[Sqrt[N[(N[(N[(N[(x * x), $MachinePrecision] + N[(y * y), $MachinePrecision]), $MachinePrecision] + N[(z * z), $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]], $MachinePrecision]
\begin{array}{l} \\ \sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}} \end{array}
herbie shell --seed 2024345
(FPCore (x y z)
:name "Data.Array.Repa.Algorithms.Pixel:doubleRmsOfRGB8 from repa-algorithms-3.4.0.1"
:precision binary64
:pre (TRUE)
:alt
(! :herbie-platform default (if (< z -63964793941097760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (- z) (sqrt 3)) (if (< z 7320293694404182000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (sqrt (+ (+ (* z z) (* x x)) (* y y))) (sqrt 3)) (* (sqrt 3333333333333333/10000000000000000) z))))
(sqrt (/ (+ (+ (* x x) (* y y)) (* z z)) 3.0)))
Please file a bug report with this information.
egglog executable not found in PATH | L | C | |
---|---|---|---|
run-egglog-equal? | /home/nightlies/herbie/varun10p-egglog-multi/src/core/egglog-herbie.rkt | 252 | 0 |
find-preprocessing | /home/nightlies/herbie/varun10p-egglog-multi/src/core/preprocess.rkt | 91 | 0 |
run-improve! | /home/nightlies/herbie/varun10p-egglog-multi/src/core/mainloop.rkt | 46 | 0 |
get-alternatives/report | /home/nightlies/herbie/varun10p-egglog-multi/src/api/sandbox.rkt | 186 | 0 |
(unnamed) | /home/nightlies/herbie/varun10p-egglog-multi/src/api/sandbox.rkt | 282 | 6 |
(unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
(unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |