Average Error: 0.5 → 0.4
Time: 31.0s
Precision: binary64
Cost: 85312
\[\frac{2 + \left(\left(\sqrt{2} \cdot \left(\sin x - \frac{\sin y}{16}\right)\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right) \cdot \left(\cos x - \cos y\right)}{3 \cdot \left(\left(1 + \frac{\sqrt{5} - 1}{2} \cdot \cos x\right) + \frac{3 - \sqrt{5}}{2} \cdot \cos y\right)} \]
\[\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \mathsf{fma}\left(6, \frac{\cos y}{3 + \sqrt{5}}, \left(\sqrt{5} + -1\right) \cdot \left(\cos x \cdot 1.5\right)\right)} \]
(FPCore (x y)
 :precision binary64
 (/
  (+
   2.0
   (*
    (*
     (* (sqrt 2.0) (- (sin x) (/ (sin y) 16.0)))
     (- (sin y) (/ (sin x) 16.0)))
    (- (cos x) (cos y))))
  (*
   3.0
   (+
    (+ 1.0 (* (/ (- (sqrt 5.0) 1.0) 2.0) (cos x)))
    (* (/ (- 3.0 (sqrt 5.0)) 2.0) (cos y))))))
(FPCore (x y)
 :precision binary64
 (/
  (fma
   (sqrt 2.0)
   (*
    (- (cos x) (cos y))
    (* (- (sin x) (/ (sin y) 16.0)) (- (sin y) (/ (sin x) 16.0))))
   2.0)
  (+
   3.0
   (fma
    6.0
    (/ (cos y) (+ 3.0 (sqrt 5.0)))
    (* (+ (sqrt 5.0) -1.0) (* (cos x) 1.5))))))
double code(double x, double y) {
	return (2.0 + (((sqrt(2.0) * (sin(x) - (sin(y) / 16.0))) * (sin(y) - (sin(x) / 16.0))) * (cos(x) - cos(y)))) / (3.0 * ((1.0 + (((sqrt(5.0) - 1.0) / 2.0) * cos(x))) + (((3.0 - sqrt(5.0)) / 2.0) * cos(y))));
}
double code(double x, double y) {
	return fma(sqrt(2.0), ((cos(x) - cos(y)) * ((sin(x) - (sin(y) / 16.0)) * (sin(y) - (sin(x) / 16.0)))), 2.0) / (3.0 + fma(6.0, (cos(y) / (3.0 + sqrt(5.0))), ((sqrt(5.0) + -1.0) * (cos(x) * 1.5))));
}
function code(x, y)
	return Float64(Float64(2.0 + Float64(Float64(Float64(sqrt(2.0) * Float64(sin(x) - Float64(sin(y) / 16.0))) * Float64(sin(y) - Float64(sin(x) / 16.0))) * Float64(cos(x) - cos(y)))) / Float64(3.0 * Float64(Float64(1.0 + Float64(Float64(Float64(sqrt(5.0) - 1.0) / 2.0) * cos(x))) + Float64(Float64(Float64(3.0 - sqrt(5.0)) / 2.0) * cos(y)))))
end
function code(x, y)
	return Float64(fma(sqrt(2.0), Float64(Float64(cos(x) - cos(y)) * Float64(Float64(sin(x) - Float64(sin(y) / 16.0)) * Float64(sin(y) - Float64(sin(x) / 16.0)))), 2.0) / Float64(3.0 + fma(6.0, Float64(cos(y) / Float64(3.0 + sqrt(5.0))), Float64(Float64(sqrt(5.0) + -1.0) * Float64(cos(x) * 1.5)))))
