Average Error: 41.1 → 6.0
Time: 1.0min
Precision: binary64
Cost: 1220
\[\frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} \cdot \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} - \left(4 \cdot \frac{\frac{{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{x-scale}}{x-scale}\right) \cdot \frac{\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale}}{y-scale} \]
\[\begin{array}{l} t_0 := \frac{b}{x-scale} \cdot \frac{a}{y-scale}\\ t_1 := \frac{y-scale}{b} \cdot x-scale\\ \mathbf{if}\;b \leq 2.05 \cdot 10^{+145}:\\ \;\;\;\;\frac{a}{t_1} \cdot \frac{a \cdot -4}{t_1}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(t_0 \cdot t_0\right)\\ \end{array} \]
(FPCore (a b angle x-scale y-scale)
 :precision binary64
 (-
  (*
   (/
    (/
     (*
      (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI)))
      (cos (* (/ angle 180.0) PI)))
     x-scale)
    y-scale)
   (/
    (/
     (*
      (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI)))
      (cos (* (/ angle 180.0) PI)))
     x-scale)
    y-scale))
  (*
   (*
    4.0
    (/
     (/
      (+
       (pow (* a (sin (* (/ angle 180.0) PI))) 2.0)
       (pow (* b (cos (* (/ angle 180.0) PI))) 2.0))
      x-scale)
     x-scale))
   (/
    (/
     (+
      (pow (* a (cos (* (/ angle 180.0) PI))) 2.0)
      (pow (* b (sin (* (/ angle 180.0) PI))) 2.0))
     y-scale)
    y-scale))))
