| Alternative 1 | |
|---|---|
| Accuracy | 35.7% |
| Cost | 46344 |
(FPCore (a b angle x-scale y-scale)
:precision binary64
(/
(-
(sqrt
(*
(*
(* 2.0 (/ (* 4.0 (* (* b a) (* b (- a)))) (pow (* x-scale y-scale) 2.0)))
(* (* b a) (* b (- a))))
(+
(+
(/
(/
(+
(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))
(sqrt
(+
(pow
(-
(/
(/
(+
(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))
2.0)
(pow
(/
(/
(*
(*
(* 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)))))))
(/ (* 4.0 (* (* b a) (* b (- a)))) (pow (* x-scale y-scale) 2.0))))(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* (sqrt 8.0) (* x-scale (sqrt 2.0))))
(t_1 (* angle (* PI 0.005555555555555556)))
(t_2 (hypot (* a (cos t_1)) (* b (sin t_1))))
(t_3 (* t_2 (* -0.25 t_0))))
(if (<= x-scale -6.2e+90)
t_3
(if (<= x-scale -1.12e+42)
(* 0.25 (pow (pow (* (cbrt (* b 4.0)) (cbrt y-scale)) 2.0) 1.5))
(if (<= x-scale -1.6e-162)
t_3
(if (<= x-scale 3.2e-99)
(* 0.25 (pow (pow (cbrt (* (* b 4.0) y-scale)) 2.0) 1.5))
(* t_0 (* t_2 0.25))))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
return -sqrt((((2.0 * ((4.0 * ((b * a) * (b * -a))) / pow((x_45_scale * y_45_scale), 2.0))) * ((b * a) * (b * -a))) * (((((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)) + sqrt((pow(((((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)), 2.0) + pow((((((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)))))) / ((4.0 * ((b * a) * (b * -a))) / pow((x_45_scale * y_45_scale), 2.0));
}
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = sqrt(8.0) * (x_45_scale * sqrt(2.0));
double t_1 = angle * (((double) M_PI) * 0.005555555555555556);
double t_2 = hypot((a * cos(t_1)), (b * sin(t_1)));
double t_3 = t_2 * (-0.25 * t_0);
double tmp;
if (x_45_scale <= -6.2e+90) {
tmp = t_3;
} else if (x_45_scale <= -1.12e+42) {
tmp = 0.25 * pow(pow((cbrt((b * 4.0)) * cbrt(y_45_scale)), 2.0), 1.5);
} else if (x_45_scale <= -1.6e-162) {
tmp = t_3;
} else if (x_45_scale <= 3.2e-99) {
tmp = 0.25 * pow(pow(cbrt(((b * 4.0) * y_45_scale)), 2.0), 1.5);
} else {
tmp = t_0 * (t_2 * 0.25);
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
return -Math.sqrt((((2.0 * ((4.0 * ((b * a) * (b * -a))) / Math.pow((x_45_scale * y_45_scale), 2.0))) * ((b * a) * (b * -a))) * (((((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)) + Math.sqrt((Math.pow(((((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)), 2.0) + Math.pow((((((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)))))) / ((4.0 * ((b * a) * (b * -a))) / Math.pow((x_45_scale * y_45_scale), 2.0));
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = Math.sqrt(8.0) * (x_45_scale * Math.sqrt(2.0));
double t_1 = angle * (Math.PI * 0.005555555555555556);
double t_2 = Math.hypot((a * Math.cos(t_1)), (b * Math.sin(t_1)));
double t_3 = t_2 * (-0.25 * t_0);
double tmp;
if (x_45_scale <= -6.2e+90) {
tmp = t_3;
} else if (x_45_scale <= -1.12e+42) {
tmp = 0.25 * Math.pow(Math.pow((Math.cbrt((b * 4.0)) * Math.cbrt(y_45_scale)), 2.0), 1.5);
} else if (x_45_scale <= -1.6e-162) {
tmp = t_3;
} else if (x_45_scale <= 3.2e-99) {
tmp = 0.25 * Math.pow(Math.pow(Math.cbrt(((b * 4.0) * y_45_scale)), 2.0), 1.5);
} else {
tmp = t_0 * (t_2 * 0.25);
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) return Float64(Float64(-sqrt(Float64(Float64(Float64(2.0 * Float64(Float64(4.0 * Float64(Float64(b * a) * Float64(b * Float64(-a)))) / (Float64(x_45_scale * y_45_scale) ^ 2.0))) * Float64(Float64(b * a) * Float64(b * Float64(-a)))) * Float64(Float64(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)) + sqrt(Float64((Float64(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)) ^ 2.0) + (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) ^ 2.0))))))) / Float64(Float64(4.0 * Float64(Float64(b * a) * Float64(b * Float64(-a)))) / (Float64(x_45_scale * y_45_scale) ^ 2.0))) end
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(sqrt(8.0) * Float64(x_45_scale * sqrt(2.0))) t_1 = Float64(angle * Float64(pi * 0.005555555555555556)) t_2 = hypot(Float64(a * cos(t_1)), Float64(b * sin(t_1))) t_3 = Float64(t_2 * Float64(-0.25 * t_0)) tmp = 0.0 if (x_45_scale <= -6.2e+90) tmp = t_3; elseif (x_45_scale <= -1.12e+42) tmp = Float64(0.25 * ((Float64(cbrt(Float64(b * 4.0)) * cbrt(y_45_scale)) ^ 2.0) ^ 1.5)); elseif (x_45_scale <= -1.6e-162) tmp = t_3; elseif (x_45_scale <= 3.2e-99) tmp = Float64(0.25 * ((cbrt(Float64(Float64(b * 4.0) * y_45_scale)) ^ 2.0) ^ 1.5)); else tmp = Float64(t_0 * Float64(t_2 * 0.25)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := N[((-N[Sqrt[N[(N[(N[(2.0 * N[(N[(4.0 * N[(N[(b * a), $MachinePrecision] * N[(b * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(x$45$scale * y$45$scale), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(b * a), $MachinePrecision] * N[(b * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(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] + 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] + N[Sqrt[N[(N[Power[N[(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] - 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], 2.0], $MachinePrecision] + N[Power[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], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[(4.0 * N[(N[(b * a), $MachinePrecision] * N[(b * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(x$45$scale * y$45$scale), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[Sqrt[8.0], $MachinePrecision] * N[(x$45$scale * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(angle * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(a * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision] ^ 2 + N[(b * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[(-0.25 * t$95$0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$45$scale, -6.2e+90], t$95$3, If[LessEqual[x$45$scale, -1.12e+42], N[(0.25 * N[Power[N[Power[N[(N[Power[N[(b * 4.0), $MachinePrecision], 1/3], $MachinePrecision] * N[Power[y$45$scale, 1/3], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], 1.5], $MachinePrecision]), $MachinePrecision], If[LessEqual[x$45$scale, -1.6e-162], t$95$3, If[LessEqual[x$45$scale, 3.2e-99], N[(0.25 * N[Power[N[Power[N[Power[N[(N[(b * 4.0), $MachinePrecision] * y$45$scale), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision], 1.5], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(t$95$2 * 0.25), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\frac{-\sqrt{\left(\left(2 \cdot \frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}\right) \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)\right) \cdot \left(\left(\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} + \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}\right) + \sqrt{{\left(\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} - \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}\right)}^{2} + {\left(\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}\right)}^{2}}\right)}}{\frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}}
\begin{array}{l}
t_0 := \sqrt{8} \cdot \left(x-scale \cdot \sqrt{2}\right)\\
t_1 := angle \cdot \left(\pi \cdot 0.005555555555555556\right)\\
t_2 := \mathsf{hypot}\left(a \cdot \cos t_1, b \cdot \sin t_1\right)\\
t_3 := t_2 \cdot \left(-0.25 \cdot t_0\right)\\
\mathbf{if}\;x-scale \leq -6.2 \cdot 10^{+90}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x-scale \leq -1.12 \cdot 10^{+42}:\\
\;\;\;\;0.25 \cdot {\left({\left(\sqrt[3]{b \cdot 4} \cdot \sqrt[3]{y-scale}\right)}^{2}\right)}^{1.5}\\
\mathbf{elif}\;x-scale \leq -1.6 \cdot 10^{-162}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x-scale \leq 3.2 \cdot 10^{-99}:\\
\;\;\;\;0.25 \cdot {\left({\left(\sqrt[3]{\left(b \cdot 4\right) \cdot y-scale}\right)}^{2}\right)}^{1.5}\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(t_2 \cdot 0.25\right)\\
\end{array}
Results
if x-scale < -6.19999999999999977e90 or -1.12e42 < x-scale < -1.59999999999999988e-162Initial program 1.0%
Simplified1.7%
[Start]1.0 | \[ \frac{-\sqrt{\left(\left(2 \cdot \frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}\right) \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)\right) \cdot \left(\left(\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} + \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}\right) + \sqrt{{\left(\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} - \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}\right)}^{2} + {\left(\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}\right)}^{2}}\right)}}{\frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}}
\] |
|---|
Taylor expanded in x-scale around -inf 3.8%
Simplified3.8%
[Start]3.8 | \[ {\left(x-scale \cdot y-scale\right)}^{2} \cdot \left(-0.25 \cdot \left(\frac{\sqrt{8}}{y-scale \cdot x-scale} \cdot \sqrt{2 \cdot \frac{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}} + 2 \cdot \frac{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}}}\right)\right)
\] |
|---|---|
*-commutative [=>]3.8 | \[ {\left(x-scale \cdot y-scale\right)}^{2} \cdot \left(-0.25 \cdot \color{blue}{\left(\sqrt{2 \cdot \frac{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}} + 2 \cdot \frac{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}}} \cdot \frac{\sqrt{8}}{y-scale \cdot x-scale}\right)}\right)
\] |
Taylor expanded in y-scale around 0 25.0%
Simplified40.8%
[Start]25.0 | \[ -0.25 \cdot \left(\left(\sqrt{2} \cdot \left(x-scale \cdot \sqrt{8}\right)\right) \cdot \sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}\right)
\] |
|---|---|
associate-*r* [=>]25.0 | \[ \color{blue}{\left(-0.25 \cdot \left(\sqrt{2} \cdot \left(x-scale \cdot \sqrt{8}\right)\right)\right) \cdot \sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}}
\] |
*-commutative [=>]25.0 | \[ \color{blue}{\sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \cdot \left(-0.25 \cdot \left(\sqrt{2} \cdot \left(x-scale \cdot \sqrt{8}\right)\right)\right)}
\] |
if -6.19999999999999977e90 < x-scale < -1.12e42Initial program 1.9%
Simplified2.4%
[Start]1.9 | \[ \frac{-\sqrt{\left(\left(2 \cdot \frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}\right) \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)\right) \cdot \left(\left(\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} + \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}\right) + \sqrt{{\left(\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} - \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}\right)}^{2} + {\left(\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}\right)}^{2}}\right)}}{\frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}}
\] |
|---|
Taylor expanded in angle around 0 9.9%
Simplified9.9%
[Start]9.9 | \[ 0.25 \cdot \left(y-scale \cdot \left(\sqrt{2} \cdot \left(b \cdot \sqrt{8}\right)\right)\right)
\] |
|---|---|
associate-*r* [=>]9.9 | \[ 0.25 \cdot \color{blue}{\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(b \cdot \sqrt{8}\right)\right)}
\] |
*-commutative [=>]9.9 | \[ 0.25 \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \color{blue}{\left(\sqrt{8} \cdot b\right)}\right)
\] |
Applied egg-rr4.9%
[Start]9.9 | \[ 0.25 \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)
\] |
|---|---|
add-cbrt-cube [=>]5.3 | \[ 0.25 \cdot \color{blue}{\sqrt[3]{\left(\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)}}
\] |
pow1/3 [=>]4.8 | \[ 0.25 \cdot \color{blue}{{\left(\left(\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right)}^{0.3333333333333333}}
\] |
pow-to-exp [=>]4.9 | \[ 0.25 \cdot \color{blue}{e^{\log \left(\left(\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot 0.3333333333333333}}
\] |
Applied egg-rr20.2%
[Start]4.9 | \[ 0.25 \cdot e^{\log \left({\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}^{3}\right) \cdot 0.3333333333333333}
\] |
|---|---|
exp-to-pow [=>]4.8 | \[ 0.25 \cdot \color{blue}{{\left({\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}^{3}\right)}^{0.3333333333333333}}
\] |
pow1/3 [<=]5.4 | \[ 0.25 \cdot \color{blue}{\sqrt[3]{{\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}^{3}}}
\] |
rem-cbrt-cube [=>]10.0 | \[ 0.25 \cdot \color{blue}{\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}
\] |
add-cube-cbrt [=>]9.8 | \[ 0.25 \cdot \color{blue}{\left(\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)} \cdot \sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right) \cdot \sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}
\] |
pow3 [=>]9.8 | \[ 0.25 \cdot \color{blue}{{\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{3}}
\] |
metadata-eval [<=]9.8 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\color{blue}{\left(2 \cdot 1.5\right)}}
\] |
metadata-eval [<=]9.8 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(2 \cdot \color{blue}{\frac{3}{2}}\right)}
\] |
metadata-eval [<=]9.8 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\color{blue}{\sqrt{4}} \cdot \frac{3}{2}\right)}
\] |
metadata-eval [<=]9.8 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\sqrt{\color{blue}{\sqrt{16}}} \cdot \frac{3}{2}\right)}
\] |
unpow1/2 [<=]9.8 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\sqrt{\color{blue}{{16}^{0.5}}} \cdot \frac{3}{2}\right)}
\] |
pow-pow [<=]20.2 | \[ 0.25 \cdot \color{blue}{{\left({\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\sqrt{{16}^{0.5}}\right)}\right)}^{\left(\frac{3}{2}\right)}}
\] |
Simplified20.2%
[Start]20.2 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{b \cdot \left(y-scale \cdot 4\right)}\right)}^{2}\right)}^{1.5}
\] |
|---|---|
*-commutative [=>]20.2 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{\color{blue}{\left(y-scale \cdot 4\right) \cdot b}}\right)}^{2}\right)}^{1.5}
\] |
associate-*r* [<=]20.2 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{\color{blue}{y-scale \cdot \left(4 \cdot b\right)}}\right)}^{2}\right)}^{1.5}
\] |
*-commutative [=>]20.2 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{y-scale \cdot \color{blue}{\left(b \cdot 4\right)}}\right)}^{2}\right)}^{1.5}
\] |
Applied egg-rr20.1%
[Start]20.2 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{y-scale \cdot \left(b \cdot 4\right)}\right)}^{2}\right)}^{1.5}
\] |
|---|---|
*-commutative [=>]20.2 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{\color{blue}{\left(b \cdot 4\right) \cdot y-scale}}\right)}^{2}\right)}^{1.5}
\] |
cbrt-prod [=>]20.1 | \[ 0.25 \cdot {\left({\color{blue}{\left(\sqrt[3]{b \cdot 4} \cdot \sqrt[3]{y-scale}\right)}}^{2}\right)}^{1.5}
\] |
if -1.59999999999999988e-162 < x-scale < 3.2000000000000001e-99Initial program 0.3%
Simplified0.1%
[Start]0.3 | \[ \frac{-\sqrt{\left(\left(2 \cdot \frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}\right) \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)\right) \cdot \left(\left(\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} + \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}\right) + \sqrt{{\left(\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} - \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}\right)}^{2} + {\left(\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}\right)}^{2}}\right)}}{\frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}}
\] |
|---|
Taylor expanded in angle around 0 22.5%
Simplified22.5%
[Start]22.5 | \[ 0.25 \cdot \left(y-scale \cdot \left(\sqrt{2} \cdot \left(b \cdot \sqrt{8}\right)\right)\right)
\] |
|---|---|
associate-*r* [=>]22.5 | \[ 0.25 \cdot \color{blue}{\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(b \cdot \sqrt{8}\right)\right)}
\] |
*-commutative [=>]22.5 | \[ 0.25 \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \color{blue}{\left(\sqrt{8} \cdot b\right)}\right)
\] |
Applied egg-rr12.3%
[Start]22.5 | \[ 0.25 \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)
\] |
|---|---|
add-cbrt-cube [=>]12.9 | \[ 0.25 \cdot \color{blue}{\sqrt[3]{\left(\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)}}
\] |
pow1/3 [=>]12.3 | \[ 0.25 \cdot \color{blue}{{\left(\left(\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right)}^{0.3333333333333333}}
\] |
pow-to-exp [=>]12.3 | \[ 0.25 \cdot \color{blue}{e^{\log \left(\left(\left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot \left(\left(y-scale \cdot \sqrt{2}\right) \cdot \left(\sqrt{8} \cdot b\right)\right)\right) \cdot 0.3333333333333333}}
\] |
Applied egg-rr38.7%
[Start]12.3 | \[ 0.25 \cdot e^{\log \left({\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}^{3}\right) \cdot 0.3333333333333333}
\] |
|---|---|
exp-to-pow [=>]12.3 | \[ 0.25 \cdot \color{blue}{{\left({\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}^{3}\right)}^{0.3333333333333333}}
\] |
pow1/3 [<=]13.0 | \[ 0.25 \cdot \color{blue}{\sqrt[3]{{\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}^{3}}}
\] |
rem-cbrt-cube [=>]22.7 | \[ 0.25 \cdot \color{blue}{\left(b \cdot \left(y-scale \cdot {16}^{0.5}\right)\right)}
\] |
add-cube-cbrt [=>]22.4 | \[ 0.25 \cdot \color{blue}{\left(\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)} \cdot \sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right) \cdot \sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}
\] |
pow3 [=>]22.4 | \[ 0.25 \cdot \color{blue}{{\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{3}}
\] |
metadata-eval [<=]22.4 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\color{blue}{\left(2 \cdot 1.5\right)}}
\] |
metadata-eval [<=]22.4 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(2 \cdot \color{blue}{\frac{3}{2}}\right)}
\] |
metadata-eval [<=]22.4 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\color{blue}{\sqrt{4}} \cdot \frac{3}{2}\right)}
\] |
metadata-eval [<=]22.4 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\sqrt{\color{blue}{\sqrt{16}}} \cdot \frac{3}{2}\right)}
\] |
unpow1/2 [<=]22.4 | \[ 0.25 \cdot {\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\sqrt{\color{blue}{{16}^{0.5}}} \cdot \frac{3}{2}\right)}
\] |
pow-pow [<=]38.7 | \[ 0.25 \cdot \color{blue}{{\left({\left(\sqrt[3]{b \cdot \left(y-scale \cdot {16}^{0.5}\right)}\right)}^{\left(\sqrt{{16}^{0.5}}\right)}\right)}^{\left(\frac{3}{2}\right)}}
\] |
Simplified38.7%
[Start]38.7 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{b \cdot \left(y-scale \cdot 4\right)}\right)}^{2}\right)}^{1.5}
\] |
|---|---|
*-commutative [=>]38.7 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{\color{blue}{\left(y-scale \cdot 4\right) \cdot b}}\right)}^{2}\right)}^{1.5}
\] |
associate-*r* [<=]38.7 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{\color{blue}{y-scale \cdot \left(4 \cdot b\right)}}\right)}^{2}\right)}^{1.5}
\] |
*-commutative [=>]38.7 | \[ 0.25 \cdot {\left({\left(\sqrt[3]{y-scale \cdot \color{blue}{\left(b \cdot 4\right)}}\right)}^{2}\right)}^{1.5}
\] |
if 3.2000000000000001e-99 < x-scale Initial program 1.3%
Simplified2.1%
[Start]1.3 | \[ \frac{-\sqrt{\left(\left(2 \cdot \frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}\right) \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)\right) \cdot \left(\left(\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} + \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}\right) + \sqrt{{\left(\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} - \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}\right)}^{2} + {\left(\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}\right)}^{2}}\right)}}{\frac{4 \cdot \left(\left(b \cdot a\right) \cdot \left(b \cdot \left(-a\right)\right)\right)}{{\left(x-scale \cdot y-scale\right)}^{2}}}
\] |
|---|
Taylor expanded in x-scale around -inf 4.2%
Simplified4.2%
[Start]4.2 | \[ {\left(x-scale \cdot y-scale\right)}^{2} \cdot \left(-0.25 \cdot \left(\frac{\sqrt{8}}{y-scale \cdot x-scale} \cdot \sqrt{2 \cdot \frac{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}} + 2 \cdot \frac{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}}}\right)\right)
\] |
|---|---|
*-commutative [=>]4.2 | \[ {\left(x-scale \cdot y-scale\right)}^{2} \cdot \left(-0.25 \cdot \color{blue}{\left(\sqrt{2 \cdot \frac{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}} + 2 \cdot \frac{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}{{y-scale}^{2}}} \cdot \frac{\sqrt{8}}{y-scale \cdot x-scale}\right)}\right)
\] |
Taylor expanded in y-scale around -inf 26.7%
Simplified44.8%
[Start]26.7 | \[ 0.25 \cdot \left(\left(\sqrt{2} \cdot \left(x-scale \cdot \sqrt{8}\right)\right) \cdot \sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}\right)
\] |
|---|---|
*-commutative [=>]26.7 | \[ \color{blue}{\left(\left(\sqrt{2} \cdot \left(x-scale \cdot \sqrt{8}\right)\right) \cdot \sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}}\right) \cdot 0.25}
\] |
associate-*l* [=>]26.8 | \[ \color{blue}{\left(\sqrt{2} \cdot \left(x-scale \cdot \sqrt{8}\right)\right) \cdot \left(\sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \cdot 0.25\right)}
\] |
associate-*r* [=>]26.8 | \[ \color{blue}{\left(\left(\sqrt{2} \cdot x-scale\right) \cdot \sqrt{8}\right)} \cdot \left(\sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \cdot 0.25\right)
\] |
*-commutative [=>]26.8 | \[ \color{blue}{\left(\sqrt{8} \cdot \left(\sqrt{2} \cdot x-scale\right)\right)} \cdot \left(\sqrt{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} + {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \cdot 0.25\right)
\] |
Final simplification40.4%
| Alternative 1 | |
|---|---|
| Accuracy | 35.7% |
| Cost | 46344 |
| Alternative 2 | |
|---|---|
| Accuracy | 27.6% |
| Cost | 27024 |
| Alternative 3 | |
|---|---|
| Accuracy | 27.3% |
| Cost | 27024 |
| Alternative 4 | |
|---|---|
| Accuracy | 27.4% |
| Cost | 27024 |
| Alternative 5 | |
|---|---|
| Accuracy | 27.3% |
| Cost | 27024 |
| Alternative 6 | |
|---|---|
| Accuracy | 27.4% |
| Cost | 27024 |
| Alternative 7 | |
|---|---|
| Accuracy | 20.6% |
| Cost | 20304 |
| Alternative 8 | |
|---|---|
| Accuracy | 27.7% |
| Cost | 20040 |
| Alternative 9 | |
|---|---|
| Accuracy | 19.6% |
| Cost | 14169 |
| Alternative 10 | |
|---|---|
| Accuracy | 19.5% |
| Cost | 14169 |
| Alternative 11 | |
|---|---|
| Accuracy | 19.8% |
| Cost | 13905 |
| Alternative 12 | |
|---|---|
| Accuracy | 16.1% |
| Cost | 7496 |
| Alternative 13 | |
|---|---|
| Accuracy | 16.0% |
| Cost | 7496 |
| Alternative 14 | |
|---|---|
| Accuracy | 15.7% |
| Cost | 978 |
| Alternative 15 | |
|---|---|
| Accuracy | 15.5% |
| Cost | 448 |
herbie shell --seed 2023146
(FPCore (a b angle x-scale y-scale)
:name "a from scale-rotated-ellipse"
:precision binary64
(/ (- (sqrt (* (* (* 2.0 (/ (* 4.0 (* (* b a) (* b (- a)))) (pow (* x-scale y-scale) 2.0))) (* (* b a) (* b (- a)))) (+ (+ (/ (/ (+ (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)) (sqrt (+ (pow (- (/ (/ (+ (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)) 2.0) (pow (/ (/ (* (* (* 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))))))) (/ (* 4.0 (* (* b a) (* b (- a)))) (pow (* x-scale y-scale) 2.0))))