
(FPCore (x) :precision binary64 (let* ((t_0 (sin (* x 0.5)))) (/ (* (* (/ 8.0 3.0) t_0) t_0) (sin x))))
double code(double x) {
double t_0 = sin((x * 0.5));
return (((8.0 / 3.0) * t_0) * t_0) / sin(x);
}
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: t_0
t_0 = sin((x * 0.5d0))
code = (((8.0d0 / 3.0d0) * t_0) * t_0) / sin(x)
end function
public static double code(double x) {
double t_0 = Math.sin((x * 0.5));
return (((8.0 / 3.0) * t_0) * t_0) / Math.sin(x);
}
def code(x): t_0 = math.sin((x * 0.5)) return (((8.0 / 3.0) * t_0) * t_0) / math.sin(x)
function code(x) t_0 = sin(Float64(x * 0.5)) return Float64(Float64(Float64(Float64(8.0 / 3.0) * t_0) * t_0) / sin(x)) end
function tmp = code(x) t_0 = sin((x * 0.5)); tmp = (((8.0 / 3.0) * t_0) * t_0) / sin(x); end
code[x_] := Block[{t$95$0 = N[Sin[N[(x * 0.5), $MachinePrecision]], $MachinePrecision]}, N[(N[(N[(N[(8.0 / 3.0), $MachinePrecision] * t$95$0), $MachinePrecision] * t$95$0), $MachinePrecision] / N[Sin[x], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(x \cdot 0.5\right)\\
\frac{\left(\frac{8}{3} \cdot t\_0\right) \cdot t\_0}{\sin x}
\end{array}
\end{array}
herbie shell --seed 2024196
(FPCore (x)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, A"
:precision binary64
:alt
(! :herbie-platform default (/ (/ (* 8 (sin (* x 1/2))) 3) (/ (sin x) (sin (* x 1/2)))))
(/ (* (* (/ 8.0 3.0) (sin (* x 0.5))) (sin (* x 0.5))) (sin x)))
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 #t #t #t #f #t #f #f #t #f #f #f #f #f #f #f #f #f #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 |
| compute-local-errors | /home/nightlies/herbie/zane-odyssey-timeline/src/core/localize.rkt | 105 | 0 |
| batch-localize-errors | /home/nightlies/herbie/zane-odyssey-timeline/src/core/localize.rkt | 91 | 0 |
| localize! | /home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt | 187 | 0 |
| run-iter! | /home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt | 70 | 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 |