
(FPCore (x y) :precision binary64 (- 1.0 (log (- 1.0 (/ (- x y) (- 1.0 y))))))
double code(double x, double y) {
return 1.0 - log((1.0 - ((x - y) / (1.0 - y))));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 - log((1.0d0 - ((x - y) / (1.0d0 - y))))
end function
public static double code(double x, double y) {
return 1.0 - Math.log((1.0 - ((x - y) / (1.0 - y))));
}
def code(x, y): return 1.0 - math.log((1.0 - ((x - y) / (1.0 - y))))
function code(x, y) return Float64(1.0 - log(Float64(1.0 - Float64(Float64(x - y) / Float64(1.0 - y))))) end
function tmp = code(x, y) tmp = 1.0 - log((1.0 - ((x - y) / (1.0 - y)))); end
code[x_, y_] := N[(1.0 - N[Log[N[(1.0 - N[(N[(x - y), $MachinePrecision] / N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \log \left(1 - \frac{x - y}{1 - y}\right)
\end{array}
herbie shell --seed 2024196
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, B"
:precision binary64
:alt
(! :herbie-platform default (if (< y -8128475261947241/100000000) (- 1 (log (- (/ x (* y y)) (- (/ 1 y) (/ x y))))) (if (< y 30094271212461764000000000) (log (/ (exp 1) (- 1 (/ (- x y) (- 1 y))))) (- 1 (log (- (/ x (* y y)) (- (/ 1 y) (/ x y))))))))
(- 1.0 (log (- 1.0 (/ (- x y) (- 1.0 y))))))
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) | 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 |