
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
herbie shell --seed 2024055
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))
Please file a bug report with this information.
| vector-ref: index is out of range index: 7 valid range: [0, 6] vector: '#(73 113 133 133 113 93 73) | L | C | |
|---|---|---|---|
| (unnamed) | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/compiler.rkt | 45 | 6 |
| (unnamed) | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/ground-truth.rkt | 47 | 2 |
| ival-eval | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/ground-truth.rkt | 69 | 0 |
| batch-prepare-points | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/sampling.rkt | 113 | 0 |
| sample-points | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/sampling.rkt | 161 | 0 |
| setup-context! | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/mainloop.rkt | 300 | 0 |
| get-alternatives/report | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/sandbox.rkt | 169 | 0 |
| (unnamed) | /home/nightlies/herbie/artem-minus-and-trig-tuning/src/sandbox.rkt | 262 | 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 |