
(FPCore (x y z t) :precision binary64 (- (+ (* x (log y)) (* z (log (- 1.0 y)))) t))
double code(double x, double y, double z, double t) {
return ((x * log(y)) + (z * log((1.0 - y)))) - t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x * log(y)) + (z * log((1.0d0 - y)))) - t
end function
public static double code(double x, double y, double z, double t) {
return ((x * Math.log(y)) + (z * Math.log((1.0 - y)))) - t;
}
def code(x, y, z, t): return ((x * math.log(y)) + (z * math.log((1.0 - y)))) - t
function code(x, y, z, t) return Float64(Float64(Float64(x * log(y)) + Float64(z * log(Float64(1.0 - y)))) - t) end
function tmp = code(x, y, z, t) tmp = ((x * log(y)) + (z * log((1.0 - y)))) - t; end
code[x_, y_, z_, t_] := N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(z * N[Log[N[(1.0 - y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \log y + z \cdot \log \left(1 - y\right)\right) - t
\end{array}
herbie shell --seed 2024196
(FPCore (x y z t)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, B"
:precision binary64
:alt
(! :herbie-platform default (- (* (- z) (+ (+ (* 1/2 (* y y)) y) (* (/ 1/3 (* 1 (* 1 1))) (* y (* y y))))) (- t (* x (log y)))))
(- (+ (* x (log y)) (* z (log (- 1.0 y)))) t))
Please file a bug report with this information.
| vector-set!: contract violation expected: exact-nonnegative-integer? given: -1 argument position: 2nd first argument...: '#(#f #t #f #f #f #f #f #f #f #f) | L | C | |
|---|---|---|---|
| backward-pass | /home/nightlies/rival/main/eval/adjust.rkt | 8 | 0 |
| rival-machine-adjust | /home/nightlies/rival/main/eval/run.rkt | 98 | 0 |
| rival-machine-full | /home/nightlies/rival/main/eval/main.rkt | 16 | 0 |
| rival-apply | /home/nightlies/rival/main/eval/main.rkt | 56 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
| (unnamed) | /home/nightlies/herbie/zane-odyssey-timeline/src/sampling.rkt | 159 | 4 |
| ival-eval | /home/nightlies/herbie/zane-odyssey-timeline/src/sampling.rkt | 153 | 0 |
| <eval-prog-real> | /home/nightlies/herbie/zane-odyssey-timeline/src/sampling.rkt | 188 | 2 |
| predict-errors | /home/nightlies/herbie/zane-odyssey-timeline/src/explain.rkt | 86 | 0 |
| explain | /home/nightlies/herbie/zane-odyssey-timeline/src/explain.rkt | 736 | 0 |
| explain! | /home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt | 339 | 0 |
| mutate! | /home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt | 62 | 0 |
| run-improve! | /home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt | 48 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-odyssey-timeline/src/sandbox.rkt | 167 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-odyssey-timeline/src/sandbox.rkt | 261 | 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 |