Numeric.Signal:interpolate from hsignal-0.2.7.1

Specification

?
\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{t - x}{a - z} \end{array} \]
(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}

Reproduce

?
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.

Backtrace

vector-ref: index is out of range index: 7 valid range: [0, 6] vector: '#(73 113 133 133 113 93 73)LC
(unnamed)/home/nightlies/herbie/artem-minus-and-trig-tuning/src/compiler.rkt456
(unnamed)/home/nightlies/herbie/artem-minus-and-trig-tuning/src/ground-truth.rkt472
ival-eval/home/nightlies/herbie/artem-minus-and-trig-tuning/src/ground-truth.rkt690
batch-prepare-points/home/nightlies/herbie/artem-minus-and-trig-tuning/src/sampling.rkt1130
sample-points/home/nightlies/herbie/artem-minus-and-trig-tuning/src/sampling.rkt1610
setup-context!/home/nightlies/herbie/artem-minus-and-trig-tuning/src/mainloop.rkt3000
get-alternatives/report/home/nightlies/herbie/artem-minus-and-trig-tuning/src/sandbox.rkt1690
(unnamed)/home/nightlies/herbie/artem-minus-and-trig-tuning/src/sandbox.rkt2626
(unnamed)/usr/local/racket/share/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/local/racket/share/pkgs/profile-lib/main.rkt90
(unnamed)/usr/local/racket/collects/racket/engine.rkt4224