
(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}
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (* x-scale (sin t_0)))
(t_2 (* angle (* 0.005555555555555556 PI))))
(if (<= b_m 1.4e-144)
(*
(atan (* 0.005555555555555556 (* angle (* (/ y-scale x-scale) PI))))
(/ 180.0 PI))
(if (<= b_m 61000000.0)
(* 180.0 (/ (atan (* (/ y-scale x-scale) (/ (sin t_2) (cos t_0)))) PI))
(if (<= b_m 7.6e+184)
(* 180.0 (/ (atan (* -0.5 (* y-scale (* 2.0 (/ (cos t_2) t_1))))) PI))
(* 180.0 (/ (atan (* -0.5 (* y-scale (* 2.0 (/ 1.0 t_1))))) PI)))))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = x_45_scale * sin(t_0);
double t_2 = angle * (0.005555555555555556 * ((double) M_PI));
double tmp;
if (b_m <= 1.4e-144) {
tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * ((double) M_PI))))) * (180.0 / ((double) M_PI));
} else if (b_m <= 61000000.0) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin(t_2) / cos(t_0)))) / ((double) M_PI));
} else if (b_m <= 7.6e+184) {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (cos(t_2) / t_1))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / t_1))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * Math.PI);
double t_1 = x_45_scale * Math.sin(t_0);
double t_2 = angle * (0.005555555555555556 * Math.PI);
double tmp;
if (b_m <= 1.4e-144) {
tmp = Math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * Math.PI)))) * (180.0 / Math.PI);
} else if (b_m <= 61000000.0) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * (Math.sin(t_2) / Math.cos(t_0)))) / Math.PI);
} else if (b_m <= 7.6e+184) {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (Math.cos(t_2) / t_1))))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / t_1))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (angle * math.pi) t_1 = x_45_scale * math.sin(t_0) t_2 = angle * (0.005555555555555556 * math.pi) tmp = 0 if b_m <= 1.4e-144: tmp = math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * math.pi)))) * (180.0 / math.pi) elif b_m <= 61000000.0: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * (math.sin(t_2) / math.cos(t_0)))) / math.pi) elif b_m <= 7.6e+184: tmp = 180.0 * (math.atan((-0.5 * (y_45_scale * (2.0 * (math.cos(t_2) / t_1))))) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / t_1))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = Float64(x_45_scale * sin(t_0)) t_2 = Float64(angle * Float64(0.005555555555555556 * pi)) tmp = 0.0 if (b_m <= 1.4e-144) tmp = Float64(atan(Float64(0.005555555555555556 * Float64(angle * Float64(Float64(y_45_scale / x_45_scale) * pi)))) * Float64(180.0 / pi)); elseif (b_m <= 61000000.0) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * Float64(sin(t_2) / cos(t_0)))) / pi)); elseif (b_m <= 7.6e+184) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(cos(t_2) / t_1))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(1.0 / t_1))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (angle * pi); t_1 = x_45_scale * sin(t_0); t_2 = angle * (0.005555555555555556 * pi); tmp = 0.0; if (b_m <= 1.4e-144) tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * pi)))) * (180.0 / pi); elseif (b_m <= 61000000.0) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin(t_2) / cos(t_0)))) / pi); elseif (b_m <= 7.6e+184) tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (cos(t_2) / t_1))))) / pi); else tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / t_1))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(angle * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b$95$m, 1.4e-144], N[(N[ArcTan[N[(0.005555555555555556 * N[(angle * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 61000000.0], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[Sin[t$95$2], $MachinePrecision] / N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 7.6e+184], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(N[Cos[t$95$2], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := x-scale \cdot \sin t\_0\\
t_2 := angle \cdot \left(0.005555555555555556 \cdot \pi\right)\\
\mathbf{if}\;b\_m \leq 1.4 \cdot 10^{-144}:\\
\;\;\;\;\tan^{-1} \left(0.005555555555555556 \cdot \left(angle \cdot \left(\frac{y-scale}{x-scale} \cdot \pi\right)\right)\right) \cdot \frac{180}{\pi}\\
\mathbf{elif}\;b\_m \leq 61000000:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \frac{\sin t\_2}{\cos t\_0}\right)}{\pi}\\
\mathbf{elif}\;b\_m \leq 7.6 \cdot 10^{+184}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{\cos t\_2}{t\_1}\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{1}{t\_1}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 1.39999999999999999e-144Initial program 16.3%
Simplified16.3%
Taylor expanded in x-scale around 0 26.3%
Simplified32.0%
Taylor expanded in a around inf 48.7%
times-frac50.2%
Simplified50.2%
Taylor expanded in angle around 0 45.1%
associate-/l*50.4%
associate-/l*50.4%
Simplified50.4%
Taylor expanded in angle around 0 45.1%
associate-*r/45.2%
associate-*r*45.1%
associate-*r/45.2%
*-commutative45.2%
associate-/l*45.2%
associate-*r/45.2%
associate-*r*45.2%
associate-/l*50.4%
*-commutative50.4%
associate-/l*50.4%
Simplified50.4%
if 1.39999999999999999e-144 < b < 6.1e7Initial program 11.5%
Simplified14.3%
Taylor expanded in x-scale around 0 36.2%
Simplified39.2%
Taylor expanded in a around inf 60.0%
times-frac65.2%
Simplified65.2%
*-commutative65.2%
associate-*r*73.4%
*-un-lft-identity73.4%
Applied egg-rr73.4%
*-lft-identity73.4%
Simplified73.4%
if 6.1e7 < b < 7.6000000000000002e184Initial program 15.5%
Simplified12.6%
Taylor expanded in x-scale around 0 31.1%
Simplified31.7%
Taylor expanded in a around 0 57.8%
*-commutative57.8%
associate-*r*60.8%
*-un-lft-identity60.8%
Applied egg-rr60.8%
*-lft-identity60.8%
Simplified60.8%
if 7.6000000000000002e184 < b Initial program 0.0%
Simplified0.0%
Taylor expanded in x-scale around 0 0.0%
Simplified0.0%
Taylor expanded in a around 0 60.9%
Taylor expanded in angle around 0 71.6%
Final simplification56.8%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (sin (* 0.005555555555555556 (* angle (cbrt (* PI (* PI PI)))))))
(t_1 (cos (* 0.005555555555555556 (* angle PI)))))
(if (<= b_m 0.48)
(* 180.0 (/ (atan (* (/ y-scale x-scale) (/ t_0 t_1))) PI))
(*
180.0
(/ (atan (* -0.5 (* y-scale (* 2.0 (/ t_1 (* x-scale t_0)))))) PI)))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = sin((0.005555555555555556 * (angle * cbrt((((double) M_PI) * (((double) M_PI) * ((double) M_PI)))))));
double t_1 = cos((0.005555555555555556 * (angle * ((double) M_PI))));
double tmp;
if (b_m <= 0.48) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (t_0 / t_1))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (t_1 / (x_45_scale * t_0)))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = Math.sin((0.005555555555555556 * (angle * Math.cbrt((Math.PI * (Math.PI * Math.PI))))));
double t_1 = Math.cos((0.005555555555555556 * (angle * Math.PI)));
double tmp;
if (b_m <= 0.48) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * (t_0 / t_1))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (t_1 / (x_45_scale * t_0)))))) / Math.PI);
}
return tmp;
}
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = sin(Float64(0.005555555555555556 * Float64(angle * cbrt(Float64(pi * Float64(pi * pi)))))) t_1 = cos(Float64(0.005555555555555556 * Float64(angle * pi))) tmp = 0.0 if (b_m <= 0.48) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * Float64(t_0 / t_1))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(t_1 / Float64(x_45_scale * t_0)))))) / pi)); end return tmp end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[Sin[N[(0.005555555555555556 * N[(angle * N[Power[N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Cos[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[b$95$m, 0.48], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(t$95$1 / N[(x$45$scale * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := \sin \left(0.005555555555555556 \cdot \left(angle \cdot \sqrt[3]{\pi \cdot \left(\pi \cdot \pi\right)}\right)\right)\\
t_1 := \cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\\
\mathbf{if}\;b\_m \leq 0.48:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \frac{t\_0}{t\_1}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{t\_1}{x-scale \cdot t\_0}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 0.47999999999999998Initial program 15.5%
Simplified16.1%
Taylor expanded in x-scale around 0 28.2%
Simplified33.4%
Taylor expanded in a around inf 50.4%
times-frac52.7%
Simplified52.7%
add-cbrt-cube53.6%
Applied egg-rr53.6%
if 0.47999999999999998 < b Initial program 9.1%
Simplified7.4%
Taylor expanded in x-scale around 0 18.3%
Simplified18.7%
Taylor expanded in a around 0 58.0%
add-cbrt-cube33.2%
Applied egg-rr64.4%
Final simplification56.0%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (* x-scale (sin t_0))))
(if (<= b_m 0.42)
(*
180.0
(/
(atan
(*
(/ y-scale x-scale)
(/
(sin (* 0.005555555555555556 (* angle (cbrt (* PI (* PI PI))))))
(cos t_0))))
PI))
(if (<= b_m 4.1e+182)
(*
180.0
(/
(atan
(*
-0.5
(*
y-scale
(* 2.0 (/ (cos (* angle (* 0.005555555555555556 PI))) t_1)))))
PI))
(* 180.0 (/ (atan (* -0.5 (* y-scale (* 2.0 (/ 1.0 t_1))))) PI))))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = x_45_scale * sin(t_0);
double tmp;
if (b_m <= 0.42) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((0.005555555555555556 * (angle * cbrt((((double) M_PI) * (((double) M_PI) * ((double) M_PI))))))) / cos(t_0)))) / ((double) M_PI));
} else if (b_m <= 4.1e+182) {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (cos((angle * (0.005555555555555556 * ((double) M_PI)))) / t_1))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / t_1))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * Math.PI);
double t_1 = x_45_scale * Math.sin(t_0);
double tmp;
if (b_m <= 0.42) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * (Math.sin((0.005555555555555556 * (angle * Math.cbrt((Math.PI * (Math.PI * Math.PI)))))) / Math.cos(t_0)))) / Math.PI);
} else if (b_m <= 4.1e+182) {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (Math.cos((angle * (0.005555555555555556 * Math.PI))) / t_1))))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / t_1))))) / Math.PI);
}
return tmp;
}
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = Float64(x_45_scale * sin(t_0)) tmp = 0.0 if (b_m <= 0.42) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * Float64(sin(Float64(0.005555555555555556 * Float64(angle * cbrt(Float64(pi * Float64(pi * pi)))))) / cos(t_0)))) / pi)); elseif (b_m <= 4.1e+182) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(cos(Float64(angle * Float64(0.005555555555555556 * pi))) / t_1))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(1.0 / t_1))))) / pi)); end return tmp end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b$95$m, 0.42], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[Sin[N[(0.005555555555555556 * N[(angle * N[Power[N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 4.1e+182], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(N[Cos[N[(angle * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := x-scale \cdot \sin t\_0\\
\mathbf{if}\;b\_m \leq 0.42:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \frac{\sin \left(0.005555555555555556 \cdot \left(angle \cdot \sqrt[3]{\pi \cdot \left(\pi \cdot \pi\right)}\right)\right)}{\cos t\_0}\right)}{\pi}\\
\mathbf{elif}\;b\_m \leq 4.1 \cdot 10^{+182}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{\cos \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)}{t\_1}\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{1}{t\_1}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 0.419999999999999984Initial program 15.5%
Simplified16.1%
Taylor expanded in x-scale around 0 28.2%
Simplified33.4%
Taylor expanded in a around inf 50.4%
times-frac52.7%
Simplified52.7%
add-cbrt-cube53.6%
Applied egg-rr53.6%
if 0.419999999999999984 < b < 4.10000000000000003e182Initial program 15.0%
Simplified12.2%
Taylor expanded in x-scale around 0 30.2%
Simplified30.7%
Taylor expanded in a around 0 56.1%
*-commutative56.1%
associate-*r*59.0%
*-un-lft-identity59.0%
Applied egg-rr59.0%
*-lft-identity59.0%
Simplified59.0%
if 4.10000000000000003e182 < b Initial program 0.0%
Simplified0.0%
Taylor expanded in x-scale around 0 0.0%
Simplified0.0%
Taylor expanded in a around 0 60.9%
Taylor expanded in angle around 0 71.6%
Final simplification55.9%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (cos t_0))
(t_2 (sin t_0)))
(if (<= b_m 1.35e-142)
(*
(atan (* 0.005555555555555556 (* angle (* (/ y-scale x-scale) PI))))
(/ 180.0 PI))
(if (<= b_m 265000000.0)
(*
180.0
(/
(atan
(*
(/ y-scale x-scale)
(/ (sin (* angle (* 0.005555555555555556 PI))) t_1)))
PI))
(if (<= b_m 5.3e+185)
(* 180.0 (/ (atan (* (/ t_1 t_2) (/ y-scale (- x-scale)))) PI))
(*
180.0
(/
(atan (* -0.5 (* y-scale (* 2.0 (/ 1.0 (* x-scale t_2))))))
PI)))))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = cos(t_0);
double t_2 = sin(t_0);
double tmp;
if (b_m <= 1.35e-142) {
tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * ((double) M_PI))))) * (180.0 / ((double) M_PI));
} else if (b_m <= 265000000.0) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((angle * (0.005555555555555556 * ((double) M_PI)))) / t_1))) / ((double) M_PI));
} else if (b_m <= 5.3e+185) {
tmp = 180.0 * (atan(((t_1 / t_2) * (y_45_scale / -x_45_scale))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_2)))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * Math.PI);
double t_1 = Math.cos(t_0);
double t_2 = Math.sin(t_0);
double tmp;
if (b_m <= 1.35e-142) {
tmp = Math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * Math.PI)))) * (180.0 / Math.PI);
} else if (b_m <= 265000000.0) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * (Math.sin((angle * (0.005555555555555556 * Math.PI))) / t_1))) / Math.PI);
} else if (b_m <= 5.3e+185) {
tmp = 180.0 * (Math.atan(((t_1 / t_2) * (y_45_scale / -x_45_scale))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_2)))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (angle * math.pi) t_1 = math.cos(t_0) t_2 = math.sin(t_0) tmp = 0 if b_m <= 1.35e-142: tmp = math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * math.pi)))) * (180.0 / math.pi) elif b_m <= 265000000.0: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * (math.sin((angle * (0.005555555555555556 * math.pi))) / t_1))) / math.pi) elif b_m <= 5.3e+185: tmp = 180.0 * (math.atan(((t_1 / t_2) * (y_45_scale / -x_45_scale))) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_2)))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = cos(t_0) t_2 = sin(t_0) tmp = 0.0 if (b_m <= 1.35e-142) tmp = Float64(atan(Float64(0.005555555555555556 * Float64(angle * Float64(Float64(y_45_scale / x_45_scale) * pi)))) * Float64(180.0 / pi)); elseif (b_m <= 265000000.0) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * Float64(sin(Float64(angle * Float64(0.005555555555555556 * pi))) / t_1))) / pi)); elseif (b_m <= 5.3e+185) tmp = Float64(180.0 * Float64(atan(Float64(Float64(t_1 / t_2) * Float64(y_45_scale / Float64(-x_45_scale)))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(1.0 / Float64(x_45_scale * t_2)))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (angle * pi); t_1 = cos(t_0); t_2 = sin(t_0); tmp = 0.0; if (b_m <= 1.35e-142) tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * pi)))) * (180.0 / pi); elseif (b_m <= 265000000.0) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((angle * (0.005555555555555556 * pi))) / t_1))) / pi); elseif (b_m <= 5.3e+185) tmp = 180.0 * (atan(((t_1 / t_2) * (y_45_scale / -x_45_scale))) / pi); else tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_2)))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[b$95$m, 1.35e-142], N[(N[ArcTan[N[(0.005555555555555556 * N[(angle * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 265000000.0], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[Sin[N[(angle * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 5.3e+185], N[(180.0 * N[(N[ArcTan[N[(N[(t$95$1 / t$95$2), $MachinePrecision] * N[(y$45$scale / (-x$45$scale)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(1.0 / N[(x$45$scale * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \cos t\_0\\
t_2 := \sin t\_0\\
\mathbf{if}\;b\_m \leq 1.35 \cdot 10^{-142}:\\
\;\;\;\;\tan^{-1} \left(0.005555555555555556 \cdot \left(angle \cdot \left(\frac{y-scale}{x-scale} \cdot \pi\right)\right)\right) \cdot \frac{180}{\pi}\\
\mathbf{elif}\;b\_m \leq 265000000:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \frac{\sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)}{t\_1}\right)}{\pi}\\
\mathbf{elif}\;b\_m \leq 5.3 \cdot 10^{+185}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{t\_1}{t\_2} \cdot \frac{y-scale}{-x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{1}{x-scale \cdot t\_2}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 1.3499999999999999e-142Initial program 16.3%
Simplified16.3%
Taylor expanded in x-scale around 0 26.3%
Simplified32.0%
Taylor expanded in a around inf 48.7%
times-frac50.2%
Simplified50.2%
Taylor expanded in angle around 0 45.1%
associate-/l*50.4%
associate-/l*50.4%
Simplified50.4%
Taylor expanded in angle around 0 45.1%
associate-*r/45.2%
associate-*r*45.1%
associate-*r/45.2%
*-commutative45.2%
associate-/l*45.2%
associate-*r/45.2%
associate-*r*45.2%
associate-/l*50.4%
*-commutative50.4%
associate-/l*50.4%
Simplified50.4%
if 1.3499999999999999e-142 < b < 2.65e8Initial program 11.5%
Simplified14.3%
Taylor expanded in x-scale around 0 36.2%
Simplified39.2%
Taylor expanded in a around inf 60.0%
times-frac65.2%
Simplified65.2%
*-commutative65.2%
associate-*r*73.4%
*-un-lft-identity73.4%
Applied egg-rr73.4%
*-lft-identity73.4%
Simplified73.4%
if 2.65e8 < b < 5.30000000000000007e185Initial program 15.5%
Simplified12.6%
Taylor expanded in x-scale around 0 31.1%
Simplified31.7%
Taylor expanded in a around 0 57.8%
mul-1-neg57.8%
times-frac63.0%
Simplified63.0%
if 5.30000000000000007e185 < b Initial program 0.0%
Simplified0.0%
Taylor expanded in x-scale around 0 0.0%
Simplified0.0%
Taylor expanded in a around 0 60.9%
Taylor expanded in angle around 0 71.6%
Final simplification57.1%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI))) (t_1 (cos t_0)))
(if (<= b_m 4.6e-145)
(*
(atan (* 0.005555555555555556 (* angle (* (/ y-scale x-scale) PI))))
(/ 180.0 PI))
(if (<= b_m 76000000000.0)
(*
180.0
(/
(atan
(*
(/ y-scale x-scale)
(/ (sin (* angle (* 0.005555555555555556 PI))) t_1)))
PI))
(*
180.0
(/ (atan (* y-scale (/ t_1 (* (sin t_0) (- x-scale))))) PI))))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = cos(t_0);
double tmp;
if (b_m <= 4.6e-145) {
tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * ((double) M_PI))))) * (180.0 / ((double) M_PI));
} else if (b_m <= 76000000000.0) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((angle * (0.005555555555555556 * ((double) M_PI)))) / t_1))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((y_45_scale * (t_1 / (sin(t_0) * -x_45_scale)))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * Math.PI);
double t_1 = Math.cos(t_0);
double tmp;
if (b_m <= 4.6e-145) {
tmp = Math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * Math.PI)))) * (180.0 / Math.PI);
} else if (b_m <= 76000000000.0) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * (Math.sin((angle * (0.005555555555555556 * Math.PI))) / t_1))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((y_45_scale * (t_1 / (Math.sin(t_0) * -x_45_scale)))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (angle * math.pi) t_1 = math.cos(t_0) tmp = 0 if b_m <= 4.6e-145: tmp = math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * math.pi)))) * (180.0 / math.pi) elif b_m <= 76000000000.0: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * (math.sin((angle * (0.005555555555555556 * math.pi))) / t_1))) / math.pi) else: tmp = 180.0 * (math.atan((y_45_scale * (t_1 / (math.sin(t_0) * -x_45_scale)))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = cos(t_0) tmp = 0.0 if (b_m <= 4.6e-145) tmp = Float64(atan(Float64(0.005555555555555556 * Float64(angle * Float64(Float64(y_45_scale / x_45_scale) * pi)))) * Float64(180.0 / pi)); elseif (b_m <= 76000000000.0) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * Float64(sin(Float64(angle * Float64(0.005555555555555556 * pi))) / t_1))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(y_45_scale * Float64(t_1 / Float64(sin(t_0) * Float64(-x_45_scale))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (angle * pi); t_1 = cos(t_0); tmp = 0.0; if (b_m <= 4.6e-145) tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * pi)))) * (180.0 / pi); elseif (b_m <= 76000000000.0) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((angle * (0.005555555555555556 * pi))) / t_1))) / pi); else tmp = 180.0 * (atan((y_45_scale * (t_1 / (sin(t_0) * -x_45_scale)))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, If[LessEqual[b$95$m, 4.6e-145], N[(N[ArcTan[N[(0.005555555555555556 * N[(angle * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 76000000000.0], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[Sin[N[(angle * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(y$45$scale * N[(t$95$1 / N[(N[Sin[t$95$0], $MachinePrecision] * (-x$45$scale)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \cos t\_0\\
\mathbf{if}\;b\_m \leq 4.6 \cdot 10^{-145}:\\
\;\;\;\;\tan^{-1} \left(0.005555555555555556 \cdot \left(angle \cdot \left(\frac{y-scale}{x-scale} \cdot \pi\right)\right)\right) \cdot \frac{180}{\pi}\\
\mathbf{elif}\;b\_m \leq 76000000000:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \frac{\sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)}{t\_1}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(y-scale \cdot \frac{t\_1}{\sin t\_0 \cdot \left(-x-scale\right)}\right)}{\pi}\\
\end{array}
\end{array}
if b < 4.60000000000000014e-145Initial program 16.3%
Simplified16.3%
Taylor expanded in x-scale around 0 26.3%
Simplified32.0%
Taylor expanded in a around inf 48.7%
times-frac50.2%
Simplified50.2%
Taylor expanded in angle around 0 45.1%
associate-/l*50.4%
associate-/l*50.4%
Simplified50.4%
Taylor expanded in angle around 0 45.1%
associate-*r/45.2%
associate-*r*45.1%
associate-*r/45.2%
*-commutative45.2%
associate-/l*45.2%
associate-*r/45.2%
associate-*r*45.2%
associate-/l*50.4%
*-commutative50.4%
associate-/l*50.4%
Simplified50.4%
if 4.60000000000000014e-145 < b < 7.6e10Initial program 11.5%
Simplified14.3%
Taylor expanded in x-scale around 0 36.2%
Simplified39.2%
Taylor expanded in a around inf 60.0%
times-frac65.2%
Simplified65.2%
*-commutative65.2%
associate-*r*73.4%
*-un-lft-identity73.4%
Applied egg-rr73.4%
*-lft-identity73.4%
Simplified73.4%
if 7.6e10 < b Initial program 9.3%
Simplified7.6%
Taylor expanded in x-scale around 0 18.7%
Simplified19.0%
Taylor expanded in a around 0 59.0%
Taylor expanded in y-scale around 0 59.0%
mul-1-neg59.0%
associate-/l*59.0%
*-commutative59.0%
Simplified59.0%
Final simplification55.5%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI))))
(if (<= b_m 6.5e-145)
(*
(atan (* 0.005555555555555556 (* angle (* (/ y-scale x-scale) PI))))
(/ 180.0 PI))
(if (<= b_m 1.5e+57)
(*
180.0
(/
(atan
(*
(/ y-scale x-scale)
(/ (sin (* angle (* 0.005555555555555556 PI))) (cos t_0))))
PI))
(*
180.0
(/
(atan (* -0.5 (* y-scale (* 2.0 (/ 1.0 (* x-scale (sin t_0)))))))
PI))))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double tmp;
if (b_m <= 6.5e-145) {
tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * ((double) M_PI))))) * (180.0 / ((double) M_PI));
} else if (b_m <= 1.5e+57) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((angle * (0.005555555555555556 * ((double) M_PI)))) / cos(t_0)))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * sin(t_0))))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * Math.PI);
double tmp;
if (b_m <= 6.5e-145) {
tmp = Math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * Math.PI)))) * (180.0 / Math.PI);
} else if (b_m <= 1.5e+57) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * (Math.sin((angle * (0.005555555555555556 * Math.PI))) / Math.cos(t_0)))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * Math.sin(t_0))))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (angle * math.pi) tmp = 0 if b_m <= 6.5e-145: tmp = math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * math.pi)))) * (180.0 / math.pi) elif b_m <= 1.5e+57: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * (math.sin((angle * (0.005555555555555556 * math.pi))) / math.cos(t_0)))) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * math.sin(t_0))))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) tmp = 0.0 if (b_m <= 6.5e-145) tmp = Float64(atan(Float64(0.005555555555555556 * Float64(angle * Float64(Float64(y_45_scale / x_45_scale) * pi)))) * Float64(180.0 / pi)); elseif (b_m <= 1.5e+57) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * Float64(sin(Float64(angle * Float64(0.005555555555555556 * pi))) / cos(t_0)))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(1.0 / Float64(x_45_scale * sin(t_0))))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (angle * pi); tmp = 0.0; if (b_m <= 6.5e-145) tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * pi)))) * (180.0 / pi); elseif (b_m <= 1.5e+57) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * (sin((angle * (0.005555555555555556 * pi))) / cos(t_0)))) / pi); else tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * sin(t_0))))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b$95$m, 6.5e-145], N[(N[ArcTan[N[(0.005555555555555556 * N[(angle * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[b$95$m, 1.5e+57], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[Sin[N[(angle * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(1.0 / N[(x$45$scale * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
\mathbf{if}\;b\_m \leq 6.5 \cdot 10^{-145}:\\
\;\;\;\;\tan^{-1} \left(0.005555555555555556 \cdot \left(angle \cdot \left(\frac{y-scale}{x-scale} \cdot \pi\right)\right)\right) \cdot \frac{180}{\pi}\\
\mathbf{elif}\;b\_m \leq 1.5 \cdot 10^{+57}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \frac{\sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)}{\cos t\_0}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{1}{x-scale \cdot \sin t\_0}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 6.5000000000000002e-145Initial program 16.3%
Simplified16.3%
Taylor expanded in x-scale around 0 26.3%
Simplified32.0%
Taylor expanded in a around inf 48.7%
times-frac50.2%
Simplified50.2%
Taylor expanded in angle around 0 45.1%
associate-/l*50.4%
associate-/l*50.4%
Simplified50.4%
Taylor expanded in angle around 0 45.1%
associate-*r/45.2%
associate-*r*45.1%
associate-*r/45.2%
*-commutative45.2%
associate-/l*45.2%
associate-*r/45.2%
associate-*r*45.2%
associate-/l*50.4%
*-commutative50.4%
associate-/l*50.4%
Simplified50.4%
if 6.5000000000000002e-145 < b < 1.5e57Initial program 14.3%
Simplified16.5%
Taylor expanded in x-scale around 0 30.5%
Simplified32.8%
Taylor expanded in a around inf 55.6%
times-frac59.4%
Simplified59.4%
*-commutative59.4%
associate-*r*65.3%
*-un-lft-identity65.3%
Applied egg-rr65.3%
*-lft-identity65.3%
Simplified65.3%
if 1.5e57 < b Initial program 5.0%
Simplified2.6%
Taylor expanded in x-scale around 0 19.7%
Simplified19.9%
Taylor expanded in a around 0 65.5%
Taylor expanded in angle around 0 63.7%
Final simplification55.5%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(let* ((t_0 (sin (* 0.005555555555555556 (* angle PI)))))
(if (<= b_m 5.2e+99)
(* 180.0 (/ (atan (* (/ y-scale x-scale) t_0)) PI))
(*
180.0
(/ (atan (* -0.5 (* y-scale (* 2.0 (/ 1.0 (* x-scale t_0)))))) PI)))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = sin((0.005555555555555556 * (angle * ((double) M_PI))));
double tmp;
if (b_m <= 5.2e+99) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * t_0)) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_0)))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double t_0 = Math.sin((0.005555555555555556 * (angle * Math.PI)));
double tmp;
if (b_m <= 5.2e+99) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * t_0)) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_0)))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): t_0 = math.sin((0.005555555555555556 * (angle * math.pi))) tmp = 0 if b_m <= 5.2e+99: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * t_0)) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_0)))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = sin(Float64(0.005555555555555556 * Float64(angle * pi))) tmp = 0.0 if (b_m <= 5.2e+99) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * t_0)) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(y_45_scale * Float64(2.0 * Float64(1.0 / Float64(x_45_scale * t_0)))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) t_0 = sin((0.005555555555555556 * (angle * pi))); tmp = 0.0; if (b_m <= 5.2e+99) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * t_0)) / pi); else tmp = 180.0 * (atan((-0.5 * (y_45_scale * (2.0 * (1.0 / (x_45_scale * t_0)))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision]
code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[Sin[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[b$95$m, 5.2e+99], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * t$95$0), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(y$45$scale * N[(2.0 * N[(1.0 / N[(x$45$scale * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
t_0 := \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\\
\mathbf{if}\;b\_m \leq 5.2 \cdot 10^{+99}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot t\_0\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(y-scale \cdot \left(2 \cdot \frac{1}{x-scale \cdot t\_0}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 5.1999999999999999e99Initial program 16.0%
Simplified16.0%
Taylor expanded in x-scale around 0 28.0%
Simplified32.8%
Taylor expanded in a around inf 50.1%
times-frac52.1%
Simplified52.1%
Taylor expanded in angle around 0 52.3%
if 5.1999999999999999e99 < b Initial program 2.9%
Simplified2.9%
Taylor expanded in x-scale around 0 14.0%
Simplified14.2%
Taylor expanded in a around 0 66.1%
Taylor expanded in angle around 0 66.8%
Final simplification54.3%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 4.6e+40)
(/
(*
180.0
(atan
(* (/ y-scale x-scale) (tan (* PI (* 0.005555555555555556 angle))))))
PI)
(*
180.0
(/
(atan
(*
90.0
(* x-scale (* -2.0 (/ y-scale (* angle (* PI (pow x-scale 2.0))))))))
PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 4.6e+40) {
tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((((double) M_PI) * (0.005555555555555556 * angle)))))) / ((double) M_PI);
} else {
tmp = 180.0 * (atan((90.0 * (x_45_scale * (-2.0 * (y_45_scale / (angle * (((double) M_PI) * pow(x_45_scale, 2.0)))))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 4.6e+40) {
tmp = (180.0 * Math.atan(((y_45_scale / x_45_scale) * Math.tan((Math.PI * (0.005555555555555556 * angle)))))) / Math.PI;
} else {
tmp = 180.0 * (Math.atan((90.0 * (x_45_scale * (-2.0 * (y_45_scale / (angle * (Math.PI * Math.pow(x_45_scale, 2.0)))))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 4.6e+40: tmp = (180.0 * math.atan(((y_45_scale / x_45_scale) * math.tan((math.pi * (0.005555555555555556 * angle)))))) / math.pi else: tmp = 180.0 * (math.atan((90.0 * (x_45_scale * (-2.0 * (y_45_scale / (angle * (math.pi * math.pow(x_45_scale, 2.0)))))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 4.6e+40) tmp = Float64(Float64(180.0 * atan(Float64(Float64(y_45_scale / x_45_scale) * tan(Float64(pi * Float64(0.005555555555555556 * angle)))))) / pi); else tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(x_45_scale * Float64(-2.0 * Float64(y_45_scale / Float64(angle * Float64(pi * (x_45_scale ^ 2.0)))))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 4.6e+40) tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((pi * (0.005555555555555556 * angle)))))) / pi; else tmp = 180.0 * (atan((90.0 * (x_45_scale * (-2.0 * (y_45_scale / (angle * (pi * (x_45_scale ^ 2.0)))))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 4.6e+40], N[(N[(180.0 * N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(x$45$scale * N[(-2.0 * N[(y$45$scale / N[(angle * N[(Pi * N[Power[x$45$scale, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 4.6 \cdot 10^{+40}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \left(x-scale \cdot \left(-2 \cdot \frac{y-scale}{angle \cdot \left(\pi \cdot {x-scale}^{2}\right)}\right)\right)\right)}{\pi}\\
\end{array}
\end{array}
if b < 4.59999999999999987e40Initial program 15.7%
Simplified16.3%
Taylor expanded in x-scale around 0 27.3%
Simplified32.4%
Taylor expanded in a around inf 50.4%
times-frac52.6%
Simplified52.6%
add-cube-cbrt53.6%
Applied egg-rr53.6%
associate-*r/53.7%
Applied egg-rr52.7%
if 4.59999999999999987e40 < b Initial program 6.7%
Simplified4.7%
Taylor expanded in angle around 0 4.8%
associate-/l*4.8%
distribute-lft-out--4.8%
associate-*r*4.8%
Simplified4.8%
Taylor expanded in a around 0 55.1%
Final simplification53.2%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 1.5e+140)
(*
180.0
(/
(atan (* (/ y-scale x-scale) (sin (* 0.005555555555555556 (* angle PI)))))
PI))
(* 180.0 (/ (atan (* -180.0 (/ y-scale (* angle (* x-scale PI))))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 1.5e+140) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * sin((0.005555555555555556 * (angle * ((double) M_PI)))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-180.0 * (y_45_scale / (angle * (x_45_scale * ((double) M_PI)))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 1.5e+140) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * Math.sin((0.005555555555555556 * (angle * Math.PI))))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-180.0 * (y_45_scale / (angle * (x_45_scale * Math.PI))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 1.5e+140: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * math.sin((0.005555555555555556 * (angle * math.pi))))) / math.pi) else: tmp = 180.0 * (math.atan((-180.0 * (y_45_scale / (angle * (x_45_scale * math.pi))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 1.5e+140) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * sin(Float64(0.005555555555555556 * Float64(angle * pi))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(y_45_scale / Float64(angle * Float64(x_45_scale * pi))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 1.5e+140) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * sin((0.005555555555555556 * (angle * pi))))) / pi); else tmp = 180.0 * (atan((-180.0 * (y_45_scale / (angle * (x_45_scale * pi))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 1.5e+140], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Sin[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(y$45$scale / N[(angle * N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 1.5 \cdot 10^{+140}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{y-scale}{angle \cdot \left(x-scale \cdot \pi\right)}\right)}{\pi}\\
\end{array}
\end{array}
if b < 1.49999999999999998e140Initial program 15.9%
Simplified15.9%
Taylor expanded in x-scale around 0 29.2%
Simplified33.9%
Taylor expanded in a around inf 50.5%
times-frac52.5%
Simplified52.5%
Taylor expanded in angle around 0 53.1%
if 1.49999999999999998e140 < b Initial program 0.0%
Simplified0.0%
Taylor expanded in angle around 0 0.0%
associate-/l*0.0%
distribute-lft-out--0.0%
associate-*r*0.0%
Simplified0.0%
Taylor expanded in a around 0 67.0%
Final simplification54.6%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 6.8e+118)
(/
(*
180.0
(atan
(* (/ y-scale x-scale) (tan (* PI (* 0.005555555555555556 angle))))))
PI)
(* 180.0 (/ (atan (* -180.0 (/ y-scale (* angle (* x-scale PI))))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 6.8e+118) {
tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((((double) M_PI) * (0.005555555555555556 * angle)))))) / ((double) M_PI);
} else {
tmp = 180.0 * (atan((-180.0 * (y_45_scale / (angle * (x_45_scale * ((double) M_PI)))))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 6.8e+118) {
tmp = (180.0 * Math.atan(((y_45_scale / x_45_scale) * Math.tan((Math.PI * (0.005555555555555556 * angle)))))) / Math.PI;
} else {
tmp = 180.0 * (Math.atan((-180.0 * (y_45_scale / (angle * (x_45_scale * Math.PI))))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 6.8e+118: tmp = (180.0 * math.atan(((y_45_scale / x_45_scale) * math.tan((math.pi * (0.005555555555555556 * angle)))))) / math.pi else: tmp = 180.0 * (math.atan((-180.0 * (y_45_scale / (angle * (x_45_scale * math.pi))))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 6.8e+118) tmp = Float64(Float64(180.0 * atan(Float64(Float64(y_45_scale / x_45_scale) * tan(Float64(pi * Float64(0.005555555555555556 * angle)))))) / pi); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(y_45_scale / Float64(angle * Float64(x_45_scale * pi))))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 6.8e+118) tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((pi * (0.005555555555555556 * angle)))))) / pi; else tmp = 180.0 * (atan((-180.0 * (y_45_scale / (angle * (x_45_scale * pi))))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 6.8e+118], N[(N[(180.0 * N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(y$45$scale / N[(angle * N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 6.8 \cdot 10^{+118}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{y-scale}{angle \cdot \left(x-scale \cdot \pi\right)}\right)}{\pi}\\
\end{array}
\end{array}
if b < 6.79999999999999973e118Initial program 15.6%
Simplified15.6%
Taylor expanded in x-scale around 0 29.0%
Simplified33.7%
Taylor expanded in a around inf 50.1%
times-frac52.0%
Simplified52.0%
add-cube-cbrt53.6%
Applied egg-rr53.6%
associate-*r/53.6%
Applied egg-rr52.7%
if 6.79999999999999973e118 < b Initial program 3.3%
Simplified3.3%
Taylor expanded in angle around 0 0.0%
associate-/l*0.1%
distribute-lft-out--0.1%
associate-*r*0.1%
Simplified0.1%
Taylor expanded in a around 0 65.9%
Final simplification54.2%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 3.4e+41)
(/
(*
180.0
(atan
(* (/ y-scale x-scale) (tan (* 0.005555555555555556 (* angle PI))))))
PI)
(* 180.0 (/ (atan (* -180.0 (/ (/ y-scale (* x-scale PI)) angle))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 3.4e+41) {
tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((0.005555555555555556 * (angle * ((double) M_PI))))))) / ((double) M_PI);
} else {
tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * ((double) M_PI))) / angle))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 3.4e+41) {
tmp = (180.0 * Math.atan(((y_45_scale / x_45_scale) * Math.tan((0.005555555555555556 * (angle * Math.PI)))))) / Math.PI;
} else {
tmp = 180.0 * (Math.atan((-180.0 * ((y_45_scale / (x_45_scale * Math.PI)) / angle))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 3.4e+41: tmp = (180.0 * math.atan(((y_45_scale / x_45_scale) * math.tan((0.005555555555555556 * (angle * math.pi)))))) / math.pi else: tmp = 180.0 * (math.atan((-180.0 * ((y_45_scale / (x_45_scale * math.pi)) / angle))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 3.4e+41) tmp = Float64(Float64(180.0 * atan(Float64(Float64(y_45_scale / x_45_scale) * tan(Float64(0.005555555555555556 * Float64(angle * pi)))))) / pi); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(Float64(y_45_scale / Float64(x_45_scale * pi)) / angle))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 3.4e+41) tmp = (180.0 * atan(((y_45_scale / x_45_scale) * tan((0.005555555555555556 * (angle * pi)))))) / pi; else tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * pi)) / angle))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 3.4e+41], N[(N[(180.0 * N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(N[(y$45$scale / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 3.4 \cdot 10^{+41}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{\frac{y-scale}{x-scale \cdot \pi}}{angle}\right)}{\pi}\\
\end{array}
\end{array}
if b < 3.39999999999999998e41Initial program 15.7%
Simplified16.3%
Taylor expanded in x-scale around 0 27.3%
Simplified32.4%
Taylor expanded in a around inf 50.4%
times-frac52.6%
Simplified52.6%
associate-*r/52.6%
quot-tan52.6%
Applied egg-rr52.6%
if 3.39999999999999998e41 < b Initial program 6.7%
Simplified4.7%
Taylor expanded in x-scale around 0 20.0%
Simplified20.3%
Taylor expanded in a around 0 61.4%
add-cube-cbrt42.7%
Applied egg-rr58.9%
Taylor expanded in angle around 0 55.3%
*-commutative55.3%
associate-/r*55.1%
*-commutative55.1%
Simplified55.1%
Final simplification53.0%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 6.2e+41)
(*
180.0
(/
(atan (* (/ y-scale x-scale) (tan (* 0.005555555555555556 (* angle PI)))))
PI))
(* 180.0 (/ (atan (* -180.0 (/ (/ y-scale (* x-scale PI)) angle))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 6.2e+41) {
tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * tan((0.005555555555555556 * (angle * ((double) M_PI)))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * ((double) M_PI))) / angle))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 6.2e+41) {
tmp = 180.0 * (Math.atan(((y_45_scale / x_45_scale) * Math.tan((0.005555555555555556 * (angle * Math.PI))))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-180.0 * ((y_45_scale / (x_45_scale * Math.PI)) / angle))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 6.2e+41: tmp = 180.0 * (math.atan(((y_45_scale / x_45_scale) * math.tan((0.005555555555555556 * (angle * math.pi))))) / math.pi) else: tmp = 180.0 * (math.atan((-180.0 * ((y_45_scale / (x_45_scale * math.pi)) / angle))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 6.2e+41) tmp = Float64(180.0 * Float64(atan(Float64(Float64(y_45_scale / x_45_scale) * tan(Float64(0.005555555555555556 * Float64(angle * pi))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(Float64(y_45_scale / Float64(x_45_scale * pi)) / angle))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 6.2e+41) tmp = 180.0 * (atan(((y_45_scale / x_45_scale) * tan((0.005555555555555556 * (angle * pi))))) / pi); else tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * pi)) / angle))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 6.2e+41], N[(180.0 * N[(N[ArcTan[N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[Tan[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(N[(y$45$scale / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 6.2 \cdot 10^{+41}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{y-scale}{x-scale} \cdot \tan \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{\frac{y-scale}{x-scale \cdot \pi}}{angle}\right)}{\pi}\\
\end{array}
\end{array}
if b < 6.2e41Initial program 15.7%
Simplified16.3%
Taylor expanded in x-scale around 0 27.3%
Simplified32.4%
Taylor expanded in a around inf 50.4%
times-frac52.6%
Simplified52.6%
associate-*l/50.4%
quot-tan50.4%
Applied egg-rr50.4%
associate-*l/52.6%
Simplified52.6%
if 6.2e41 < b Initial program 6.7%
Simplified4.7%
Taylor expanded in x-scale around 0 20.0%
Simplified20.3%
Taylor expanded in a around 0 61.4%
add-cube-cbrt42.7%
Applied egg-rr58.9%
Taylor expanded in angle around 0 55.3%
*-commutative55.3%
associate-/r*55.1%
*-commutative55.1%
Simplified55.1%
Final simplification53.0%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 2.2e+45)
(*
180.0
(/
(atan (* y-scale (/ (tan (* PI (* 0.005555555555555556 angle))) x-scale)))
PI))
(* 180.0 (/ (atan (* -180.0 (/ (/ y-scale (* x-scale PI)) angle))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 2.2e+45) {
tmp = 180.0 * (atan((y_45_scale * (tan((((double) M_PI) * (0.005555555555555556 * angle))) / x_45_scale))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * ((double) M_PI))) / angle))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 2.2e+45) {
tmp = 180.0 * (Math.atan((y_45_scale * (Math.tan((Math.PI * (0.005555555555555556 * angle))) / x_45_scale))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-180.0 * ((y_45_scale / (x_45_scale * Math.PI)) / angle))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 2.2e+45: tmp = 180.0 * (math.atan((y_45_scale * (math.tan((math.pi * (0.005555555555555556 * angle))) / x_45_scale))) / math.pi) else: tmp = 180.0 * (math.atan((-180.0 * ((y_45_scale / (x_45_scale * math.pi)) / angle))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 2.2e+45) tmp = Float64(180.0 * Float64(atan(Float64(y_45_scale * Float64(tan(Float64(pi * Float64(0.005555555555555556 * angle))) / x_45_scale))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(Float64(y_45_scale / Float64(x_45_scale * pi)) / angle))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 2.2e+45) tmp = 180.0 * (atan((y_45_scale * (tan((pi * (0.005555555555555556 * angle))) / x_45_scale))) / pi); else tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * pi)) / angle))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 2.2e+45], N[(180.0 * N[(N[ArcTan[N[(y$45$scale * N[(N[Tan[N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(N[(y$45$scale / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 2.2 \cdot 10^{+45}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(y-scale \cdot \frac{\tan \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}{x-scale}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{\frac{y-scale}{x-scale \cdot \pi}}{angle}\right)}{\pi}\\
\end{array}
\end{array}
if b < 2.2e45Initial program 15.7%
Simplified16.3%
Taylor expanded in x-scale around 0 27.3%
Simplified32.4%
Taylor expanded in a around inf 50.4%
times-frac52.6%
Simplified52.6%
add-cube-cbrt53.6%
Applied egg-rr53.6%
associate-*l/51.5%
add-cube-cbrt50.4%
quot-tan50.4%
associate-*r*50.6%
Applied egg-rr50.6%
associate-/l*52.0%
*-commutative52.0%
*-commutative52.0%
Simplified52.0%
if 2.2e45 < b Initial program 6.7%
Simplified4.7%
Taylor expanded in x-scale around 0 20.0%
Simplified20.3%
Taylor expanded in a around 0 61.4%
add-cube-cbrt42.7%
Applied egg-rr58.9%
Taylor expanded in angle around 0 55.3%
*-commutative55.3%
associate-/r*55.1%
*-commutative55.1%
Simplified55.1%
Final simplification52.6%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 1.5e+51)
(*
(atan (* 0.005555555555555556 (* angle (* (/ y-scale x-scale) PI))))
(/ 180.0 PI))
(* 180.0 (/ (atan (* -180.0 (/ (/ y-scale (* x-scale PI)) angle))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 1.5e+51) {
tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * ((double) M_PI))))) * (180.0 / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * ((double) M_PI))) / angle))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 1.5e+51) {
tmp = Math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * Math.PI)))) * (180.0 / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-180.0 * ((y_45_scale / (x_45_scale * Math.PI)) / angle))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 1.5e+51: tmp = math.atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * math.pi)))) * (180.0 / math.pi) else: tmp = 180.0 * (math.atan((-180.0 * ((y_45_scale / (x_45_scale * math.pi)) / angle))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 1.5e+51) tmp = Float64(atan(Float64(0.005555555555555556 * Float64(angle * Float64(Float64(y_45_scale / x_45_scale) * pi)))) * Float64(180.0 / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(Float64(y_45_scale / Float64(x_45_scale * pi)) / angle))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 1.5e+51) tmp = atan((0.005555555555555556 * (angle * ((y_45_scale / x_45_scale) * pi)))) * (180.0 / pi); else tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * pi)) / angle))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 1.5e+51], N[(N[ArcTan[N[(0.005555555555555556 * N[(angle * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(N[(y$45$scale / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 1.5 \cdot 10^{+51}:\\
\;\;\;\;\tan^{-1} \left(0.005555555555555556 \cdot \left(angle \cdot \left(\frac{y-scale}{x-scale} \cdot \pi\right)\right)\right) \cdot \frac{180}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{\frac{y-scale}{x-scale \cdot \pi}}{angle}\right)}{\pi}\\
\end{array}
\end{array}
if b < 1.5e51Initial program 15.9%
Simplified16.4%
Taylor expanded in x-scale around 0 27.4%
Simplified32.3%
Taylor expanded in a around inf 50.0%
times-frac52.1%
Simplified52.1%
Taylor expanded in angle around 0 44.1%
associate-/l*49.5%
associate-/l*49.5%
Simplified49.5%
Taylor expanded in angle around 0 44.1%
associate-*r/44.2%
associate-*r*44.2%
associate-*r/44.2%
*-commutative44.2%
associate-/l*44.2%
associate-*r/44.2%
associate-*r*44.2%
associate-/l*49.5%
*-commutative49.5%
associate-/l*49.5%
Simplified49.5%
if 1.5e51 < b Initial program 4.9%
Simplified2.5%
Taylor expanded in x-scale around 0 19.2%
Simplified19.4%
Taylor expanded in a around 0 64.5%
add-cube-cbrt46.4%
Applied egg-rr61.7%
Taylor expanded in angle around 0 57.8%
*-commutative57.8%
associate-/r*57.6%
*-commutative57.6%
Simplified57.6%
Final simplification50.9%
b_m = (fabs.f64 b)
(FPCore (a b_m angle x-scale y-scale)
:precision binary64
(if (<= b_m 8.5e+51)
(*
180.0
(/
(atan (* 0.005555555555555556 (* angle (* y-scale (/ PI x-scale)))))
PI))
(* 180.0 (/ (atan (* -180.0 (/ (/ y-scale (* x-scale PI)) angle))) PI))))b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 8.5e+51) {
tmp = 180.0 * (atan((0.005555555555555556 * (angle * (y_45_scale * (((double) M_PI) / x_45_scale))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * ((double) M_PI))) / angle))) / ((double) M_PI));
}
return tmp;
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (b_m <= 8.5e+51) {
tmp = 180.0 * (Math.atan((0.005555555555555556 * (angle * (y_45_scale * (Math.PI / x_45_scale))))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-180.0 * ((y_45_scale / (x_45_scale * Math.PI)) / angle))) / Math.PI);
}
return tmp;
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): tmp = 0 if b_m <= 8.5e+51: tmp = 180.0 * (math.atan((0.005555555555555556 * (angle * (y_45_scale * (math.pi / x_45_scale))))) / math.pi) else: tmp = 180.0 * (math.atan((-180.0 * ((y_45_scale / (x_45_scale * math.pi)) / angle))) / math.pi) return tmp
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0 if (b_m <= 8.5e+51) tmp = Float64(180.0 * Float64(atan(Float64(0.005555555555555556 * Float64(angle * Float64(y_45_scale * Float64(pi / x_45_scale))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(Float64(y_45_scale / Float64(x_45_scale * pi)) / angle))) / pi)); end return tmp end
b_m = abs(b); function tmp_2 = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 0.0; if (b_m <= 8.5e+51) tmp = 180.0 * (atan((0.005555555555555556 * (angle * (y_45_scale * (pi / x_45_scale))))) / pi); else tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * pi)) / angle))) / pi); end tmp_2 = tmp; end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[b$95$m, 8.5e+51], N[(180.0 * N[(N[ArcTan[N[(0.005555555555555556 * N[(angle * N[(y$45$scale * N[(Pi / x$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(N[(y$45$scale / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
\begin{array}{l}
\mathbf{if}\;b\_m \leq 8.5 \cdot 10^{+51}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.005555555555555556 \cdot \left(angle \cdot \left(y-scale \cdot \frac{\pi}{x-scale}\right)\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{\frac{y-scale}{x-scale \cdot \pi}}{angle}\right)}{\pi}\\
\end{array}
\end{array}
if b < 8.4999999999999999e51Initial program 15.9%
Simplified16.4%
Taylor expanded in x-scale around 0 27.4%
Simplified32.3%
Taylor expanded in a around inf 50.0%
times-frac52.1%
Simplified52.1%
Taylor expanded in angle around 0 44.1%
associate-/l*49.5%
associate-/l*49.5%
Simplified49.5%
if 8.4999999999999999e51 < b Initial program 4.9%
Simplified2.5%
Taylor expanded in x-scale around 0 19.2%
Simplified19.4%
Taylor expanded in a around 0 64.5%
add-cube-cbrt46.4%
Applied egg-rr61.7%
Taylor expanded in angle around 0 57.8%
*-commutative57.8%
associate-/r*57.6%
*-commutative57.6%
Simplified57.6%
Final simplification50.8%
b_m = (fabs.f64 b) (FPCore (a b_m angle x-scale y-scale) :precision binary64 (* 180.0 (/ (atan (* -180.0 (/ (/ y-scale (* x-scale PI)) angle))) PI)))
b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * ((double) M_PI))) / angle))) / ((double) M_PI));
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (Math.atan((-180.0 * ((y_45_scale / (x_45_scale * Math.PI)) / angle))) / Math.PI);
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): return 180.0 * (math.atan((-180.0 * ((y_45_scale / (x_45_scale * math.pi)) / angle))) / math.pi)
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) return Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(Float64(y_45_scale / Float64(x_45_scale * pi)) / angle))) / pi)) end
b_m = abs(b); function tmp = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 180.0 * (atan((-180.0 * ((y_45_scale / (x_45_scale * pi)) / angle))) / pi); end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(N[(y$45$scale / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision] / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
b_m = \left|b\right|
\\
180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{\frac{y-scale}{x-scale \cdot \pi}}{angle}\right)}{\pi}
\end{array}
Initial program 14.1%
Simplified14.2%
Taylor expanded in x-scale around 0 26.0%
Simplified30.2%
Taylor expanded in a around 0 40.1%
add-cube-cbrt51.7%
Applied egg-rr42.3%
Taylor expanded in angle around 0 33.2%
*-commutative33.2%
associate-/r*35.3%
*-commutative35.3%
Simplified35.3%
Final simplification35.3%
b_m = (fabs.f64 b) (FPCore (a b_m angle x-scale y-scale) :precision binary64 (* 180.0 (/ (atan (* -180.0 (/ y-scale (* angle (* x-scale PI))))) PI)))
b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (atan((-180.0 * (y_45_scale / (angle * (x_45_scale * ((double) M_PI)))))) / ((double) M_PI));
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (Math.atan((-180.0 * (y_45_scale / (angle * (x_45_scale * Math.PI))))) / Math.PI);
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): return 180.0 * (math.atan((-180.0 * (y_45_scale / (angle * (x_45_scale * math.pi))))) / math.pi)
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) return Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(y_45_scale / Float64(angle * Float64(x_45_scale * pi))))) / pi)) end
b_m = abs(b); function tmp = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 180.0 * (atan((-180.0 * (y_45_scale / (angle * (x_45_scale * pi))))) / pi); end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(y$45$scale / N[(angle * N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
b_m = \left|b\right|
\\
180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{y-scale}{angle \cdot \left(x-scale \cdot \pi\right)}\right)}{\pi}
\end{array}
Initial program 14.1%
Simplified14.2%
Taylor expanded in angle around 0 10.7%
associate-/l*10.7%
distribute-lft-out--10.7%
associate-*r*10.7%
Simplified10.7%
Taylor expanded in a around 0 33.2%
b_m = (fabs.f64 b) (FPCore (a b_m angle x-scale y-scale) :precision binary64 (* 180.0 (/ (atan (* -180.0 (/ x-scale (* angle (* y-scale PI))))) PI)))
b_m = fabs(b);
double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (atan((-180.0 * (x_45_scale / (angle * (y_45_scale * ((double) M_PI)))))) / ((double) M_PI));
}
b_m = Math.abs(b);
public static double code(double a, double b_m, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (Math.atan((-180.0 * (x_45_scale / (angle * (y_45_scale * Math.PI))))) / Math.PI);
}
b_m = math.fabs(b) def code(a, b_m, angle, x_45_scale, y_45_scale): return 180.0 * (math.atan((-180.0 * (x_45_scale / (angle * (y_45_scale * math.pi))))) / math.pi)
b_m = abs(b) function code(a, b_m, angle, x_45_scale, y_45_scale) return Float64(180.0 * Float64(atan(Float64(-180.0 * Float64(x_45_scale / Float64(angle * Float64(y_45_scale * pi))))) / pi)) end
b_m = abs(b); function tmp = code(a, b_m, angle, x_45_scale, y_45_scale) tmp = 180.0 * (atan((-180.0 * (x_45_scale / (angle * (y_45_scale * pi))))) / pi); end
b_m = N[Abs[b], $MachinePrecision] code[a_, b$95$m_, angle_, x$45$scale_, y$45$scale_] := N[(180.0 * N[(N[ArcTan[N[(-180.0 * N[(x$45$scale / N[(angle * N[(y$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
b_m = \left|b\right|
\\
180 \cdot \frac{\tan^{-1} \left(-180 \cdot \frac{x-scale}{angle \cdot \left(y-scale \cdot \pi\right)}\right)}{\pi}
\end{array}
Initial program 14.1%
Simplified14.2%
Taylor expanded in angle around 0 10.7%
associate-/l*10.7%
distribute-lft-out--10.7%
associate-*r*10.7%
Simplified10.7%
Taylor expanded in a around inf 9.6%
herbie shell --seed 2024123
(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)))