end
code[x_, y_] := N[(N[(2.0 + N[(N[(N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sin[x], $MachinePrecision] - N[(N[Sin[y], $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] - N[(N[Sin[x], $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[x], $MachinePrecision] - N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(3.0 * N[(N[(1.0 + N[(N[(N[(N[Sqrt[5.0], $MachinePrecision] - 1.0), $MachinePrecision] / 2.0), $MachinePrecision] * N[Cos[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(3.0 - N[Sqrt[5.0], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision] * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_] := N[(N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[(N[Cos[x], $MachinePrecision] - N[Cos[y], $MachinePrecision]), $MachinePrecision] * N[(N[(N[Sin[x], $MachinePrecision] - N[(N[Sin[y], $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] - N[(N[Sin[x], $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision] / N[(3.0 + N[(6.0 * N[(N[Cos[y], $MachinePrecision] / N[(3.0 + N[Sqrt[5.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[Sqrt[5.0], $MachinePrecision] + -1.0), $MachinePrecision] * N[(N[Cos[x], $MachinePrecision] * 1.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{2 + \left(\left(\sqrt{2} \cdot \left(\sin x - \frac{\sin y}{16}\right)\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right) \cdot \left(\cos x - \cos y\right)}{3 \cdot \left(\left(1 + \frac{\sqrt{5} - 1}{2} \cdot \cos x\right) + \frac{3 - \sqrt{5}}{2} \cdot \cos y\right)}
\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \mathsf{fma}\left(6, \frac{\cos y}{3 + \sqrt{5}}, \left(\sqrt{5} + -1\right) \cdot \left(\cos x \cdot 1.5\right)\right)}

Error

Derivation

  1. Initial program 0.5

    \[\frac{2 + \left(\left(\sqrt{2} \cdot \left(\sin x - \frac{\sin y}{16}\right)\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right) \cdot \left(\cos x - \cos y\right)}{3 \cdot \left(\left(1 + \frac{\sqrt{5} - 1}{2} \cdot \cos x\right) + \frac{3 - \sqrt{5}}{2} \cdot \cos y\right)} \]
  2. Simplified0.5

    \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \mathsf{fma}\left(\cos y, \frac{3 - \sqrt{5}}{0.6666666666666666}, \frac{\cos x \cdot \left(\sqrt{5} + -1\right)}{0.6666666666666666}\right)}} \]
    Proof
    (/.f64 (fma.f64 (sqrt.f64 2) (*.f64 (-.f64 (cos.f64 x) (cos.f64 y)) (*.f64 (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16)) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16)))) 2) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2/3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (fma.f64 (sqrt.f64 2) (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16)) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) 2) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2/3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16)) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) 2)) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2/3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 2 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (sqrt.f64 2) (*.f64 (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16)) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16)))) (-.f64 (cos.f64 x) (cos.f64 y)))) 2) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2/3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 2 points increase in error, 1 points decrease in error
    (/.f64 (+.f64 (*.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16)))) (-.f64 (cos.f64 x) (cos.f64 y))) 2) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2/3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 3 points increase in error, 2 points decrease in error
    (/.f64 (Rewrite<= +-commutative_binary64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y))))) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2/3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) (Rewrite<= metadata-eval (/.f64 2 3))) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (-.f64 3 (sqrt.f64 5)) 3) 2)) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3)) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) -1)) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (/.f64 (*.f64 (cos.f64 x) (+.f64 (sqrt.f64 5) (Rewrite<= metadata-eval (neg.f64 1)))) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (/.f64 (*.f64 (cos.f64 x) (Rewrite<= sub-neg_binary64 (-.f64 (sqrt.f64 5) 1))) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x))) 2/3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (/.f64 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x)) (Rewrite<= metadata-eval (/.f64 2 3)))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x)) 3) 2))))): 6 points increase in error, 7 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x)) 2) 3))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (*.f64 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x))) 3)))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (fma.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3) (Rewrite<= *-commutative_binary64 (*.f64 3 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x))))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 (cos.f64 y) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) 3)) (*.f64 3 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x))))))): 7 points increase in error, 9 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (cos.f64 y) (/.f64 (-.f64 3 (sqrt.f64 5)) 2)) 3)) (*.f64 3 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x)))))): 3 points increase in error, 7 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (+.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y))) 3) (*.f64 3 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x)))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (+.f64 (*.f64 (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y)) 3) (Rewrite=> *-commutative_binary64 (*.f64 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x)) 3))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (Rewrite<= distribute-rgt-in_binary64 (*.f64 3 (+.f64 (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y)) (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x))))))): 12 points increase in error, 9 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 3 (*.f64 3 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x)) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y))))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (+.f64 (Rewrite<= metadata-eval (*.f64 3 1)) (*.f64 3 (+.f64 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x)) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y)))))): 0 points increase in error, 0 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (Rewrite<= distribute-lft-in_binary64 (*.f64 3 (+.f64 1 (+.f64 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x)) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y))))))): 32 points increase in error, 15 points decrease in error
    (/.f64 (+.f64 2 (*.f64 (*.f64 (*.f64 (sqrt.f64 2) (-.f64 (sin.f64 x) (/.f64 (sin.f64 y) 16))) (-.f64 (sin.f64 y) (/.f64 (sin.f64 x) 16))) (-.f64 (cos.f64 x) (cos.f64 y)))) (*.f64 3 (Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 1 (*.f64 (/.f64 (-.f64 (sqrt.f64 5) 1) 2) (cos.f64 x))) (*.f64 (/.f64 (-.f64 3 (sqrt.f64 5)) 2) (cos.f64 y)))))): 7 points increase in error, 11 points decrease in error
  3. Applied egg-rr0.4

    \[\leadsto \frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \mathsf{fma}\left(\cos y, \frac{\color{blue}{4 \cdot \frac{1}{3 + \sqrt{5}}}}{0.6666666666666666}, \frac{\cos x \cdot \left(\sqrt{5} + -1\right)}{0.6666666666666666}\right)} \]
  4. Simplified0.4

    \[\leadsto \frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \mathsf{fma}\left(\cos y, \frac{\color{blue}{\frac{4}{\sqrt{5} + 3}}}{0.6666666666666666}, \frac{\cos x \cdot \left(\sqrt{5} + -1\right)}{0.6666666666666666}\right)} \]
    Proof
    (/.f64 4 (+.f64 (sqrt.f64 5) 3)): 0 points increase in error, 0 points decrease in error
    (/.f64 (Rewrite<= metadata-eval (*.f64 4 1)) (+.f64 (sqrt.f64 5) 3)): 0 points increase in error, 0 points decrease in error
    (/.f64 (*.f64 4 1) (Rewrite<= +-commutative_binary64 (+.f64 3 (sqrt.f64 5)))): 0 points increase in error, 0 points decrease in error
    (Rewrite<= associate-*r/_binary64 (*.f64 4 (/.f64 1 (+.f64 3 (sqrt.f64 5))))): 0 points increase in error, 0 points decrease in error
  5. Taylor expanded in y around inf 0.4

    \[\leadsto \frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \color{blue}{\left(6 \cdot \frac{\cos y}{\sqrt{5} + 3} + 1.5 \cdot \left(\left(\sqrt{5} - 1\right) \cdot \cos x\right)\right)}} \]
  6. Simplified0.4

    \[\leadsto \frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \color{blue}{\mathsf{fma}\left(6, \frac{\cos y}{\sqrt{5} + 3}, \left(\sqrt{5} + -1\right) \cdot \left(\cos x \cdot 1.5\right)\right)}} \]
    Proof
    (fma.f64 6 (/.f64 (cos.f64 y) (+.f64 (sqrt.f64 5) 3)) (*.f64 (+.f64 (sqrt.f64 5) -1) (*.f64 (cos.f64 x) 3/2))): 0 points increase in error, 0 points decrease in error
    (fma.f64 6 (/.f64 (cos.f64 y) (+.f64 (sqrt.f64 5) 3)) (*.f64 (+.f64 (sqrt.f64 5) (Rewrite<= metadata-eval (neg.f64 1))) (*.f64 (cos.f64 x) 3/2))): 0 points increase in error, 0 points decrease in error
    (fma.f64 6 (/.f64 (cos.f64 y) (+.f64 (sqrt.f64 5) 3)) (*.f64 (Rewrite<= sub-neg_binary64 (-.f64 (sqrt.f64 5) 1)) (*.f64 (cos.f64 x) 3/2))): 0 points increase in error, 0 points decrease in error
    (fma.f64 6 (/.f64 (cos.f64 y) (+.f64 (sqrt.f64 5) 3)) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x)) 3/2))): 24 points increase in error, 18 points decrease in error
    (fma.f64 6 (/.f64 (cos.f64 y) (+.f64 (sqrt.f64 5) 3)) (Rewrite<= *-commutative_binary64 (*.f64 3/2 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x))))): 0 points increase in error, 0 points decrease in error
    (Rewrite<= fma-def_binary64 (+.f64 (*.f64 6 (/.f64 (cos.f64 y) (+.f64 (sqrt.f64 5) 3))) (*.f64 3/2 (*.f64 (-.f64 (sqrt.f64 5) 1) (cos.f64 x))))): 23 points increase in error, 35 points decrease in error
  7. Final simplification0.4

    \[\leadsto \frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \mathsf{fma}\left(6, \frac{\cos y}{3 + \sqrt{5}}, \left(\sqrt{5} + -1\right) \cdot \left(\cos x \cdot 1.5\right)\right)} \]

