
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* (/ angle 180.0) PI))
(t_1 (cos t_0))
(t_2 (sin t_0))
(t_3
(/
(/ (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) t_2) t_1) x-scale)
y-scale))
(t_4
(/ (/ (+ (pow (* a t_1) 2.0) (pow (* b t_2) 2.0)) y-scale) y-scale))
(t_5
(/ (/ (+ (pow (* a t_2) 2.0) (pow (* b t_1) 2.0)) x-scale) x-scale)))
(*
180.0
(/
(atan
(/ (- (- t_4 t_5) (sqrt (+ (pow (- t_5 t_4) 2.0) (pow t_3 2.0)))) t_3))
PI))))
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (angle / 180.0) * ((double) M_PI);
double t_1 = cos(t_0);
double t_2 = sin(t_0);
double t_3 = ((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale;
double t_4 = ((pow((a * t_1), 2.0) + pow((b * t_2), 2.0)) / y_45_scale) / y_45_scale;
double t_5 = ((pow((a * t_2), 2.0) + pow((b * t_1), 2.0)) / x_45_scale) / x_45_scale;
return 180.0 * (atan((((t_4 - t_5) - sqrt((pow((t_5 - t_4), 2.0) + pow(t_3, 2.0)))) / t_3)) / ((double) M_PI));
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (angle / 180.0) * Math.PI;
double t_1 = Math.cos(t_0);
double t_2 = Math.sin(t_0);
double t_3 = ((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale;
double t_4 = ((Math.pow((a * t_1), 2.0) + Math.pow((b * t_2), 2.0)) / y_45_scale) / y_45_scale;
double t_5 = ((Math.pow((a * t_2), 2.0) + Math.pow((b * t_1), 2.0)) / x_45_scale) / x_45_scale;
return 180.0 * (Math.atan((((t_4 - t_5) - Math.sqrt((Math.pow((t_5 - t_4), 2.0) + Math.pow(t_3, 2.0)))) / t_3)) / Math.PI);
}
def code(a, b, angle, x_45_scale, y_45_scale): t_0 = (angle / 180.0) * math.pi t_1 = math.cos(t_0) t_2 = math.sin(t_0) t_3 = ((((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale t_4 = ((math.pow((a * t_1), 2.0) + math.pow((b * t_2), 2.0)) / y_45_scale) / y_45_scale t_5 = ((math.pow((a * t_2), 2.0) + math.pow((b * t_1), 2.0)) / x_45_scale) / x_45_scale return 180.0 * (math.atan((((t_4 - t_5) - math.sqrt((math.pow((t_5 - t_4), 2.0) + math.pow(t_3, 2.0)))) / t_3)) / math.pi)
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(Float64(angle / 180.0) * pi) t_1 = cos(t_0) t_2 = sin(t_0) t_3 = Float64(Float64(Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale) t_4 = Float64(Float64(Float64((Float64(a * t_1) ^ 2.0) + (Float64(b * t_2) ^ 2.0)) / y_45_scale) / y_45_scale) t_5 = Float64(Float64(Float64((Float64(a * t_2) ^ 2.0) + (Float64(b * t_1) ^ 2.0)) / x_45_scale) / x_45_scale) return Float64(180.0 * Float64(atan(Float64(Float64(Float64(t_4 - t_5) - sqrt(Float64((Float64(t_5 - t_4) ^ 2.0) + (t_3 ^ 2.0)))) / t_3)) / pi)) end
function tmp = code(a, b, angle, x_45_scale, y_45_scale) t_0 = (angle / 180.0) * pi; t_1 = cos(t_0); t_2 = sin(t_0); t_3 = ((((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale; t_4 = ((((a * t_1) ^ 2.0) + ((b * t_2) ^ 2.0)) / y_45_scale) / y_45_scale; t_5 = ((((a * t_2) ^ 2.0) + ((b * t_1) ^ 2.0)) / x_45_scale) / x_45_scale; tmp = 180.0 * (atan((((t_4 - t_5) - sqrt((((t_5 - t_4) ^ 2.0) + (t_3 ^ 2.0)))) / t_3)) / pi); end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] * t$95$1), $MachinePrecision] / x$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[Power[N[(a * t$95$1), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * t$95$2), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / y$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(N[Power[N[(a * t$95$2), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * t$95$1), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / x$45$scale), $MachinePrecision]}, N[(180.0 * N[(N[ArcTan[N[(N[(N[(t$95$4 - t$95$5), $MachinePrecision] - N[Sqrt[N[(N[Power[N[(t$95$5 - t$95$4), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[t$95$3, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{angle}{180} \cdot \pi\\
t_1 := \cos t\_0\\
t_2 := \sin t\_0\\
t_3 := \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot t\_2\right) \cdot t\_1}{x-scale}}{y-scale}\\
t_4 := \frac{\frac{{\left(a \cdot t\_1\right)}^{2} + {\left(b \cdot t\_2\right)}^{2}}{y-scale}}{y-scale}\\
t_5 := \frac{\frac{{\left(a \cdot t\_2\right)}^{2} + {\left(b \cdot t\_1\right)}^{2}}{x-scale}}{x-scale}\\
180 \cdot \frac{\tan^{-1} \left(\frac{\left(t\_4 - t\_5\right) - \sqrt{{\left(t\_5 - t\_4\right)}^{2} + {t\_3}^{2}}}{t\_3}\right)}{\pi}
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* (/ angle 180.0) PI))
(t_1 (cos t_0))
(t_2 (sin t_0))
(t_3
(/
(/ (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) t_2) t_1) x-scale)
y-scale))
(t_4
(/ (/ (+ (pow (* a t_1) 2.0) (pow (* b t_2) 2.0)) y-scale) y-scale))
(t_5
(/ (/ (+ (pow (* a t_2) 2.0) (pow (* b t_1) 2.0)) x-scale) x-scale)))
(*
180.0
(/
(atan
(/ (- (- t_4 t_5) (sqrt (+ (pow (- t_5 t_4) 2.0) (pow t_3 2.0)))) t_3))
PI))))
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (angle / 180.0) * ((double) M_PI);
double t_1 = cos(t_0);
double t_2 = sin(t_0);
double t_3 = ((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale;
double t_4 = ((pow((a * t_1), 2.0) + pow((b * t_2), 2.0)) / y_45_scale) / y_45_scale;
double t_5 = ((pow((a * t_2), 2.0) + pow((b * t_1), 2.0)) / x_45_scale) / x_45_scale;
return 180.0 * (atan((((t_4 - t_5) - sqrt((pow((t_5 - t_4), 2.0) + pow(t_3, 2.0)))) / t_3)) / ((double) M_PI));
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (angle / 180.0) * Math.PI;
double t_1 = Math.cos(t_0);
double t_2 = Math.sin(t_0);
double t_3 = ((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale;
double t_4 = ((Math.pow((a * t_1), 2.0) + Math.pow((b * t_2), 2.0)) / y_45_scale) / y_45_scale;
double t_5 = ((Math.pow((a * t_2), 2.0) + Math.pow((b * t_1), 2.0)) / x_45_scale) / x_45_scale;
return 180.0 * (Math.atan((((t_4 - t_5) - Math.sqrt((Math.pow((t_5 - t_4), 2.0) + Math.pow(t_3, 2.0)))) / t_3)) / Math.PI);
}
def code(a, b, angle, x_45_scale, y_45_scale): t_0 = (angle / 180.0) * math.pi t_1 = math.cos(t_0) t_2 = math.sin(t_0) t_3 = ((((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale t_4 = ((math.pow((a * t_1), 2.0) + math.pow((b * t_2), 2.0)) / y_45_scale) / y_45_scale t_5 = ((math.pow((a * t_2), 2.0) + math.pow((b * t_1), 2.0)) / x_45_scale) / x_45_scale return 180.0 * (math.atan((((t_4 - t_5) - math.sqrt((math.pow((t_5 - t_4), 2.0) + math.pow(t_3, 2.0)))) / t_3)) / math.pi)
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(Float64(angle / 180.0) * pi) t_1 = cos(t_0) t_2 = sin(t_0) t_3 = Float64(Float64(Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale) t_4 = Float64(Float64(Float64((Float64(a * t_1) ^ 2.0) + (Float64(b * t_2) ^ 2.0)) / y_45_scale) / y_45_scale) t_5 = Float64(Float64(Float64((Float64(a * t_2) ^ 2.0) + (Float64(b * t_1) ^ 2.0)) / x_45_scale) / x_45_scale) return Float64(180.0 * Float64(atan(Float64(Float64(Float64(t_4 - t_5) - sqrt(Float64((Float64(t_5 - t_4) ^ 2.0) + (t_3 ^ 2.0)))) / t_3)) / pi)) end
function tmp = code(a, b, angle, x_45_scale, y_45_scale) t_0 = (angle / 180.0) * pi; t_1 = cos(t_0); t_2 = sin(t_0); t_3 = ((((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * t_2) * t_1) / x_45_scale) / y_45_scale; t_4 = ((((a * t_1) ^ 2.0) + ((b * t_2) ^ 2.0)) / y_45_scale) / y_45_scale; t_5 = ((((a * t_2) ^ 2.0) + ((b * t_1) ^ 2.0)) / x_45_scale) / x_45_scale; tmp = 180.0 * (atan((((t_4 - t_5) - sqrt((((t_5 - t_4) ^ 2.0) + (t_3 ^ 2.0)))) / t_3)) / pi); end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] * t$95$1), $MachinePrecision] / x$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[Power[N[(a * t$95$1), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * t$95$2), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / y$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(N[Power[N[(a * t$95$2), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * t$95$1), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / x$45$scale), $MachinePrecision]}, N[(180.0 * N[(N[ArcTan[N[(N[(N[(t$95$4 - t$95$5), $MachinePrecision] - N[Sqrt[N[(N[Power[N[(t$95$5 - t$95$4), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[t$95$3, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{angle}{180} \cdot \pi\\
t_1 := \cos t\_0\\
t_2 := \sin t\_0\\
t_3 := \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot t\_2\right) \cdot t\_1}{x-scale}}{y-scale}\\
t_4 := \frac{\frac{{\left(a \cdot t\_1\right)}^{2} + {\left(b \cdot t\_2\right)}^{2}}{y-scale}}{y-scale}\\
t_5 := \frac{\frac{{\left(a \cdot t\_2\right)}^{2} + {\left(b \cdot t\_1\right)}^{2}}{x-scale}}{x-scale}\\
180 \cdot \frac{\tan^{-1} \left(\frac{\left(t\_4 - t\_5\right) - \sqrt{{\left(t\_5 - t\_4\right)}^{2} + {t\_3}^{2}}}{t\_3}\right)}{\pi}
\end{array}
\end{array}
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 7.4e-72)
(/
(*
180.0
(atan
(/
(*
0.5
(/
(*
(* -2.0 y-scale)
(pow
(cos
(*
(* (cbrt PI) 0.005555555555555556)
(* angle (pow PI 0.6666666666666666))))
2.0))
x-scale))
(*
t_1
(sin
(*
(cbrt PI)
(*
(pow PI 0.6666666666666666)
(* 0.005555555555555556 angle))))))))
PI)
(if (<= a_m 4e+213)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale t_1)))
PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 7.4e-72) {
tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * pow(cos(((cbrt(((double) M_PI)) * 0.005555555555555556) * (angle * pow(((double) M_PI), 0.6666666666666666)))), 2.0)) / x_45_scale)) / (t_1 * sin((cbrt(((double) M_PI)) * (pow(((double) M_PI), 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / ((double) M_PI);
} else if (a_m <= 4e+213) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 7.4e-72) {
tmp = (180.0 * Math.atan(((0.5 * (((-2.0 * y_45_scale) * Math.pow(Math.cos(((Math.cbrt(Math.PI) * 0.005555555555555556) * (angle * Math.pow(Math.PI, 0.6666666666666666)))), 2.0)) / x_45_scale)) / (t_1 * Math.sin((Math.cbrt(Math.PI) * (Math.pow(Math.PI, 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / Math.PI;
} else if (a_m <= 4e+213) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / Math.PI);
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 7.4e-72) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(Float64(-2.0 * y_45_scale) * (cos(Float64(Float64(cbrt(pi) * 0.005555555555555556) * Float64(angle * (pi ^ 0.6666666666666666)))) ^ 2.0)) / x_45_scale)) / Float64(t_1 * sin(Float64(cbrt(pi) * Float64((pi ^ 0.6666666666666666) * Float64(0.005555555555555556 * angle)))))))) / pi); elseif (a_m <= 4e+213) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * t_1))) / pi)); end return tmp end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 7.4e-72], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(N[(-2.0 * y$45$scale), $MachinePrecision] * N[Power[N[Cos[N[(N[(N[Power[Pi, 1/3], $MachinePrecision] * 0.005555555555555556), $MachinePrecision] * N[(angle * N[Power[Pi, 0.6666666666666666], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(N[Power[Pi, 1/3], $MachinePrecision] * N[(N[Power[Pi, 0.6666666666666666], $MachinePrecision] * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[a$95$m, 4e+213], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 7.4 \cdot 10^{-72}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{\left(-2 \cdot y-scale\right) \cdot {\cos \left(\left(\sqrt[3]{\pi} \cdot 0.005555555555555556\right) \cdot \left(angle \cdot {\pi}^{0.6666666666666666}\right)\right)}^{2}}{x-scale}}{t\_1 \cdot \sin \left(\sqrt[3]{\pi} \cdot \left({\pi}^{0.6666666666666666} \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 4 \cdot 10^{+213}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot t\_1}\right)}{\pi}\\
\end{array}
\end{array}
if a < 7.3999999999999997e-72Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
associate-*r*N/A
add-cbrt-cubeN/A
cbrt-prodN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cbrt-prodN/A
pow2N/A
pow1/3N/A
pow-powN/A
pow-lowering-pow.f64N/A
PI-lowering-PI.f64N/A
metadata-evalN/A
cbrt-lowering-cbrt.f64N/A
PI-lowering-PI.f6456.5%
Applied egg-rr56.5%
associate-*r*N/A
pow1N/A
metadata-evalN/A
pow-prod-upN/A
pow1/3N/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cbrt-lowering-cbrt.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
PI-lowering-PI.f6456.5%
Applied egg-rr56.5%
if 7.3999999999999997e-72 < a < 3.99999999999999994e213Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 3.99999999999999994e213 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification59.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 3.25e-71)
(/
(*
180.0
(atan
(/
(*
0.5
(/
(*
(* -2.0 y-scale)
(pow (cos (* angle (* PI 0.005555555555555556))) 2.0))
x-scale))
(*
t_1
(sin
(*
(cbrt PI)
(*
(pow PI 0.6666666666666666)
(* 0.005555555555555556 angle))))))))
PI)
(if (<= a_m 2.6e+213)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale t_1)))
PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 3.25e-71) {
tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * pow(cos((angle * (((double) M_PI) * 0.005555555555555556))), 2.0)) / x_45_scale)) / (t_1 * sin((cbrt(((double) M_PI)) * (pow(((double) M_PI), 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / ((double) M_PI);
} else if (a_m <= 2.6e+213) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 3.25e-71) {
tmp = (180.0 * Math.atan(((0.5 * (((-2.0 * y_45_scale) * Math.pow(Math.cos((angle * (Math.PI * 0.005555555555555556))), 2.0)) / x_45_scale)) / (t_1 * Math.sin((Math.cbrt(Math.PI) * (Math.pow(Math.PI, 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / Math.PI;
} else if (a_m <= 2.6e+213) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / Math.PI);
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 3.25e-71) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(Float64(-2.0 * y_45_scale) * (cos(Float64(angle * Float64(pi * 0.005555555555555556))) ^ 2.0)) / x_45_scale)) / Float64(t_1 * sin(Float64(cbrt(pi) * Float64((pi ^ 0.6666666666666666) * Float64(0.005555555555555556 * angle)))))))) / pi); elseif (a_m <= 2.6e+213) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * t_1))) / pi)); end return tmp end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 3.25e-71], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(N[(-2.0 * y$45$scale), $MachinePrecision] * N[Power[N[Cos[N[(angle * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(N[Power[Pi, 1/3], $MachinePrecision] * N[(N[Power[Pi, 0.6666666666666666], $MachinePrecision] * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[a$95$m, 2.6e+213], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 3.25 \cdot 10^{-71}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{\left(-2 \cdot y-scale\right) \cdot {\cos \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)}^{2}}{x-scale}}{t\_1 \cdot \sin \left(\sqrt[3]{\pi} \cdot \left({\pi}^{0.6666666666666666} \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 2.6 \cdot 10^{+213}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot t\_1}\right)}{\pi}\\
\end{array}
\end{array}
if a < 3.25000000000000003e-71Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
associate-*r*N/A
add-cbrt-cubeN/A
cbrt-prodN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cbrt-prodN/A
pow2N/A
pow1/3N/A
pow-powN/A
pow-lowering-pow.f64N/A
PI-lowering-PI.f64N/A
metadata-evalN/A
cbrt-lowering-cbrt.f64N/A
PI-lowering-PI.f6456.5%
Applied egg-rr56.5%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6456.5%
Applied egg-rr56.5%
if 3.25000000000000003e-71 < a < 2.59999999999999999e213Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 2.59999999999999999e213 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification59.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 2.95e-74)
(/
(*
180.0
(atan
(/
(* 0.5 (/ (* (* -2.0 y-scale) (pow t_1 2.0)) x-scale))
(*
t_1
(sin
(*
(cbrt PI)
(*
(pow PI 0.6666666666666666)
(* 0.005555555555555556 angle))))))))
PI)
(if (<= a_m 2.1e+214)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale t_1)))
PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 2.95e-74) {
tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * pow(t_1, 2.0)) / x_45_scale)) / (t_1 * sin((cbrt(((double) M_PI)) * (pow(((double) M_PI), 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / ((double) M_PI);
} else if (a_m <= 2.1e+214) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 2.95e-74) {
tmp = (180.0 * Math.atan(((0.5 * (((-2.0 * y_45_scale) * Math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * Math.sin((Math.cbrt(Math.PI) * (Math.pow(Math.PI, 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / Math.PI;
} else if (a_m <= 2.1e+214) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / Math.PI);
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 2.95e-74) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(Float64(-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / Float64(t_1 * sin(Float64(cbrt(pi) * Float64((pi ^ 0.6666666666666666) * Float64(0.005555555555555556 * angle)))))))) / pi); elseif (a_m <= 2.1e+214) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * t_1))) / pi)); end return tmp end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 2.95e-74], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(N[(-2.0 * y$45$scale), $MachinePrecision] * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(N[Power[Pi, 1/3], $MachinePrecision] * N[(N[Power[Pi, 0.6666666666666666], $MachinePrecision] * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[a$95$m, 2.1e+214], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 2.95 \cdot 10^{-74}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{\left(-2 \cdot y-scale\right) \cdot {t\_1}^{2}}{x-scale}}{t\_1 \cdot \sin \left(\sqrt[3]{\pi} \cdot \left({\pi}^{0.6666666666666666} \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 2.1 \cdot 10^{+214}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot t\_1}\right)}{\pi}\\
\end{array}
\end{array}
if a < 2.94999999999999983e-74Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
associate-*r*N/A
add-cbrt-cubeN/A
cbrt-prodN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cbrt-prodN/A
pow2N/A
pow1/3N/A
pow-powN/A
pow-lowering-pow.f64N/A
PI-lowering-PI.f64N/A
metadata-evalN/A
cbrt-lowering-cbrt.f64N/A
PI-lowering-PI.f6456.5%
Applied egg-rr56.5%
if 2.94999999999999983e-74 < a < 2.1000000000000001e214Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 2.1000000000000001e214 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification59.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 1.1e-71)
(/
(*
180.0
(atan
(/
(* 0.5 (/ (* (* -2.0 y-scale) (pow t_1 2.0)) x-scale))
(*
t_1
(sin (* (sqrt PI) (* (* 0.005555555555555556 angle) (sqrt PI))))))))
PI)
(if (<= a_m 1.25e+212)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale t_1)))
PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 1.1e-71) {
tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * pow(t_1, 2.0)) / x_45_scale)) / (t_1 * sin((sqrt(((double) M_PI)) * ((0.005555555555555556 * angle) * sqrt(((double) M_PI))))))))) / ((double) M_PI);
} else if (a_m <= 1.25e+212) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 1.1e-71) {
tmp = (180.0 * Math.atan(((0.5 * (((-2.0 * y_45_scale) * Math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * Math.sin((Math.sqrt(Math.PI) * ((0.005555555555555556 * angle) * Math.sqrt(Math.PI)))))))) / Math.PI;
} else if (a_m <= 1.25e+212) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (math.pi * angle) t_1 = math.cos(t_0) tmp = 0 if a_m <= 1.1e-71: tmp = (180.0 * math.atan(((0.5 * (((-2.0 * y_45_scale) * math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * math.sin((math.sqrt(math.pi) * ((0.005555555555555556 * angle) * math.sqrt(math.pi)))))))) / math.pi elif a_m <= 1.25e+212: tmp = 180.0 * (math.atan(((y_45_scale * math.sin(t_0)) / x_45_scale)) / math.pi) else: tmp = 180.0 * (math.atan(((y_45_scale * math.sin((math.pi * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 1.1e-71) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(Float64(-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / Float64(t_1 * sin(Float64(sqrt(pi) * Float64(Float64(0.005555555555555556 * angle) * sqrt(pi)))))))) / pi); elseif (a_m <= 1.25e+212) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * t_1))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (pi * angle); t_1 = cos(t_0); tmp = 0.0; if (a_m <= 1.1e-71) tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / (t_1 * sin((sqrt(pi) * ((0.005555555555555556 * angle) * sqrt(pi)))))))) / pi; elseif (a_m <= 1.25e+212) tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / pi); else tmp = 180.0 * (atan(((y_45_scale * sin((pi * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 1.1e-71], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(N[(-2.0 * y$45$scale), $MachinePrecision] * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(N[Sqrt[Pi], $MachinePrecision] * N[(N[(0.005555555555555556 * angle), $MachinePrecision] * N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[a$95$m, 1.25e+212], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 1.1 \cdot 10^{-71}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{\left(-2 \cdot y-scale\right) \cdot {t\_1}^{2}}{x-scale}}{t\_1 \cdot \sin \left(\sqrt{\pi} \cdot \left(\left(0.005555555555555556 \cdot angle\right) \cdot \sqrt{\pi}\right)\right)}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 1.25 \cdot 10^{+212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot t\_1}\right)}{\pi}\\
\end{array}
\end{array}
if a < 1.09999999999999999e-71Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
associate-*r*N/A
add-sqr-sqrtN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
PI-lowering-PI.f64N/A
sqrt-lowering-sqrt.f64N/A
PI-lowering-PI.f6455.8%
Applied egg-rr55.8%
if 1.09999999999999999e-71 < a < 1.24999999999999998e212Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 1.24999999999999998e212 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification58.8%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 4.5e-67)
(/
(*
180.0
(atan
(/
(* 0.5 (/ (* (* -2.0 y-scale) (pow t_1 2.0)) x-scale))
(* t_1 (sin (* angle (* PI 0.005555555555555556)))))))
PI)
(/ (* 180.0 (atan (* (/ y-scale x-scale) (tan t_0)))) PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 4.5e-67) {
tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * pow(t_1, 2.0)) / x_45_scale)) / (t_1 * sin((angle * (((double) M_PI) * 0.005555555555555556))))))) / ((double) M_PI);
} else {
tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan(t_0)))) / ((double) M_PI);
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 4.5e-67) {
tmp = (180.0 * Math.atan(((0.5 * (((-2.0 * y_45_scale) * Math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * Math.sin((angle * (Math.PI * 0.005555555555555556))))))) / Math.PI;
} else {
tmp = (180.0 * Math.atan(((y_45_scale / x_45_scale) * Math.tan(t_0)))) / Math.PI;
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (math.pi * angle) t_1 = math.cos(t_0) tmp = 0 if a_m <= 4.5e-67: tmp = (180.0 * math.atan(((0.5 * (((-2.0 * y_45_scale) * math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * math.sin((angle * (math.pi * 0.005555555555555556))))))) / math.pi else: tmp = (180.0 * math.atan(((y_45_scale / x_45_scale) * math.tan(t_0)))) / math.pi return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 4.5e-67) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(Float64(-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / Float64(t_1 * sin(Float64(angle * Float64(pi * 0.005555555555555556))))))) / pi); else tmp = Float64(Float64(180.0 * atan(Float64(Float64(y_45_scale / x_45_scale) * tan(t_0)))) / pi); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (pi * angle); t_1 = cos(t_0); tmp = 0.0; if (a_m <= 4.5e-67) tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / (t_1 * sin((angle * (pi * 0.005555555555555556))))))) / pi; else tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan(t_0)))) / pi; end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 4.5e-67], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(N[(-2.0 * y$45$scale), $MachinePrecision] * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(angle * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(N[(180.0 * N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[t$95$0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 4.5 \cdot 10^{-67}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{\left(-2 \cdot y-scale\right) \cdot {t\_1}^{2}}{x-scale}}{t\_1 \cdot \sin \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan t\_0\right)}{\pi}\\
\end{array}
\end{array}
if a < 4.50000000000000015e-67Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6456.0%
Applied egg-rr56.0%
if 4.50000000000000015e-67 < a Initial program 6.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified25.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.0%
Simplified58.0%
associate-*r/N/A
/-lowering-/.f64N/A
Applied egg-rr58.0%
Final simplification56.5%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 4.4e-67)
(/
(*
180.0
(atan
(/
(* 0.5 (/ (* (* -2.0 y-scale) (pow t_1 2.0)) x-scale))
(* t_1 (sin (* PI (* 0.005555555555555556 angle)))))))
PI)
(/ (* 180.0 (atan (* (/ y-scale x-scale) (tan t_0)))) PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 4.4e-67) {
tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * pow(t_1, 2.0)) / x_45_scale)) / (t_1 * sin((((double) M_PI) * (0.005555555555555556 * angle))))))) / ((double) M_PI);
} else {
tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan(t_0)))) / ((double) M_PI);
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 4.4e-67) {
tmp = (180.0 * Math.atan(((0.5 * (((-2.0 * y_45_scale) * Math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * Math.sin((Math.PI * (0.005555555555555556 * angle))))))) / Math.PI;
} else {
tmp = (180.0 * Math.atan(((y_45_scale / x_45_scale) * Math.tan(t_0)))) / Math.PI;
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (math.pi * angle) t_1 = math.cos(t_0) tmp = 0 if a_m <= 4.4e-67: tmp = (180.0 * math.atan(((0.5 * (((-2.0 * y_45_scale) * math.pow(t_1, 2.0)) / x_45_scale)) / (t_1 * math.sin((math.pi * (0.005555555555555556 * angle))))))) / math.pi else: tmp = (180.0 * math.atan(((y_45_scale / x_45_scale) * math.tan(t_0)))) / math.pi return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 4.4e-67) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(Float64(-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / Float64(t_1 * sin(Float64(pi * Float64(0.005555555555555556 * angle))))))) / pi); else tmp = Float64(Float64(180.0 * atan(Float64(Float64(y_45_scale / x_45_scale) * tan(t_0)))) / pi); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (pi * angle); t_1 = cos(t_0); tmp = 0.0; if (a_m <= 4.4e-67) tmp = (180.0 * atan(((0.5 * (((-2.0 * y_45_scale) * (t_1 ^ 2.0)) / x_45_scale)) / (t_1 * sin((pi * (0.005555555555555556 * angle))))))) / pi; else tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan(t_0)))) / pi; end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 4.4e-67], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(N[(-2.0 * y$45$scale), $MachinePrecision] * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(N[(180.0 * N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[t$95$0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{\left(-2 \cdot y-scale\right) \cdot {t\_1}^{2}}{x-scale}}{t\_1 \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan t\_0\right)}{\pi}\\
\end{array}
\end{array}
if a < 4.4000000000000002e-67Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6454.0%
Applied egg-rr54.0%
if 4.4000000000000002e-67 < a Initial program 6.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified25.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.0%
Simplified58.0%
associate-*r/N/A
/-lowering-/.f64N/A
Applied egg-rr58.0%
Final simplification55.1%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))) (t_1 (cos t_0)))
(if (<= a_m 6.4e-70)
(/
(*
180.0
(atan
(/
(* 0.5 (/ (* -2.0 y-scale) x-scale))
(*
t_1
(sin
(*
(cbrt PI)
(*
(pow PI 0.6666666666666666)
(* 0.005555555555555556 angle))))))))
PI)
(if (<= a_m 9.2e+212)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale t_1)))
PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = cos(t_0);
double tmp;
if (a_m <= 6.4e-70) {
tmp = (180.0 * atan(((0.5 * ((-2.0 * y_45_scale) / x_45_scale)) / (t_1 * sin((cbrt(((double) M_PI)) * (pow(((double) M_PI), 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / ((double) M_PI);
} else if (a_m <= 9.2e+212) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.cos(t_0);
double tmp;
if (a_m <= 6.4e-70) {
tmp = (180.0 * Math.atan(((0.5 * ((-2.0 * y_45_scale) / x_45_scale)) / (t_1 * Math.sin((Math.cbrt(Math.PI) * (Math.pow(Math.PI, 0.6666666666666666) * (0.005555555555555556 * angle)))))))) / Math.PI;
} else if (a_m <= 9.2e+212) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * t_1))) / Math.PI);
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = cos(t_0) tmp = 0.0 if (a_m <= 6.4e-70) tmp = Float64(Float64(180.0 * atan(Float64(Float64(0.5 * Float64(Float64(-2.0 * y_45_scale) / x_45_scale)) / Float64(t_1 * sin(Float64(cbrt(pi) * Float64((pi ^ 0.6666666666666666) * Float64(0.005555555555555556 * angle)))))))) / pi); elseif (a_m <= 9.2e+212) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * t_1))) / pi)); end return tmp end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 6.4e-70], N[(N[(180.0 * N[ArcTan[N[(N[(0.5 * N[(N[(-2.0 * y$45$scale), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 * N[Sin[N[(N[Power[Pi, 1/3], $MachinePrecision] * N[(N[Power[Pi, 0.6666666666666666], $MachinePrecision] * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[a$95$m, 9.2e+212], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 6.4 \cdot 10^{-70}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5 \cdot \frac{-2 \cdot y-scale}{x-scale}}{t\_1 \cdot \sin \left(\sqrt[3]{\pi} \cdot \left({\pi}^{0.6666666666666666} \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 9.2 \cdot 10^{+212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot t\_1}\right)}{\pi}\\
\end{array}
\end{array}
if a < 6.3999999999999995e-70Initial program 18.5%
Simplified13.4%
Taylor expanded in b around inf
Simplified26.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.1%
Simplified52.1%
associate-*r*N/A
add-cbrt-cubeN/A
cbrt-prodN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cbrt-prodN/A
pow2N/A
pow1/3N/A
pow-powN/A
pow-lowering-pow.f64N/A
PI-lowering-PI.f64N/A
metadata-evalN/A
cbrt-lowering-cbrt.f64N/A
PI-lowering-PI.f6456.5%
Applied egg-rr56.5%
Taylor expanded in angle around 0
Simplified55.7%
if 6.3999999999999995e-70 < a < 9.1999999999999993e212Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 9.1999999999999993e212 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification58.7%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* angle (* PI 0.005555555555555556)))
(t_1 (* 0.005555555555555556 (* PI angle))))
(if (<= a_m 8.5e-117)
(/
(* 180.0 (atan (/ (* (- 0.0 y-scale) (cos t_0)) (* x-scale (sin t_0)))))
PI)
(if (<= a_m 1.75e-69)
(*
180.0
(/
(atan
(/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(if (<= a_m 4.6e+212)
(* 180.0 (/ (atan (/ (* y-scale (sin t_1)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale (cos t_1))))
PI)))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = angle * (((double) M_PI) * 0.005555555555555556);
double t_1 = 0.005555555555555556 * (((double) M_PI) * angle);
double tmp;
if (a_m <= 8.5e-117) {
tmp = (180.0 * atan((((0.0 - y_45_scale) * cos(t_0)) / (x_45_scale * sin(t_0))))) / ((double) M_PI);
} else if (a_m <= 1.75e-69) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else if (a_m <= 4.6e+212) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_1)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * cos(t_1)))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = angle * (Math.PI * 0.005555555555555556);
double t_1 = 0.005555555555555556 * (Math.PI * angle);
double tmp;
if (a_m <= 8.5e-117) {
tmp = (180.0 * Math.atan((((0.0 - y_45_scale) * Math.cos(t_0)) / (x_45_scale * Math.sin(t_0))))) / Math.PI;
} else if (a_m <= 1.75e-69) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else if (a_m <= 4.6e+212) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_1)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * Math.cos(t_1)))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = angle * (math.pi * 0.005555555555555556) t_1 = 0.005555555555555556 * (math.pi * angle) tmp = 0 if a_m <= 8.5e-117: tmp = (180.0 * math.atan((((0.0 - y_45_scale) * math.cos(t_0)) / (x_45_scale * math.sin(t_0))))) / math.pi elif a_m <= 1.75e-69: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) elif a_m <= 4.6e+212: tmp = 180.0 * (math.atan(((y_45_scale * math.sin(t_1)) / x_45_scale)) / math.pi) else: tmp = 180.0 * (math.atan(((y_45_scale * math.sin((math.pi * (0.005555555555555556 * angle)))) / (x_45_scale * math.cos(t_1)))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(angle * Float64(pi * 0.005555555555555556)) t_1 = Float64(0.005555555555555556 * Float64(pi * angle)) tmp = 0.0 if (a_m <= 8.5e-117) tmp = Float64(Float64(180.0 * atan(Float64(Float64(Float64(0.0 - y_45_scale) * cos(t_0)) / Float64(x_45_scale * sin(t_0))))) / pi); elseif (a_m <= 1.75e-69) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); elseif (a_m <= 4.6e+212) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_1)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * cos(t_1)))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = angle * (pi * 0.005555555555555556); t_1 = 0.005555555555555556 * (pi * angle); tmp = 0.0; if (a_m <= 8.5e-117) tmp = (180.0 * atan((((0.0 - y_45_scale) * cos(t_0)) / (x_45_scale * sin(t_0))))) / pi; elseif (a_m <= 1.75e-69) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); elseif (a_m <= 4.6e+212) tmp = 180.0 * (atan(((y_45_scale * sin(t_1)) / x_45_scale)) / pi); else tmp = 180.0 * (atan(((y_45_scale * sin((pi * (0.005555555555555556 * angle)))) / (x_45_scale * cos(t_1)))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(angle * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a$95$m, 8.5e-117], N[(N[(180.0 * N[ArcTan[N[(N[(N[(0.0 - y$45$scale), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[a$95$m, 1.75e-69], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 4.6e+212], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := angle \cdot \left(\pi \cdot 0.005555555555555556\right)\\
t_1 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
\mathbf{if}\;a\_m \leq 8.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\left(0 - y-scale\right) \cdot \cos t\_0}{x-scale \cdot \sin t\_0}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 1.75 \cdot 10^{-69}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 4.6 \cdot 10^{+212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_1}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot \cos t\_1}\right)}{\pi}\\
\end{array}
\end{array}
if a < 8.49999999999999981e-117Initial program 19.1%
Simplified13.7%
Taylor expanded in b around inf
Simplified27.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6450.8%
Simplified50.8%
associate-*r*N/A
add-cbrt-cubeN/A
cbrt-prodN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cbrt-prodN/A
pow2N/A
pow1/3N/A
pow-powN/A
pow-lowering-pow.f64N/A
PI-lowering-PI.f64N/A
metadata-evalN/A
cbrt-lowering-cbrt.f64N/A
PI-lowering-PI.f6454.9%
Applied egg-rr54.9%
Taylor expanded in y-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified51.6%
if 8.49999999999999981e-117 < a < 1.7500000000000001e-69Initial program 10.0%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified10.5%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6410.5%
Simplified10.5%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr28.9%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6470.1%
Simplified70.1%
if 1.7500000000000001e-69 < a < 4.5999999999999997e212Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 4.5999999999999997e212 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification56.6%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle)))
(t_1 (sin t_0))
(t_2 (cos t_0)))
(if (<= a_m 9.8e-117)
(* 180.0 (/ (atan (/ (* t_2 (- 0.0 y-scale)) (* x-scale t_1))) PI))
(if (<= a_m 1.3e-77)
(*
180.0
(/
(atan
(/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(if (<= a_m 2e+212)
(* 180.0 (/ (atan (/ (* y-scale t_1) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale t_2)))
PI)))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double t_1 = sin(t_0);
double t_2 = cos(t_0);
double tmp;
if (a_m <= 9.8e-117) {
tmp = 180.0 * (atan(((t_2 * (0.0 - y_45_scale)) / (x_45_scale * t_1))) / ((double) M_PI));
} else if (a_m <= 1.3e-77) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else if (a_m <= 2e+212) {
tmp = 180.0 * (atan(((y_45_scale * t_1) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * t_2))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double t_1 = Math.sin(t_0);
double t_2 = Math.cos(t_0);
double tmp;
if (a_m <= 9.8e-117) {
tmp = 180.0 * (Math.atan(((t_2 * (0.0 - y_45_scale)) / (x_45_scale * t_1))) / Math.PI);
} else if (a_m <= 1.3e-77) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else if (a_m <= 2e+212) {
tmp = 180.0 * (Math.atan(((y_45_scale * t_1) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * t_2))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (math.pi * angle) t_1 = math.sin(t_0) t_2 = math.cos(t_0) tmp = 0 if a_m <= 9.8e-117: tmp = 180.0 * (math.atan(((t_2 * (0.0 - y_45_scale)) / (x_45_scale * t_1))) / math.pi) elif a_m <= 1.3e-77: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) elif a_m <= 2e+212: tmp = 180.0 * (math.atan(((y_45_scale * t_1) / x_45_scale)) / math.pi) else: tmp = 180.0 * (math.atan(((y_45_scale * math.sin((math.pi * (0.005555555555555556 * angle)))) / (x_45_scale * t_2))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) t_1 = sin(t_0) t_2 = cos(t_0) tmp = 0.0 if (a_m <= 9.8e-117) tmp = Float64(180.0 * Float64(atan(Float64(Float64(t_2 * Float64(0.0 - y_45_scale)) / Float64(x_45_scale * t_1))) / pi)); elseif (a_m <= 1.3e-77) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); elseif (a_m <= 2e+212) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * t_1) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * t_2))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (pi * angle); t_1 = sin(t_0); t_2 = cos(t_0); tmp = 0.0; if (a_m <= 9.8e-117) tmp = 180.0 * (atan(((t_2 * (0.0 - y_45_scale)) / (x_45_scale * t_1))) / pi); elseif (a_m <= 1.3e-77) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); elseif (a_m <= 2e+212) tmp = 180.0 * (atan(((y_45_scale * t_1) / x_45_scale)) / pi); else tmp = 180.0 * (atan(((y_45_scale * sin((pi * (0.005555555555555556 * angle)))) / (x_45_scale * t_2))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[a$95$m, 9.8e-117], N[(180.0 * N[(N[ArcTan[N[(N[(t$95$2 * N[(0.0 - y$45$scale), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 1.3e-77], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 2e+212], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * t$95$1), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
t_1 := \sin t\_0\\
t_2 := \cos t\_0\\
\mathbf{if}\;a\_m \leq 9.8 \cdot 10^{-117}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{t\_2 \cdot \left(0 - y-scale\right)}{x-scale \cdot t\_1}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 1.3 \cdot 10^{-77}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 2 \cdot 10^{+212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot t\_1}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot t\_2}\right)}{\pi}\\
\end{array}
\end{array}
if a < 9.7999999999999995e-117Initial program 19.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified32.9%
add-cbrt-cubeN/A
cbrt-lowering-cbrt.f64N/A
pow2N/A
*-lowering-*.f64N/A
pow2N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
PI-lowering-PI.f64N/A
PI-lowering-PI.f6431.6%
Applied egg-rr31.6%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
associate-*r*N/A
cos-lowering-cos.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
Simplified49.7%
if 9.7999999999999995e-117 < a < 1.3000000000000001e-77Initial program 10.0%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified10.5%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6410.5%
Simplified10.5%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr28.9%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6470.1%
Simplified70.1%
if 1.3000000000000001e-77 < a < 1.9999999999999998e212Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 1.9999999999999998e212 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification55.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))))
(if (<= a_m 6.2e-74)
(*
180.0
(/
(atan
(/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(if (<= a_m 1.05e+217)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(*
180.0
(/
(atan
(/
(* y-scale (sin (* PI (* 0.005555555555555556 angle))))
(* x-scale (cos t_0))))
PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double tmp;
if (a_m <= 6.2e-74) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else if (a_m <= 1.05e+217) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * sin((((double) M_PI) * (0.005555555555555556 * angle)))) / (x_45_scale * cos(t_0)))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double tmp;
if (a_m <= 6.2e-74) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else if (a_m <= 1.05e+217) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin((Math.PI * (0.005555555555555556 * angle)))) / (x_45_scale * Math.cos(t_0)))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (math.pi * angle) tmp = 0 if a_m <= 6.2e-74: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) elif a_m <= 1.05e+217: tmp = 180.0 * (math.atan(((y_45_scale * math.sin(t_0)) / x_45_scale)) / math.pi) else: tmp = 180.0 * (math.atan(((y_45_scale * math.sin((math.pi * (0.005555555555555556 * angle)))) / (x_45_scale * math.cos(t_0)))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) tmp = 0.0 if (a_m <= 6.2e-74) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); elseif (a_m <= 1.05e+217) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(Float64(pi * Float64(0.005555555555555556 * angle)))) / Float64(x_45_scale * cos(t_0)))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (pi * angle); tmp = 0.0; if (a_m <= 6.2e-74) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); elseif (a_m <= 1.05e+217) tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / pi); else tmp = 180.0 * (atan(((y_45_scale * sin((pi * (0.005555555555555556 * angle)))) / (x_45_scale * cos(t_0)))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a$95$m, 6.2e-74], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 1.05e+217], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
\mathbf{if}\;a\_m \leq 6.2 \cdot 10^{-74}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 1.05 \cdot 10^{+217}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale \cdot \cos t\_0}\right)}{\pi}\\
\end{array}
\end{array}
if a < 6.2000000000000003e-74Initial program 18.5%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.1%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.8%
Simplified21.8%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr34.3%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.0%
Simplified49.0%
if 6.2000000000000003e-74 < a < 1.05e217Initial program 7.6%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6452.7%
Simplified52.7%
Taylor expanded in angle around 0
Simplified63.0%
if 1.05e217 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Simplified79.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6479.9%
Applied egg-rr79.9%
Final simplification53.9%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* PI angle))))
(if (<= a_m 7.2e-69)
(*
180.0
(/
(atan
(/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(if (<= a_m 5.1e+204)
(* 180.0 (/ (atan (/ (* y-scale (sin t_0)) x-scale)) PI))
(* 180.0 (/ (atan (/ (* y-scale (tan t_0)) x-scale)) PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (((double) M_PI) * angle);
double tmp;
if (a_m <= 7.2e-69) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else if (a_m <= 5.1e+204) {
tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan(((y_45_scale * tan(t_0)) / x_45_scale)) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (Math.PI * angle);
double tmp;
if (a_m <= 7.2e-69) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else if (a_m <= 5.1e+204) {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.sin(t_0)) / x_45_scale)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan(((y_45_scale * Math.tan(t_0)) / x_45_scale)) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (math.pi * angle) tmp = 0 if a_m <= 7.2e-69: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) elif a_m <= 5.1e+204: tmp = 180.0 * (math.atan(((y_45_scale * math.sin(t_0)) / x_45_scale)) / math.pi) else: tmp = 180.0 * (math.atan(((y_45_scale * math.tan(t_0)) / x_45_scale)) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(pi * angle)) tmp = 0.0 if (a_m <= 7.2e-69) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); elseif (a_m <= 5.1e+204) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * sin(t_0)) / x_45_scale)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * tan(t_0)) / x_45_scale)) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (pi * angle); tmp = 0.0; if (a_m <= 7.2e-69) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); elseif (a_m <= 5.1e+204) tmp = 180.0 * (atan(((y_45_scale * sin(t_0)) / x_45_scale)) / pi); else tmp = 180.0 * (atan(((y_45_scale * tan(t_0)) / x_45_scale)) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a$95$m, 7.2e-69], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 5.1e+204], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * N[Tan[t$95$0], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(\pi \cdot angle\right)\\
\mathbf{if}\;a\_m \leq 7.2 \cdot 10^{-69}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{elif}\;a\_m \leq 5.1 \cdot 10^{+204}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \sin t\_0}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot \tan t\_0}{x-scale}\right)}{\pi}\\
\end{array}
\end{array}
if a < 7.20000000000000035e-69Initial program 18.5%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.1%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.8%
Simplified21.8%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr34.3%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.0%
Simplified49.0%
if 7.20000000000000035e-69 < a < 5.1000000000000004e204Initial program 7.8%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6451.9%
Simplified51.9%
Taylor expanded in angle around 0
Simplified62.4%
if 5.1000000000000004e204 < a Initial program 0.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6481.2%
Simplified81.2%
times-fracN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
quot-tanN/A
tan-lowering-tan.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6481.2%
Applied egg-rr81.2%
Final simplification53.9%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(if (<= a_m 4.1e-67)
(*
180.0
(/
(atan (/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(/
(*
180.0
(atan
(* (/ y-scale x-scale) (tan (* 0.005555555555555556 (* PI angle))))))
PI)))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 4.1e-67) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else {
tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((0.005555555555555556 * (((double) M_PI) * angle)))))) / ((double) M_PI);
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 4.1e-67) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else {
tmp = (180.0 * Math.atan(((y_45_scale / x_45_scale) * Math.tan((0.005555555555555556 * (Math.PI * angle)))))) / Math.PI;
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): tmp = 0 if a_m <= 4.1e-67: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) else: tmp = (180.0 * math.atan(((y_45_scale / x_45_scale) * math.tan((0.005555555555555556 * (math.pi * angle)))))) / math.pi return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (a_m <= 4.1e-67) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); else tmp = Float64(Float64(180.0 * atan(Float64(Float64(y_45_scale / x_45_scale) * tan(Float64(0.005555555555555556 * Float64(pi * angle)))))) / pi); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (a_m <= 4.1e-67) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); else tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((0.005555555555555556 * (pi * angle)))))) / pi; end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[a$95$m, 4.1e-67], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(N[(180.0 * N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 4.1 \cdot 10^{-67}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if a < 4.0999999999999997e-67Initial program 18.5%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.1%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.8%
Simplified21.8%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr34.3%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.0%
Simplified49.0%
if 4.0999999999999997e-67 < a Initial program 6.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified25.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.0%
Simplified58.0%
associate-*r/N/A
/-lowering-/.f64N/A
Applied egg-rr58.0%
Final simplification51.5%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(if (<= a_m 5.1e-67)
(*
180.0
(/
(atan (/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(*
180.0
(/
(atan (* y-scale (/ (tan (* 0.005555555555555556 (* PI angle))) x-scale)))
PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.1e-67) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((y_45_scale * (tan((0.005555555555555556 * (((double) M_PI) * angle))) / x_45_scale))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.1e-67) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((y_45_scale * (Math.tan((0.005555555555555556 * (Math.PI * angle))) / x_45_scale))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): tmp = 0 if a_m <= 5.1e-67: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) else: tmp = 180.0 * (math.atan((y_45_scale * (math.tan((0.005555555555555556 * (math.pi * angle))) / x_45_scale))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (a_m <= 5.1e-67) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(y_45_scale * Float64(tan(Float64(0.005555555555555556 * Float64(pi * angle))) / x_45_scale))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (a_m <= 5.1e-67) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); else tmp = 180.0 * (atan((y_45_scale * (tan((0.005555555555555556 * (pi * angle))) / x_45_scale))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[a$95$m, 5.1e-67], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(y$45$scale * N[(N[Tan[N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 5.1 \cdot 10^{-67}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(y-scale \cdot \frac{\tan \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)}{x-scale}\right)}{\pi}\\
\end{array}
\end{array}
if a < 5.09999999999999982e-67Initial program 18.5%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.1%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.8%
Simplified21.8%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr34.3%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.0%
Simplified49.0%
if 5.09999999999999982e-67 < a Initial program 6.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified25.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.0%
Simplified58.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
quot-tanN/A
tan-lowering-tan.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6456.0%
Applied egg-rr56.0%
Final simplification51.0%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(if (<= a_m 5.1e-67)
(*
180.0
(/
(atan (/ (/ (* -180.0 (* y-scale b)) (* angle (* PI x-scale))) (- b a_m)))
PI))
(*
180.0
(/
(atan (* angle (/ (* 0.005555555555555556 (* y-scale PI)) x-scale)))
PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.1e-67) {
tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (((double) M_PI) * x_45_scale))) / (b - a_m))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * ((double) M_PI))) / x_45_scale))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.1e-67) {
tmp = 180.0 * (Math.atan((((-180.0 * (y_45_scale * b)) / (angle * (Math.PI * x_45_scale))) / (b - a_m))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((angle * ((0.005555555555555556 * (y_45_scale * Math.PI)) / x_45_scale))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): tmp = 0 if a_m <= 5.1e-67: tmp = 180.0 * (math.atan((((-180.0 * (y_45_scale * b)) / (angle * (math.pi * x_45_scale))) / (b - a_m))) / math.pi) else: tmp = 180.0 * (math.atan((angle * ((0.005555555555555556 * (y_45_scale * math.pi)) / x_45_scale))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (a_m <= 5.1e-67) tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(-180.0 * Float64(y_45_scale * b)) / Float64(angle * Float64(pi * x_45_scale))) / Float64(b - a_m))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(angle * Float64(Float64(0.005555555555555556 * Float64(y_45_scale * pi)) / x_45_scale))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (a_m <= 5.1e-67) tmp = 180.0 * (atan((((-180.0 * (y_45_scale * b)) / (angle * (pi * x_45_scale))) / (b - a_m))) / pi); else tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * pi)) / x_45_scale))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[a$95$m, 5.1e-67], N[(180.0 * N[(N[ArcTan[N[(N[(N[(-180.0 * N[(y$45$scale * b), $MachinePrecision]), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(angle * N[(N[(0.005555555555555556 * N[(y$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 5.1 \cdot 10^{-67}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\frac{-180 \cdot \left(y-scale \cdot b\right)}{angle \cdot \left(\pi \cdot x-scale\right)}}{b - a\_m}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(angle \cdot \frac{0.005555555555555556 \cdot \left(y-scale \cdot \pi\right)}{x-scale}\right)}{\pi}\\
\end{array}
\end{array}
if a < 5.09999999999999982e-67Initial program 18.5%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.1%
Taylor expanded in y-scale around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.8%
Simplified21.8%
associate-/r*N/A
difference-of-squaresN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr34.3%
Taylor expanded in b around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.0%
Simplified49.0%
if 5.09999999999999982e-67 < a Initial program 6.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified25.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.0%
Simplified58.0%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.2%
Applied egg-rr58.2%
Taylor expanded in angle around 0
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6456.8%
Simplified56.8%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(if (<= a_m 5.6e-68)
(* 180.0 (/ (atan (/ (* y-scale -180.0) (* angle (* PI x-scale)))) PI))
(*
180.0
(/
(atan (* angle (/ (* 0.005555555555555556 (* y-scale PI)) x-scale)))
PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.6e-68) {
tmp = 180.0 * (atan(((y_45_scale * -180.0) / (angle * (((double) M_PI) * x_45_scale)))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * ((double) M_PI))) / x_45_scale))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.6e-68) {
tmp = 180.0 * (Math.atan(((y_45_scale * -180.0) / (angle * (Math.PI * x_45_scale)))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((angle * ((0.005555555555555556 * (y_45_scale * Math.PI)) / x_45_scale))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): tmp = 0 if a_m <= 5.6e-68: tmp = 180.0 * (math.atan(((y_45_scale * -180.0) / (angle * (math.pi * x_45_scale)))) / math.pi) else: tmp = 180.0 * (math.atan((angle * ((0.005555555555555556 * (y_45_scale * math.pi)) / x_45_scale))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (a_m <= 5.6e-68) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale * -180.0) / Float64(angle * Float64(pi * x_45_scale)))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(angle * Float64(Float64(0.005555555555555556 * Float64(y_45_scale * pi)) / x_45_scale))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (a_m <= 5.6e-68) tmp = 180.0 * (atan(((y_45_scale * -180.0) / (angle * (pi * x_45_scale)))) / pi); else tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * pi)) / x_45_scale))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[a$95$m, 5.6e-68], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale * -180.0), $MachinePrecision] / N[(angle * N[(Pi * x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(angle * N[(N[(0.005555555555555556 * N[(y$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 5.6 \cdot 10^{-68}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale \cdot -180}{angle \cdot \left(\pi \cdot x-scale\right)}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(angle \cdot \frac{0.005555555555555556 \cdot \left(y-scale \cdot \pi\right)}{x-scale}\right)}{\pi}\\
\end{array}
\end{array}
if a < 5.6000000000000002e-68Initial program 18.5%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.1%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6443.7%
Simplified43.7%
if 5.6000000000000002e-68 < a Initial program 6.1%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified25.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.0%
Simplified58.0%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6458.2%
Applied egg-rr58.2%
Taylor expanded in angle around 0
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6456.8%
Simplified56.8%
Final simplification47.4%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(if (<= a_m 5.6e-218)
(* 180.0 (/ (atan (* (/ -180.0 (* y-scale angle)) (/ x-scale PI))) PI))
(*
180.0
(/
(atan (* angle (/ (* 0.005555555555555556 (* y-scale PI)) x-scale)))
PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.6e-218) {
tmp = 180.0 * (atan(((-180.0 / (y_45_scale * angle)) * (x_45_scale / ((double) M_PI)))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * ((double) M_PI))) / x_45_scale))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.6e-218) {
tmp = 180.0 * (Math.atan(((-180.0 / (y_45_scale * angle)) * (x_45_scale / Math.PI))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((angle * ((0.005555555555555556 * (y_45_scale * Math.PI)) / x_45_scale))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): tmp = 0 if a_m <= 5.6e-218: tmp = 180.0 * (math.atan(((-180.0 / (y_45_scale * angle)) * (x_45_scale / math.pi))) / math.pi) else: tmp = 180.0 * (math.atan((angle * ((0.005555555555555556 * (y_45_scale * math.pi)) / x_45_scale))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (a_m <= 5.6e-218) tmp = Float64(180.0 * Float64(atan(Float64(Float64(-180.0 / Float64(y_45_scale * angle)) * Float64(x_45_scale / pi))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(angle * Float64(Float64(0.005555555555555556 * Float64(y_45_scale * pi)) / x_45_scale))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (a_m <= 5.6e-218) tmp = 180.0 * (atan(((-180.0 / (y_45_scale * angle)) * (x_45_scale / pi))) / pi); else tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * pi)) / x_45_scale))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[a$95$m, 5.6e-218], N[(180.0 * N[(N[ArcTan[N[(N[(-180.0 / N[(y$45$scale * angle), $MachinePrecision]), $MachinePrecision] * N[(x$45$scale / Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(angle * N[(N[(0.005555555555555556 * N[(y$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 5.6 \cdot 10^{-218}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-180}{y-scale \cdot angle} \cdot \frac{x-scale}{\pi}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(angle \cdot \frac{0.005555555555555556 \cdot \left(y-scale \cdot \pi\right)}{x-scale}\right)}{\pi}\\
\end{array}
\end{array}
if a < 5.60000000000000018e-218Initial program 18.4%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.6%
Taylor expanded in a around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6418.1%
Simplified18.1%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
PI-lowering-PI.f6418.1%
Applied egg-rr18.1%
if 5.60000000000000018e-218 < a Initial program 10.2%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified29.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6450.9%
Simplified50.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.9%
Applied egg-rr49.9%
Taylor expanded in angle around 0
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6450.0%
Simplified50.0%
a_m = (fabs.f64 a)
(FPCore (a_m b angle x-scale y-scale)
:precision binary64
(if (<= a_m 5.6e-218)
(* 180.0 (/ (atan (* (/ -180.0 y-scale) (/ (/ x-scale PI) angle))) PI))
(*
180.0
(/
(atan (* angle (/ (* 0.005555555555555556 (* y-scale PI)) x-scale)))
PI))))a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.6e-218) {
tmp = 180.0 * (atan(((-180.0 / y_45_scale) * ((x_45_scale / ((double) M_PI)) / angle))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * ((double) M_PI))) / x_45_scale))) / ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (a_m <= 5.6e-218) {
tmp = 180.0 * (Math.atan(((-180.0 / y_45_scale) * ((x_45_scale / Math.PI) / angle))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((angle * ((0.005555555555555556 * (y_45_scale * Math.PI)) / x_45_scale))) / Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): tmp = 0 if a_m <= 5.6e-218: tmp = 180.0 * (math.atan(((-180.0 / y_45_scale) * ((x_45_scale / math.pi) / angle))) / math.pi) else: tmp = 180.0 * (math.atan((angle * ((0.005555555555555556 * (y_45_scale * math.pi)) / x_45_scale))) / math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (a_m <= 5.6e-218) tmp = Float64(180.0 * Float64(atan(Float64(Float64(-180.0 / y_45_scale) * Float64(Float64(x_45_scale / pi) / angle))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(angle * Float64(Float64(0.005555555555555556 * Float64(y_45_scale * pi)) / x_45_scale))) / pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (a_m <= 5.6e-218) tmp = 180.0 * (atan(((-180.0 / y_45_scale) * ((x_45_scale / pi) / angle))) / pi); else tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * pi)) / x_45_scale))) / pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[a$95$m, 5.6e-218], N[(180.0 * N[(N[ArcTan[N[(N[(-180.0 / y$45$scale), $MachinePrecision] * N[(N[(x$45$scale / Pi), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(angle * N[(N[(0.005555555555555556 * N[(y$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 5.6 \cdot 10^{-218}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-180}{y-scale} \cdot \frac{\frac{x-scale}{\pi}}{angle}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(angle \cdot \frac{0.005555555555555556 \cdot \left(y-scale \cdot \pi\right)}{x-scale}\right)}{\pi}\\
\end{array}
\end{array}
if a < 5.60000000000000018e-218Initial program 18.4%
Taylor expanded in angle around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified16.6%
Taylor expanded in a around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6418.1%
Simplified18.1%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
PI-lowering-PI.f6418.1%
Applied egg-rr18.1%
associate-*l/N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
PI-lowering-PI.f6418.0%
Applied egg-rr18.0%
if 5.60000000000000018e-218 < a Initial program 10.2%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified29.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6450.9%
Simplified50.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6449.9%
Applied egg-rr49.9%
Taylor expanded in angle around 0
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6450.0%
Simplified50.0%
a_m = (fabs.f64 a) (FPCore (a_m b angle x-scale y-scale) :precision binary64 (* 180.0 (/ (atan (* angle (/ (* 0.005555555555555556 (* y-scale PI)) x-scale))) PI)))
a_m = fabs(a);
double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * ((double) M_PI))) / x_45_scale))) / ((double) M_PI));
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (Math.atan((angle * ((0.005555555555555556 * (y_45_scale * Math.PI)) / x_45_scale))) / Math.PI);
}
a_m = math.fabs(a) def code(a_m, b, angle, x_45_scale, y_45_scale): return 180.0 * (math.atan((angle * ((0.005555555555555556 * (y_45_scale * math.pi)) / x_45_scale))) / math.pi)
a_m = abs(a) function code(a_m, b, angle, x_45_scale, y_45_scale) return Float64(180.0 * Float64(atan(Float64(angle * Float64(Float64(0.005555555555555556 * Float64(y_45_scale * pi)) / x_45_scale))) / pi)) end
a_m = abs(a); function tmp = code(a_m, b, angle, x_45_scale, y_45_scale) tmp = 180.0 * (atan((angle * ((0.005555555555555556 * (y_45_scale * pi)) / x_45_scale))) / pi); end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_, x$45$scale_, y$45$scale_] := N[(180.0 * N[(N[ArcTan[N[(angle * N[(N[(0.005555555555555556 * N[(y$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
a_m = \left|a\right|
\\
180 \cdot \frac{\tan^{-1} \left(angle \cdot \frac{0.005555555555555556 \cdot \left(y-scale \cdot \pi\right)}{x-scale}\right)}{\pi}
\end{array}
Initial program 15.0%
Taylor expanded in x-scale around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified31.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6443.9%
Simplified43.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6442.7%
Applied egg-rr42.7%
Taylor expanded in angle around 0
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
PI-lowering-PI.f6443.0%
Simplified43.0%
herbie shell --seed 2024138
(FPCore (a b angle x-scale y-scale)
:name "raw-angle from scale-rotated-ellipse"
:precision binary64
(* 180.0 (/ (atan (/ (- (- (/ (/ (+ (pow (* a (cos (* (/ angle 180.0) PI))) 2.0) (pow (* b (sin (* (/ angle 180.0) PI))) 2.0)) y-scale) y-scale) (/ (/ (+ (pow (* a (sin (* (/ angle 180.0) PI))) 2.0) (pow (* b (cos (* (/ angle 180.0) PI))) 2.0)) x-scale) x-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)))) (/ (/ (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI))) (cos (* (/ angle 180.0) PI))) x-scale) y-scale))) PI)))