(FPCore (a b angle x-scale y-scale)
 :precision binary64
 (let* ((t_0 (* (/ b x-scale) (/ a y-scale))) (t_1 (* (/ y-scale b) x-scale)))
   (if (<= b 2.05e+145)
     (* (/ a t_1) (/ (* a -4.0) t_1))
     (* -4.0 (* t_0 t_0)))))
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
	return ((((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(((angle / 180.0) * ((double) M_PI)))) * cos(((angle / 180.0) * ((double) M_PI)))) / x_45_scale) / y_45_scale) * (((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(((angle / 180.0) * ((double) M_PI)))) * cos(((angle / 180.0) * ((double) M_PI)))) / x_45_scale) / y_45_scale)) - ((4.0 * (((pow((a * sin(((angle / 180.0) * ((double) M_PI)))), 2.0) + pow((b * cos(((angle / 180.0) * ((double) M_PI)))), 2.0)) / x_45_scale) / x_45_scale)) * (((pow((a * cos(((angle / 180.0) * ((double) M_PI)))), 2.0) + pow((b * sin(((angle / 180.0) * ((double) M_PI)))), 2.0)) / y_45_scale) / y_45_scale));
}
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
	double t_0 = (b / x_45_scale) * (a / y_45_scale);
	double t_1 = (y_45_scale / b) * x_45_scale;
	double tmp;
	if (b <= 2.05e+145) {
		tmp = (a / t_1) * ((a * -4.0) / t_1);
	} else {
		tmp = -4.0 * (t_0 * t_0);
	}
	return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
	return ((((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(((angle / 180.0) * Math.PI))) * Math.cos(((angle / 180.0) * Math.PI))) / x_45_scale) / y_45_scale) * (((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(((angle / 180.0) * Math.PI))) * Math.cos(((angle / 180.0) * Math.PI))) / x_45_scale) / y_45_scale)) - ((4.0 * (((Math.pow((a * Math.sin(((angle / 180.0) * Math.PI))), 2.0) + Math.pow((b * Math.cos(((angle / 180.0) * Math.PI))), 2.0)) / x_45_scale) / x_45_scale)) * (((Math.pow((a * Math.cos(((angle / 180.0) * Math.PI))), 2.0) + Math.pow((b * Math.sin(((angle / 180.0) * Math.PI))), 2.0)) / y_45_scale) / y_45_scale));
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
	double t_0 = (b / x_45_scale) * (a / y_45_scale);
	double t_1 = (y_45_scale / b) * x_45_scale;
	double tmp;
	if (b <= 2.05e+145) {
		tmp = (a / t_1) * ((a * -4.0) / t_1);
	} else {
		tmp = -4.0 * (t_0 * t_0);
	}
	return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale):
	return ((((((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(((angle / 180.0) * math.pi))) * math.cos(((angle / 180.0) * math.pi))) / x_45_scale) / y_45_scale) * (((((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(((angle / 180.0) * math.pi))) * math.cos(((angle / 180.0) * math.pi))) / x_45_scale) / y_45_scale)) - ((4.0 * (((math.pow((a * math.sin(((angle / 180.0) * math.pi))), 2.0) + math.pow((b * math.cos(((angle / 180.0) * math.pi))), 2.0)) / x_45_scale) / x_45_scale)) * (((math.pow((a * math.cos(((angle / 180.0) * math.pi))), 2.0) + math.pow((b * math.sin(((angle / 180.0) * math.pi))), 2.0)) / y_45_scale) / y_45_scale))
def code(a, b, angle, x_45_scale, y_45_scale):
	t_0 = (b / x_45_scale) * (a / y_45_scale)
	t_1 = (y_45_scale / b) * x_45_scale
	tmp = 0
	if b <= 2.05e+145:
		tmp = (a / t_1) * ((a * -4.0) / t_1)
	else:
		tmp = -4.0 * (t_0 * t_0)
	return tmp
function code(a, b, angle, x_45_scale, y_45_scale)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(Float64(Float64(angle / 180.0) * pi))) * cos(Float64(Float64(angle / 180.0) * pi))) / x_45_scale) / y_45_scale) * Float64(Float64(Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(Float64(Float64(angle / 180.0) * pi))) * cos(Float64(Float64(angle / 180.0) * pi))) / x_45_scale) / y_45_scale)) - Float64(Float64(4.0 * Float64(Float64(Float64((Float64(a * sin(Float64(Float64(angle / 180.0) * pi))) ^ 2.0) + (Float64(b * cos(Float64(Float64(angle / 180.0) * pi))) ^ 2.0)) / x_45_scale) / x_45_scale)) * Float64(Float64(Float64((Float64(a * cos(Float64(Float64(angle / 180.0) * pi))) ^ 2.0) + (Float64(b * sin(Float64(Float64(angle / 180.0) * pi))) ^ 2.0)) / y_45_scale) / y_45_scale)))
end
function code(a, b, angle, x_45_scale, y_45_scale)
	t_0 = Float64(Float64(b / x_45_scale) * Float64(a / y_45_scale))
	t_1 = Float64(Float64(y_45_scale / b) * x_45_scale)
	tmp = 0.0
	if (b <= 2.05e+145)
		tmp = Float64(Float64(a / t_1) * Float64(Float64(a * -4.0) / t_1));
	else
		tmp = Float64(-4.0 * Float64(t_0 * t_0));
	end
	return tmp
