Average Error: 0.4 → 0.1
Time: 36.3s
Precision: binary64
Cost: 7104
\[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
\[\mathsf{fma}\left(60, \frac{y - x}{t - z}, a \cdot 120\right) \]
(FPCore (x y z t a)
 :precision binary64
 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
(FPCore (x y z t a)
 :precision binary64
 (fma 60.0 (/ (- y x) (- t z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
	return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
double code(double x, double y, double z, double t, double a) {
	return fma(60.0, ((y - x) / (t - z)), (a * 120.0));
}
function code(x, y, z, t, a)
	return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0))
end
function code(x, y, z, t, a)
	return fma(60.0, Float64(Float64(y - x) / Float64(t - z)), Float64(a * 120.0))
end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_] := N[(60.0 * N[(N[(y - x), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\mathsf{fma}\left(60, \frac{y - x}{t - z}, a \cdot 120\right)

Error

Target

Original0.4
Target0.2
Herbie0.1
\[\frac{60}{\frac{z - t}{x - y}} + a \cdot 120 \]

Derivation

  1. Initial program 0.4

    \[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
  2. Simplified0.1

    \[\leadsto \color{blue}{\mathsf{fma}\left(60, \frac{y - x}{t - z}, a \cdot 120\right)} \]
    Proof
    (fma.f64 60 (/.f64 (-.f64 y x) (-.f64 t z)) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (Rewrite<= *-lft-identity_binary64 (*.f64 1 (/.f64 (-.f64 y x) (-.f64 t z)))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (*.f64 (Rewrite<= metadata-eval (/.f64 -1 -1)) (/.f64 (-.f64 y x) (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (Rewrite<= times-frac_binary64 (/.f64 (*.f64 -1 (-.f64 y x)) (*.f64 -1 (-.f64 t z)))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (Rewrite<= neg-mul-1_binary64 (neg.f64 (-.f64 y x))) (*.f64 -1 (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (Rewrite<= sub0-neg_binary64 (-.f64 0 (-.f64 y x))) (*.f64 -1 (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (Rewrite<= associate-+l-_binary64 (+.f64 (-.f64 0 y) x)) (*.f64 -1 (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (+.f64 (Rewrite<= neg-sub0_binary64 (neg.f64 y)) x) (*.f64 -1 (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (Rewrite<= +-commutative_binary64 (+.f64 x (neg.f64 y))) (*.f64 -1 (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (Rewrite<= sub-neg_binary64 (-.f64 x y)) (*.f64 -1 (-.f64 t z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (-.f64 x y) (Rewrite<= neg-mul-1_binary64 (neg.f64 (-.f64 t z)))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (-.f64 x y) (Rewrite<= sub0-neg_binary64 (-.f64 0 (-.f64 t z)))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (-.f64 x y) (Rewrite<= associate-+l-_binary64 (+.f64 (-.f64 0 t) z))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (-.f64 x y) (+.f64 (Rewrite<= neg-sub0_binary64 (neg.f64 t)) z)) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (-.f64 x y) (Rewrite<= +-commutative_binary64 (+.f64 z (neg.f64 t)))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (fma.f64 60 (/.f64 (-.f64 x y) (Rewrite<= sub-neg_binary64 (-.f64 z t))) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (Rewrite<= fma-def_binary64 (+.f64 (*.f64 60 (/.f64 (-.f64 x y) (-.f64 z t))) (*.f64 a 120))): 5 points increase in error, 4 points decrease in error
    (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (/.f64 (-.f64 x y) (-.f64 z t)) 60)) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
    (+.f64 (Rewrite=> associate-*l/_binary64 (/.f64 (*.f64 (-.f64 x y) 60) (-.f64 z t))) (*.f64 a 120)): 28 points increase in error, 22 points decrease in error
    (+.f64 (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 60 (-.f64 x y))) (-.f64 z t)) (*.f64 a 120)): 0 points increase in error, 0 points decrease in error
  3. Final simplification0.1

    \[\leadsto \mathsf{fma}\left(60, \frac{y - x}{t - z}, a \cdot 120\right) \]

Alternatives

Alternative 1
Error24.8
Cost2032
\[\begin{array}{l} t_1 := \frac{y - x}{z \cdot -0.016666666666666666}\\ t_2 := a \cdot 120 + -60 \cdot \frac{y}{z}\\ t_3 := \frac{-60}{\frac{t - z}{x}}\\ \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -5.22353928687977 \cdot 10^{-211}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -2.934576919171003 \cdot 10^{-220}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -5.081954486538017 \cdot 10^{-251}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t}\\ \mathbf{elif}\;a \leq -8.000722574066133 \cdot 10^{-295}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.83163076044376 \cdot 10^{-205}:\\ \;\;\;\;60 \cdot \frac{y}{t - z}\\ \mathbf{elif}\;a \leq 7.032336740295968 \cdot 10^{-149}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq 1.748967726599749 \cdot 10^{-69}:\\ \;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 4.380026795227438 \cdot 10^{-44}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 2
Error11.2
Cost2004
\[\begin{array}{l} t_1 := 60 \cdot \frac{y - x}{t - z}\\ t_2 := \frac{y \cdot -60}{z - t} + a \cdot 120\\ \mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{-32}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \cdot 120 \leq -2 \cdot 10^{-66}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-121}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{-151}:\\ \;\;\;\;\frac{60}{\frac{z}{x - y}} + a \cdot 120\\ \mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{-164}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 3
Error24.7
Cost1636
\[\begin{array}{l} t_1 := \frac{-60}{\frac{t - z}{x}}\\ \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -7.507596580412373 \cdot 10^{-248}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.83163076044376 \cdot 10^{-205}:\\ \;\;\;\;60 \cdot \frac{y}{t - z}\\ \mathbf{elif}\;a \leq 7.032336740295968 \cdot 10^{-149}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 1.748967726599749 \cdot 10^{-69}:\\ \;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 4.380026795227438 \cdot 10^{-44}:\\ \;\;\;\;\frac{y - x}{z \cdot -0.016666666666666666}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 4
Error16.8
Cost1632
\[\begin{array}{l} t_1 := a \cdot 120 + 60 \cdot \frac{y}{t}\\ t_2 := \frac{60}{\frac{z}{x - y}} + a \cdot 120\\ \mathbf{if}\;t \leq -2.0203486672871564 \cdot 10^{+32}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.3335782703973513 \cdot 10^{-39}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t - z}\\ \mathbf{elif}\;t \leq 1.1311665742510702 \cdot 10^{-76}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 1.3665214784922365 \cdot 10^{-40}:\\ \;\;\;\;\frac{y - x}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;t \leq 2.2537939289095184 \cdot 10^{+85}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 5.644446952485082 \cdot 10^{+142}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 5.952809792844732 \cdot 10^{+182}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 8.342816855748662 \cdot 10^{+220}:\\ \;\;\;\;60 \cdot \frac{y - x}{t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error16.8
Cost1632
\[\begin{array}{l} t_1 := a \cdot 120 + 60 \cdot \frac{y}{t}\\ t_2 := a \cdot 120 + 60 \cdot \frac{x - y}{z}\\ \mathbf{if}\;t \leq -2.0203486672871564 \cdot 10^{+32}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.3335782703973513 \cdot 10^{-39}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t - z}\\ \mathbf{elif}\;t \leq 1.1311665742510702 \cdot 10^{-76}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 1.3665214784922365 \cdot 10^{-40}:\\ \;\;\;\;\frac{y - x}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;t \leq 2.2537939289095184 \cdot 10^{+85}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 5.644446952485082 \cdot 10^{+142}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 5.952809792844732 \cdot 10^{+182}:\\ \;\;\;\;\frac{60}{\frac{z}{x - y}} + a \cdot 120\\ \mathbf{elif}\;t \leq 8.342816855748662 \cdot 10^{+220}:\\ \;\;\;\;60 \cdot \frac{y - x}{t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 6
Error25.6
Cost1372
\[\begin{array}{l} t_1 := \frac{60 \cdot \left(y - x\right)}{t}\\ t_2 := \frac{y - x}{z \cdot -0.016666666666666666}\\ \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;\frac{60}{\frac{z}{x}}\\ \mathbf{elif}\;a \leq -4.0982733934160406 \cdot 10^{-119}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -2.120052566620031 \cdot 10^{-215}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -5.081954486538017 \cdot 10^{-251}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 5.124000712670822 \cdot 10^{-271}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 7.239176597682152 \cdot 10^{-79}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 7
Error25.6
Cost1372
\[\begin{array}{l} t_1 := \frac{y - x}{z \cdot -0.016666666666666666}\\ \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;\frac{60}{\frac{z}{x}}\\ \mathbf{elif}\;a \leq -4.0982733934160406 \cdot 10^{-119}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -2.120052566620031 \cdot 10^{-215}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -5.081954486538017 \cdot 10^{-251}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t}\\ \mathbf{elif}\;a \leq 5.124000712670822 \cdot 10^{-271}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 7.239176597682152 \cdot 10^{-79}:\\ \;\;\;\;\frac{60 \cdot \left(y - x\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 8
Error25.5
Cost1372
\[\begin{array}{l} \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;\frac{60}{\frac{z}{x}}\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{60 \cdot y}{t - z}\\ \mathbf{elif}\;a \leq -5.081954486538017 \cdot 10^{-251}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t}\\ \mathbf{elif}\;a \leq 5.124000712670822 \cdot 10^{-271}:\\ \;\;\;\;\frac{y - x}{z \cdot -0.016666666666666666}\\ \mathbf{elif}\;a \leq 7.239176597682152 \cdot 10^{-79}:\\ \;\;\;\;\frac{60 \cdot \left(y - x\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 9
Error25.5
Cost1372
\[\begin{array}{l} \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;\frac{60}{\frac{z}{x}}\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -5.081954486538017 \cdot 10^{-251}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{60}{t}\\ \mathbf{elif}\;a \leq 5.124000712670822 \cdot 10^{-271}:\\ \;\;\;\;\frac{y - x}{z \cdot -0.016666666666666666}\\ \mathbf{elif}\;a \leq 7.239176597682152 \cdot 10^{-79}:\\ \;\;\;\;\frac{60 \cdot \left(y - x\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 10
Error25.0
Cost1372
\[\begin{array}{l} t_1 := x \cdot \frac{-60}{t - z}\\ \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -7.507596580412373 \cdot 10^{-248}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.83163076044376 \cdot 10^{-205}:\\ \;\;\;\;\frac{60 \cdot y}{t - z}\\ \mathbf{elif}\;a \leq 5.218449076722383 \cdot 10^{-146}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 11
Error25.0
Cost1372
\[\begin{array}{l} t_1 := x \cdot \frac{-60}{t - z}\\ \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -7.507596580412373 \cdot 10^{-248}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.83163076044376 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \frac{60}{t - z}\\ \mathbf{elif}\;a \leq 5.218449076722383 \cdot 10^{-146}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 12
Error25.0
Cost1372
\[\begin{array}{l} t_1 := x \cdot \frac{-60}{t - z}\\ \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -7.507596580412373 \cdot 10^{-248}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.83163076044376 \cdot 10^{-205}:\\ \;\;\;\;60 \cdot \frac{y}{t - z}\\ \mathbf{elif}\;a \leq 5.218449076722383 \cdot 10^{-146}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 13
Error25.1
Cost1372
\[\begin{array}{l} t_1 := \frac{-60}{\frac{t - z}{x}}\\ \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;\frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{elif}\;a \leq -7.507596580412373 \cdot 10^{-248}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.83163076044376 \cdot 10^{-205}:\\ \;\;\;\;60 \cdot \frac{y}{t - z}\\ \mathbf{elif}\;a \leq 4.047461184255209 \cdot 10^{-166}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 14
Error25.8
Cost1240
\[\begin{array}{l} \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;\frac{60}{\frac{z}{x}}\\ \mathbf{elif}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -1.0887649372480143 \cdot 10^{-129}:\\ \;\;\;\;\frac{y}{\frac{t}{60}}\\ \mathbf{elif}\;a \leq -2.4709796801528696 \cdot 10^{-161}:\\ \;\;\;\;\frac{y}{\frac{z}{-60}}\\ \mathbf{elif}\;a \leq 7.239176597682152 \cdot 10^{-79}:\\ \;\;\;\;\frac{60 \cdot \left(y - x\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 15
Error21.6
Cost1236
\[\begin{array}{l} t_1 := a \cdot 120 + 60 \cdot \frac{y}{t}\\ \mathbf{if}\;z \leq -7.054487055324516 \cdot 10^{-32}:\\ \;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-162}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -7.2 \cdot 10^{-224}:\\ \;\;\;\;\frac{60 \cdot \left(y - x\right)}{t}\\ \mathbf{elif}\;z \leq 5.7 \cdot 10^{-98}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 6.110942629719727 \cdot 10^{-48}:\\ \;\;\;\;-60 \cdot \frac{y - x}{z}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120 + 60 \cdot \frac{x}{z}\\ \end{array} \]
Alternative 16
Error29.1
Cost848
\[\begin{array}{l} \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;x \cdot \frac{60}{z}\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 1.5695234999225453 \cdot 10^{-180}:\\ \;\;\;\;\frac{x \cdot -60}{t}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 17
Error29.1
Cost848
\[\begin{array}{l} \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;x \cdot \frac{60}{z}\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 1.5695234999225453 \cdot 10^{-180}:\\ \;\;\;\;\frac{-60}{\frac{t}{x}}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 18
Error29.1
Cost848
\[\begin{array}{l} \mathbf{if}\;a \leq -5.878543671238278 \cdot 10^{-37}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq -3.0050897549259477 \cdot 10^{-68}:\\ \;\;\;\;\frac{60}{\frac{z}{x}}\\ \mathbf{elif}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 1.5695234999225453 \cdot 10^{-180}:\\ \;\;\;\;\frac{-60}{\frac{t}{x}}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 19
Error14.8
Cost840
\[\begin{array}{l} \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 4.380026795227438 \cdot 10^{-44}:\\ \;\;\;\;\frac{y - x}{\left(t - z\right) \cdot 0.016666666666666666}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 20
Error14.8
Cost840
\[\begin{array}{l} \mathbf{if}\;a \leq -1.5008448541826358 \cdot 10^{-34}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 4.380026795227438 \cdot 10^{-44}:\\ \;\;\;\;60 \cdot \frac{y - x}{t - z}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 21
Error0.4
Cost832
\[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
Alternative 22
Error0.1
Cost832
\[\frac{x - y}{\frac{z - t}{60}} + a \cdot 120 \]
Alternative 23
Error28.8
Cost584
\[\begin{array}{l} \mathbf{if}\;a \leq -1.0135964031928216 \cdot 10^{-109}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 1.2167472830482944 \cdot 10^{-260}:\\ \;\;\;\;\frac{y}{\frac{t}{60}}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 24
Error28.8
Cost584
\[\begin{array}{l} \mathbf{if}\;a \leq -1.0017411144407279 \cdot 10^{-169}:\\ \;\;\;\;a \cdot 120\\ \mathbf{elif}\;a \leq 1.5695234999225453 \cdot 10^{-180}:\\ \;\;\;\;\frac{x \cdot -60}{t}\\ \mathbf{else}:\\ \;\;\;\;a \cdot 120\\ \end{array} \]
Alternative 25
Error29.6
Cost192
\[a \cdot 120 \]

Error

Reproduce

herbie shell --seed 2022316 
(FPCore (x y z t a)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
  :precision binary64

  :herbie-target
  (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))

  (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))