Alternatives

Alternative 1
Error0.4
Cost79040
\[\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\left(\sin x - \frac{\sin y}{16}\right) \cdot \left(\sin y - \frac{\sin x}{16}\right)\right), 2\right)}{3 + \left(\left(\sqrt{5} + -1\right) \cdot \left(\cos x \cdot 1.5\right) + 6 \cdot \frac{\cos y}{3 + \sqrt{5}}\right)} \]
Alternative 2
Error0.4
Cost72768
\[\frac{2 + \sqrt{2} \cdot \left(\left(\sin y - \sin x \cdot 0.0625\right) \cdot \left(\left(\cos x - \cos y\right) \cdot \left(\sin x + \sin y \cdot -0.0625\right)\right)\right)}{3 + \left(6 \cdot \frac{\cos y}{3 + \sqrt{5}} + 1.5 \cdot \left(\cos x \cdot \left(\sqrt{5} + -1\right)\right)\right)} \]
Alternative 3
Error0.5
Cost72640
\[\frac{2 + \sqrt{2} \cdot \left(\left(\sin y - \sin x \cdot 0.0625\right) \cdot \left(\left(\cos x - \cos y\right) \cdot \left(\sin x + \sin y \cdot -0.0625\right)\right)\right)}{3 + 1.5 \cdot \left(\cos y \cdot \left(3 - \sqrt{5}\right) + \cos x \cdot \left(\sqrt{5} + -1\right)\right)} \]
Alternative 4
Error12.2
Cost66504
\[\begin{array}{l} t_0 := \cos x - \cos y\\ t_1 := \frac{2 + \left(\sqrt{2} \cdot \sin x\right) \cdot \left(t_0 \cdot \left(\sin y - \frac{\sin x}{16}\right)\right)}{3 \cdot \left(1 + \left(\cos x \cdot \left(\frac{\sqrt{5}}{2} + -0.5\right) + \cos y \cdot \frac{1}{1.5 + \sqrt{1.25}}\right)\right)}\\ \mathbf{if}\;x \leq -3.2 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 3.4 \cdot 10^{-5}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, t_0 \cdot \left(\sin y \cdot \left(x \cdot 1.00390625 - \sin y \cdot 0.0625\right)\right), 2\right)}{3 + 1.5 \cdot \left(\left(\sqrt{5} + -1\right) + \cos y \cdot \left(3 - \sqrt{5}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error12.2
Cost66376
\[\begin{array}{l} t_0 := \cos x - \cos y\\ t_1 := \frac{2 + \left(\sqrt{2} \cdot \sin x\right) \cdot \left(t_0 \cdot \left(\sin y - \frac{\sin x}{16}\right)\right)}{3 \cdot \left(1 + \left(\cos x \cdot \left(\frac{\sqrt{5}}{2} + -0.5\right) + \cos y \cdot \left(1.5 - \sqrt{1.25}\right)\right)\right)}\\ \mathbf{if}\;x \leq -7.5 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 6 \cdot 10^{-6}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, t_0 \cdot \left(\sin y \cdot \left(x \cdot 1.00390625 - \sin y \cdot 0.0625\right)\right), 2\right)}{3 + 1.5 \cdot \left(\left(\sqrt{5} + -1\right) + \cos y \cdot \left(3 - \sqrt{5}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 6
Error13.3
Cost60104
\[\begin{array}{l} t_0 := \frac{\sqrt{5}}{2}\\ t_1 := \frac{2 + \left(\sqrt{2} \cdot \sin x\right) \cdot \left(\left(\sin y - \frac{\sin x}{16}\right) \cdot \left(\cos x + -1\right)\right)}{3 \cdot \left(1 + \left(\cos x \cdot \left(t_0 + -0.5\right) + \cos y \cdot \left(1.5 - t_0\right)\right)\right)}\\ \mathbf{if}\;x \leq -1.25 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 9 \cdot 10^{-5}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\sin y \cdot \left(x \cdot 1.00390625 - \sin y \cdot 0.0625\right)\right), 2\right)}{3 + 1.5 \cdot \left(\left(\sqrt{5} + -1\right) + \cos y \cdot \left(3 - \sqrt{5}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error13.6
Cost59976
\[\begin{array}{l} t_0 := \cos x - \cos y\\ t_1 := \frac{2 + \left(\sqrt{2} \cdot \sin x\right) \cdot \left(t_0 \cdot \left(\sin y - \frac{\sin x}{16}\right)\right)}{3 \cdot \left(1 + \left(\left(1.5 + \cos x \cdot \left(\sqrt{5} \cdot 0.5 + -0.5\right)\right) + \sqrt{5} \cdot -0.5\right)\right)}\\ \mathbf{if}\;x \leq -0.00021:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 0.00016:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, t_0 \cdot \left(\sin y \cdot \left(x \cdot 1.00390625 - \sin y \cdot 0.0625\right)\right), 2\right)}{3 + 1.5 \cdot \left(\left(\sqrt{5} + -1\right) + \cos y \cdot \left(3 - \sqrt{5}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 8
Error13.8
Cost59720
\[\begin{array}{l} t_0 := 3 - \sqrt{5}\\ t_1 := \sqrt{5} + -1\\ t_2 := \sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\\ \mathbf{if}\;x \leq -2.15 \cdot 10^{-5}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0625, t_2, 2\right)}{3 + \mathsf{fma}\left(t_1, \cos x \cdot 1.5, \frac{6}{3 + \sqrt{5}}\right)}\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{-5}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(\sin y \cdot \left(x \cdot 1.00390625 - \sin y \cdot 0.0625\right)\right), 2\right)}{3 + 1.5 \cdot \left(t_1 + \cos y \cdot t_0\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{2 + -0.0625 \cdot t_2}{1 + 0.5 \cdot \left(t_0 + \left(\cos x \cdot \sqrt{5} - \cos x\right)\right)}\\ \end{array} \]
Alternative 9
Error13.7
Cost59268
\[\begin{array}{l} t_0 := \sqrt{5} \cdot 0.5\\ t_1 := \sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\\ \mathbf{if}\;x \leq -0.00061:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.0625, t_1, 2\right)}{3 + \mathsf{fma}\left(\sqrt{5} + -1, \cos x \cdot 1.5, \frac{6}{3 + \sqrt{5}}\right)}\\ \mathbf{elif}\;x \leq 0.00014:\\ \;\;\;\;\frac{2 + \left(\sqrt{2} \cdot \left(x + \sin y \cdot -0.0625\right)\right) \cdot \left(\left(\sin y - \frac{\sin x}{16}\right) \cdot \left(1 - \cos y\right)\right)}{3 \cdot \left(1 + \left(\left(t_0 + \cos y \cdot \left(1.5 - t_0\right)\right) + -0.5\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{2 + -0.0625 \cdot t_1}{1 + 0.5 \cdot \left(\left(3 - \sqrt{5}\right) + \left(\cos x \cdot \sqrt{5} - \cos x\right)\right)}\\ \end{array} \]
Alternative 10
Error13.8
Cost53832
\[\begin{array}{l} t_0 := \sqrt{5} \cdot 0.5\\ t_1 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ t_2 := 3 - \sqrt{5}\\ \mathbf{if}\;x \leq -4.9 \cdot 10^{-5}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(t_2 + \cos x \cdot \frac{4}{\sqrt{5} + 1}\right)}\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-5}:\\ \;\;\;\;\frac{2 + \left(\sqrt{2} \cdot \left(x + \sin y \cdot -0.0625\right)\right) \cdot \left(\left(\sin y - \frac{\sin x}{16}\right) \cdot \left(1 - \cos y\right)\right)}{3 \cdot \left(1 + \left(\left(t_0 + \cos y \cdot \left(1.5 - t_0\right)\right) + -0.5\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(t_2 + \left(\cos x \cdot \sqrt{5} - \cos x\right)\right)}\\ \end{array} \]
Alternative 11
Error13.9
Cost53320
\[\begin{array}{l} t_0 := \sqrt{5} + -1\\ t_1 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ t_2 := 3 - \sqrt{5}\\ \mathbf{if}\;x \leq -1.46 \cdot 10^{-6}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(t_2 + \cos x \cdot \frac{4}{\sqrt{5} + 1}\right)}\\ \mathbf{elif}\;x \leq 1.15 \cdot 10^{-5}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(-0.0625 \cdot \left(0.5 - \frac{\cos \left(y + y\right)}{2}\right)\right), 2\right)}{3 + 1.5 \cdot \left(t_0 + \cos y \cdot t_2\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_1}{3 + \mathsf{fma}\left(t_0, \cos x \cdot 1.5, -1.5 \cdot \left(\sqrt{5} + -3\right)\right)}\\ \end{array} \]
Alternative 12
Error13.9
Cost53320
\[\begin{array}{l} t_0 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ t_1 := 3 - \sqrt{5}\\ \mathbf{if}\;x \leq -1.3 \cdot 10^{-6}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_0}{1 + 0.5 \cdot \left(t_1 + \cos x \cdot \frac{4}{\sqrt{5} + 1}\right)}\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{-5}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\sqrt{2}, \left(\cos x - \cos y\right) \cdot \left(-0.0625 \cdot \left(0.5 - \frac{\cos \left(y + y\right)}{2}\right)\right), 2\right)}{3 + 1.5 \cdot \left(\left(\sqrt{5} + -1\right) + \cos y \cdot t_1\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_0}{1 + 0.5 \cdot \left(t_1 + \left(\cos x \cdot \sqrt{5} - \cos x\right)\right)}\\ \end{array} \]
Alternative 13
Error13.9
Cost53128
\[\begin{array}{l} t_0 := \sqrt{5} + -1\\ t_1 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ \mathbf{if}\;x \leq -1.5 \cdot 10^{-5}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(\left(3 - \sqrt{5}\right) + \cos x \cdot \frac{4}{\sqrt{5} + 1}\right)}\\ \mathbf{elif}\;x \leq 6 \cdot 10^{-6}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{t_0 \cdot 1.5 + \left(3 + 6 \cdot \frac{\cos y}{3 + \sqrt{5}}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_1}{3 + \mathsf{fma}\left(t_0, \cos x \cdot 1.5, -1.5 \cdot \left(\sqrt{5} + -3\right)\right)}\\ \end{array} \]
Alternative 14
Error13.8
Cost46984
\[\begin{array}{l} t_0 := 0.3333333333333333 \cdot \frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)}{1 + 0.5 \cdot \left(\left(3 - \sqrt{5}\right) + \cos x \cdot \frac{4}{\sqrt{5} + 1}\right)}\\ \mathbf{if}\;x \leq -1.08 \cdot 10^{-5}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 1.75 \cdot 10^{-6}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{\left(\sqrt{5} + -1\right) \cdot 1.5 + \left(3 + 6 \cdot \frac{\cos y}{3 + \sqrt{5}}\right)}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 15
Error13.9
Cost46856
\[\begin{array}{l} t_0 := 3 - \sqrt{5}\\ t_1 := \cos x \cdot \left(\sqrt{5} + -1\right)\\ t_2 := \left(\cos x + -1\right) \cdot {\sin x}^{2}\\ \mathbf{if}\;x \leq -5.6 \cdot 10^{-5}:\\ \;\;\;\;\frac{2 + t_2 \cdot \left(\sqrt{2} \cdot -0.0625\right)}{3 + 1.5 \cdot \left(3 + \left(t_1 - \sqrt{5}\right)\right)}\\ \mathbf{elif}\;x \leq 2.2 \cdot 10^{-5}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{3 + 1.5 \cdot \left(-1 + \left(\sqrt{5} + \cos y \cdot t_0\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot t_2\right)}{1 + 0.5 \cdot \left(t_0 + t_1\right)}\\ \end{array} \]
Alternative 16
Error13.9
Cost46856
\[\begin{array}{l} t_0 := 3 - \sqrt{5}\\ t_1 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ \mathbf{if}\;x \leq -3.8 \cdot 10^{-7}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{\left(\cos x \cdot \left(\sqrt{5} \cdot 0.5 + -0.5\right) + 2.5\right) + \sqrt{5} \cdot -0.5}\\ \mathbf{elif}\;x \leq 6 \cdot 10^{-6}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{3 + 1.5 \cdot \left(-1 + \left(\sqrt{5} + \cos y \cdot t_0\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(t_0 + \cos x \cdot \left(\sqrt{5} + -1\right)\right)}\\ \end{array} \]
Alternative 17
Error13.9
Cost46856
\[\begin{array}{l} t_0 := \sqrt{5} + -1\\ t_1 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ \mathbf{if}\;x \leq -7.4 \cdot 10^{-5}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{\left(\cos x \cdot \left(\sqrt{5} \cdot 0.5 + -0.5\right) + 2.5\right) + \sqrt{5} \cdot -0.5}\\ \mathbf{elif}\;x \leq 0.000112:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{t_0 \cdot 1.5 + \left(3 + 6 \cdot \frac{\cos y}{3 + \sqrt{5}}\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(\left(3 - \sqrt{5}\right) + \cos x \cdot t_0\right)}\\ \end{array} \]
Alternative 18
Error13.9
Cost46856
\[\begin{array}{l} t_0 := 3 + \sqrt{5}\\ t_1 := 2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)\\ t_2 := \sqrt{5} + -1\\ t_3 := \cos x \cdot t_2\\ \mathbf{if}\;x \leq -1.3 \cdot 10^{-6}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(t_3 + \frac{4}{t_0}\right)}\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{-6}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{t_2 \cdot 1.5 + \left(3 + 6 \cdot \frac{\cos y}{t_0}\right)}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t_1}{1 + 0.5 \cdot \left(\left(3 - \sqrt{5}\right) + t_3\right)}\\ \end{array} \]
Alternative 19
Error13.9
Cost46728
\[\begin{array}{l} t_0 := \frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)}{3 + 1.5 \cdot \left(\left(3 + \cos x \cdot \left(\sqrt{5} + -1\right)\right) - \sqrt{5}\right)}\\ \mathbf{if}\;x \leq -2.66 \cdot 10^{-5}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{-6}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{3 + 1.5 \cdot \left(-1 + \left(\sqrt{5} + \cos y \cdot \left(3 - \sqrt{5}\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 20
Error13.9
Cost46728
\[\begin{array}{l} t_0 := \frac{2 + \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right) \cdot \left(\sqrt{2} \cdot -0.0625\right)}{3 + 1.5 \cdot \left(3 + \left(\cos x \cdot \left(\sqrt{5} + -1\right) - \sqrt{5}\right)\right)}\\ \mathbf{if}\;x \leq -6.1 \cdot 10^{-6}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 1.4 \cdot 10^{-5}:\\ \;\;\;\;\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{3 + 1.5 \cdot \left(-1 + \left(\sqrt{5} + \cos y \cdot \left(3 - \sqrt{5}\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 21
Error25.7
Cost46464
\[\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(1 - \cos y\right) \cdot {\sin y}^{2}\right)\right)}{3 + 1.5 \cdot \left(-1 + \left(\sqrt{5} + \cos y \cdot \left(3 - \sqrt{5}\right)\right)\right)} \]
Alternative 22
Error38.0
Cost40192
\[\frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot {\sin x}^{2}\right)\right)}{3 + \left(\left(\sqrt{5} + -1\right) \cdot 1.5 + 6 \cdot \frac{1}{3 + \sqrt{5}}\right)} \]
Alternative 23
Error38.0
Cost20544
\[0.3333333333333333 \cdot \frac{2 + -0.0625 \cdot \left(\sqrt{2} \cdot \left(\left(\cos x + -1\right) \cdot \left(0.5 - \frac{\cos \left(x + x\right)}{2}\right)\right)\right)}{2} \]
Alternative 24
Error38.0
Cost64
\[0.3333333333333333 \]

Error

Reproduce

herbie shell --seed 2022329 
(FPCore (x y)
  :name "Diagrams.TwoD.Path.Metafont.Internal:hobbyF from diagrams-contrib-1.3.0.5"
  :precision binary64
  (/ (+ 2.0 (* (* (* (sqrt 2.0) (- (sin x) (/ (sin y) 16.0))) (- (sin y) (/ (sin x) 16.0))) (- (cos x) (cos y)))) (* 3.0 (+ (+ 1.0 (* (/ (- (sqrt 5.0) 1.0) 2.0) (cos x))) (* (/ (- 3.0 (sqrt 5.0)) 2.0) (cos y))))))