end
function tmp = code(a, b, angle, x_45_scale, y_45_scale)
	tmp = ((((((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(((angle / 180.0) * pi))) * cos(((angle / 180.0) * pi))) / x_45_scale) / y_45_scale) * (((((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(((angle / 180.0) * pi))) * cos(((angle / 180.0) * pi))) / x_45_scale) / y_45_scale)) - ((4.0 * (((((a * sin(((angle / 180.0) * pi))) ^ 2.0) + ((b * cos(((angle / 180.0) * pi))) ^ 2.0)) / x_45_scale) / x_45_scale)) * (((((a * cos(((angle / 180.0) * pi))) ^ 2.0) + ((b * sin(((angle / 180.0) * pi))) ^ 2.0)) / y_45_scale) / y_45_scale));
end
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale)
	t_0 = (b / x_45_scale) * (a / y_45_scale);
	t_1 = (y_45_scale / b) * x_45_scale;
	tmp = 0.0;
	if (b <= 2.05e+145)
		tmp = (a / t_1) * ((a * -4.0) / t_1);
	else
		tmp = -4.0 * (t_0 * t_0);
	end
	tmp_2 = tmp;
end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := N[(N[(N[(N[(N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision] * N[(N[(N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]), $MachinePrecision] - N[(N[(4.0 * N[(N[(N[(N[Power[N[(a * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Power[N[(a * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / y$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[(b / x$45$scale), $MachinePrecision] * N[(a / y$45$scale), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(y$45$scale / b), $MachinePrecision] * x$45$scale), $MachinePrecision]}, If[LessEqual[b, 2.05e+145], N[(N[(a / t$95$1), $MachinePrecision] * N[(N[(a * -4.0), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]]]]
\frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} \cdot \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} - \left(4 \cdot \frac{\frac{{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{x-scale}}{x-scale}\right) \cdot \frac{\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale}}{y-scale}
\begin{array}{l}
t_0 := \frac{b}{x-scale} \cdot \frac{a}{y-scale}\\
t_1 := \frac{y-scale}{b} \cdot x-scale\\
\mathbf{if}\;b \leq 2.05 \cdot 10^{+145}:\\
\;\;\;\;\frac{a}{t_1} \cdot \frac{a \cdot -4}{t_1}\\

\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t_0 \cdot t_0\right)\\


\end{array}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if b < 2.0500000000000001e145

    1. Initial program 39.2

      \[\frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} \cdot \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} - \left(4 \cdot \frac{\frac{{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{x-scale}}{x-scale}\right) \cdot \frac{\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale}}{y-scale} \]
    2. Simplified43.2

      \[\leadsto \color{blue}{\frac{\left(\left(2 \cdot \left(b \cdot b - a \cdot a\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{y-scale \cdot x-scale} \cdot \frac{\left(\left(2 \cdot \left(b \cdot b - a \cdot a\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{y-scale \cdot x-scale} - \left(4 \cdot \frac{{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{x-scale \cdot x-scale}\right) \cdot \frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale \cdot y-scale}} \]
      Proof
      (-.f64 (*.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (*.f64 b b) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale)) (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (*.f64 b b) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (*.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 b 2)) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale)) (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (*.f64 b b) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (*.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (Rewrite<= unpow2_binary64 (pow.f64 a 2)))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale)) (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (*.f64 b b) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (*.f64 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale)) (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (*.f64 b b) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 2 points decrease in error
      (-.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 b 2)) (*.f64 a a))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (Rewrite<= unpow2_binary64 (pow.f64 a 2)))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale x-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale))) (*.f64 (*.f64 4 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 6 points increase in error, 0 points decrease in error
      (-.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale)) (*.f64 (*.f64 4 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)))): 4 points increase in error, 20 points decrease in error
      (-.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale)) (*.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale)) (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale)))): 2 points increase in error, 22 points decrease in error
    3. Taylor expanded in angle around 0 37.0

      \[\leadsto \color{blue}{-4 \cdot \frac{{a}^{2} \cdot {b}^{2}}{{y-scale}^{2} \cdot {x-scale}^{2}}} \]
    4. Simplified30.4

      \[\leadsto \color{blue}{\frac{\left(a \cdot a\right) \cdot -4}{\frac{y-scale \cdot y-scale}{\frac{b}{x-scale} \cdot \frac{b}{x-scale}}}} \]
      Proof
      (/.f64 (*.f64 (*.f64 a a) -4) (/.f64 (*.f64 y-scale y-scale) (*.f64 (/.f64 b x-scale) (/.f64 b x-scale)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 a 2)) -4) (/.f64 (*.f64 y-scale y-scale) (*.f64 (/.f64 b x-scale) (/.f64 b x-scale)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (*.f64 (pow.f64 a 2) -4) (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 y-scale 2)) (*.f64 (/.f64 b x-scale) (/.f64 b x-scale)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (*.f64 (pow.f64 a 2) -4) (/.f64 (pow.f64 y-scale 2) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 b b) (*.f64 x-scale x-scale))))): 45 points increase in error, 3 points decrease in error
      (/.f64 (*.f64 (pow.f64 a 2) -4) (/.f64 (pow.f64 y-scale 2) (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 b 2)) (*.f64 x-scale x-scale)))): 0 points increase in error, 0 points decrease in error
      (/.f64 (*.f64 (pow.f64 a 2) -4) (/.f64 (pow.f64 y-scale 2) (/.f64 (pow.f64 b 2) (Rewrite<= unpow2_binary64 (pow.f64 x-scale 2))))): 0 points increase in error, 0 points decrease in error
      (/.f64 (*.f64 (pow.f64 a 2) -4) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 y-scale 2) (pow.f64 x-scale 2)) (pow.f64 b 2)))): 4 points increase in error, 9 points decrease in error
      (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (pow.f64 a 2) (/.f64 (*.f64 (pow.f64 y-scale 2) (pow.f64 x-scale 2)) (pow.f64 b 2))) -4)): 0 points increase in error, 0 points decrease in error
      (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 a 2) (pow.f64 b 2)) (*.f64 (pow.f64 y-scale 2) (pow.f64 x-scale 2)))) -4): 11 points increase in error, 6 points decrease in error
      (Rewrite<= *-commutative_binary64 (*.f64 -4 (/.f64 (*.f64 (pow.f64 a 2) (pow.f64 b 2)) (*.f64 (pow.f64 y-scale 2) (pow.f64 x-scale 2))))): 0 points increase in error, 0 points decrease in error
    5. Applied egg-rr5.6

      \[\leadsto \color{blue}{\frac{a}{\frac{y-scale}{b} \cdot x-scale} \cdot \frac{a \cdot -4}{\frac{y-scale}{b} \cdot x-scale}} \]

    if 2.0500000000000001e145 < b

    1. Initial program 63.3

      \[\frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} \cdot \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} - \left(4 \cdot \frac{\frac{{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{x-scale}}{x-scale}\right) \cdot \frac{\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale}}{y-scale} \]
    2. Simplified62.6

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale \cdot y-scale}, \frac{{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{x-scale \cdot x-scale} \cdot -4, \frac{b \cdot b - a \cdot a}{\frac{\frac{x-scale \cdot y-scale}{\cos \left(\frac{angle}{180} \cdot \pi\right)}}{2 \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)}} \cdot \frac{b \cdot b - a \cdot a}{\frac{\frac{x-scale \cdot y-scale}{\cos \left(\frac{angle}{180} \cdot \pi\right)}}{2 \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)}}\right)} \]
      Proof
      (fma.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 y-scale y-scale)) (*.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale)) -4) (*.f64 (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale)) (*.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) (*.f64 x-scale x-scale)) -4) (*.f64 (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 18 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (*.f64 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale)) -4) (*.f64 (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 5 points increase in error, 20 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (*.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale) (Rewrite<= metadata-eval (neg.f64 4))) (*.f64 (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale) 4))) (*.f64 (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (Rewrite<= *-commutative_binary64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale)))) (*.f64 (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 b 2)) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (-.f64 (pow.f64 b 2) (Rewrite<= unpow2_binary64 (pow.f64 a 2))) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) (/.f64 (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 y-scale x-scale)) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) (/.f64 (Rewrite<= associate-*r/_binary64 (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 3 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64))))) (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64))))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 4 points increase in error, 3 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) 2) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64))))) (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2)))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64))))) y-scale)) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 7 points increase in error, 4 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale)) y-scale) (/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 2 points increase in error, 6 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (-.f64 (Rewrite<= unpow2_binary64 (pow.f64 b 2)) (*.f64 a a)) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (-.f64 (pow.f64 b 2) (Rewrite<= unpow2_binary64 (pow.f64 a 2))) (/.f64 (/.f64 (*.f64 x-scale y-scale) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) (/.f64 (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 y-scale x-scale)) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) (/.f64 (Rewrite<= associate-*r/_binary64 (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 1 points increase in error, 3 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) (*.f64 2 (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64))))) (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64))))))))): 2 points increase in error, 1 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (-.f64 (pow.f64 b 2) (pow.f64 a 2)) 2) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64))))) (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2)))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (*.f64 y-scale (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))))))): 0 points increase in error, 0 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (/.f64 x-scale (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64))))) y-scale)))): 8 points increase in error, 8 points decrease in error
      (fma.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale)) y-scale))): 3 points increase in error, 3 points decrease in error
      (Rewrite<= fma-def_binary64 (+.f64 (*.f64 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale) (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale)))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale)))): 12 points increase in error, 11 points decrease in error
      (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale))) (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale)) (*.f64 (neg.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale))) (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale)))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= cancel-sign-sub-inv_binary64 (-.f64 (*.f64 (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale) (/.f64 (/.f64 (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) x-scale) y-scale)) (*.f64 (*.f64 4 (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) x-scale) x-scale)) (/.f64 (/.f64 (+.f64 (pow.f64 (*.f64 a (cos.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2) (pow.f64 (*.f64 b (sin.f64 (*.f64 (/.f64 angle 180) (PI.f64)))) 2)) y-scale) y-scale)))): 0 points increase in error, 0 points decrease in error
    3. Taylor expanded in angle around 0 62.2

      \[\leadsto \color{blue}{-4 \cdot \frac{{a}^{2} \cdot {b}^{2}}{{y-scale}^{2} \cdot {x-scale}^{2}}} \]
    4. Simplified11.1

      \[\leadsto \color{blue}{-4 \cdot \left(\left(\frac{b}{x-scale} \cdot \frac{a}{y-scale}\right) \cdot \left(\frac{b}{x-scale} \cdot \frac{a}{y-scale}\right)\right)} \]
      Proof
      (*.f64 -4 (*.f64 (*.f64 (/.f64 b x-scale) (/.f64 a y-scale)) (*.f64 (/.f64 b x-scale) (/.f64 a y-scale)))): 0 points increase in error, 0 points decrease in error
      (*.f64 -4 (Rewrite<= unswap-sqr_binary64 (*.f64 (*.f64 (/.f64 b x-scale) (/.f64 b x-scale)) (*.f64 (/.f64 a y-scale) (/.f64 a y-scale))))): 89 points increase in error, 13 points decrease in error
      (*.f64 -4 (*.f64 (Rewrite<= times-frac_binary64 (/.f64 (*.f64 b b) (*.f64 x-scale x-scale))) (*.f64 (/.f64 a y-scale) (/.f64 a y-scale)))): 58 points increase in error, 10 points decrease in error
      (*.f64 -4 (*.f64 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 b 2)) (*.f64 x-scale x-scale)) (*.f64 (/.f64 a y-scale) (/.f64 a y-scale)))): 0 points increase in error, 0 points decrease in error
      (*.f64 -4 (*.f64 (/.f64 (pow.f64 b 2) (Rewrite<= unpow2_binary64 (pow.f64 x-scale 2))) (*.f64 (/.f64 a y-scale) (/.f64 a y-scale)))): 0 points increase in error, 0 points decrease in error
      (*.f64 -4 (*.f64 (/.f64 (pow.f64 b 2) (pow.f64 x-scale 2)) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 a a) (*.f64 y-scale y-scale))))): 39 points increase in error, 4 points decrease in error
      (*.f64 -4 (*.f64 (/.f64 (pow.f64 b 2) (pow.f64 x-scale 2)) (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 a 2)) (*.f64 y-scale y-scale)))): 0 points increase in error, 0 points decrease in error
      (*.f64 -4 (*.f64 (/.f64 (pow.f64 b 2) (pow.f64 x-scale 2)) (/.f64 (pow.f64 a 2) (Rewrite<= unpow2_binary64 (pow.f64 y-scale 2))))): 0 points increase in error, 0 points decrease in error
      (*.f64 -4 (Rewrite<= *-commutative_binary64 (*.f64 (/.f64 (pow.f64 a 2) (pow.f64 y-scale 2)) (/.f64 (pow.f64 b 2) (pow.f64 x-scale 2))))): 0 points increase in error, 0 points decrease in error
      (*.f64 -4 (Rewrite<= times-frac_binary64 (/.f64 (*.f64 (pow.f64 a 2) (pow.f64 b 2)) (*.f64 (pow.f64 y-scale 2) (pow.f64 x-scale 2))))): 13 points increase in error, 16 points decrease in error
  3. Recombined 2 regimes into one program.
  4. Final simplification6.0

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 2.05 \cdot 10^{+145}:\\ \;\;\;\;\frac{a}{\frac{y-scale}{b} \cdot x-scale} \cdot \frac{a \cdot -4}{\frac{y-scale}{b} \cdot x-scale}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(\left(\frac{b}{x-scale} \cdot \frac{a}{y-scale}\right) \cdot \left(\frac{b}{x-scale} \cdot \frac{a}{y-scale}\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Error6.2
Cost1352
\[\begin{array}{l} t_0 := \frac{b}{x-scale} \cdot \frac{a}{y-scale}\\ \mathbf{if}\;a \leq -8.2 \cdot 10^{-289}:\\ \;\;\;\;-4 \cdot \left(\frac{a}{y-scale \cdot \frac{x-scale}{b}} \cdot \left(a \cdot \frac{\frac{b}{x-scale}}{y-scale}\right)\right)\\ \mathbf{elif}\;a \leq 10^{-288}:\\ \;\;\;\;-4 \cdot \frac{\frac{b}{\frac{y-scale \cdot x-scale}{a}} \cdot \left(b \cdot \frac{a}{y-scale}\right)}{x-scale}\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(t_0 \cdot t_0\right)\\ \end{array} \]
Alternative 2
Error6.2
Cost1220
\[\begin{array}{l} t_0 := \frac{b}{x-scale} \cdot \frac{a}{y-scale}\\ \mathbf{if}\;b \leq 3.7 \cdot 10^{+145}:\\ \;\;\;\;\frac{a}{\frac{y-scale}{b} \cdot x-scale} \cdot \left(\left(a \cdot -4\right) \cdot \frac{\frac{b}{y-scale}}{x-scale}\right)\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(t_0 \cdot t_0\right)\\ \end{array} \]
Alternative 3
Error7.5
Cost1088
\[-4 \cdot \left(\left(\frac{b}{x-scale} \cdot \frac{a}{y-scale}\right) \cdot \left(a \cdot \frac{\frac{b}{x-scale}}{y-scale}\right)\right) \]
Alternative 4
Error5.8
Cost1088
\[\begin{array}{l} t_0 := \frac{b}{x-scale} \cdot \frac{a}{y-scale}\\ -4 \cdot \left(t_0 \cdot t_0\right) \end{array} \]
Alternative 5
Error30.8
Cost64
\[0 \]

Error

Reproduce

herbie shell --seed 2022332 
(FPCore (a b angle x-scale y-scale)
  :name "Simplification of discriminant from scale-rotated-ellipse"
  :precision binary64
  (- (* (/ (/ (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI))) (cos (* (/ angle 180.0) PI))) x-scale) y-scale) (/ (/ (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI))) (cos (* (/ angle 180.0) PI))) x-scale) y-scale)) (* (* 4.0 (/ (/ (+ (pow (* a (sin (* (/ angle 180.0) PI))) 2.0) (pow (* b (cos (* (/ angle 180.0) PI))) 2.0)) x-scale) x-scale)) (/ (/ (+ (pow (* a (cos (* (/ angle 180.0) PI))) 2.0) (pow (* b (sin (* (/ angle 180.0) PI))) 2.0)) y-scale) y-scale))))