
(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}
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}
Herbie found 15 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}
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}
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (sin (fma (* 0.005555555555555556 angle) PI (/ PI 2.0))))
(t_1 (* (* 0.005555555555555556 angle) PI))
(t_2 (sin (* 0.005555555555555556 (* angle PI))))
(t_3 (* PI (* 0.005555555555555556 angle)))
(t_4 (sin (+ (- t_3) (* PI 0.5)))))
(if (<= (fabs b) 2.3e-216)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 2.3e-91)
(*
180.0
(/
(atan
(*
0.5
(/
(* y-scale (+ (sqrt (pow t_2 4.0)) (pow t_2 2.0)))
(*
x-scale
(/
(+
(sin (- t_3 t_3))
(sin (fma (* PI angle) 0.005555555555555556 t_3)))
2.0)))))
PI))
(if (<= (fabs b) 1.42e+155)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale (* t_4 x-scale))
(/
(fma (+ (cos (* t_1 2.0)) 1.0) 0.5 (sqrt (pow t_4 4.0)))
(sin t_1)))))
PI))
(*
180.0
(/
(atan
(*
-0.5
(/
(* y-scale (+ (sqrt (pow t_0 4.0)) (pow t_0 2.0)))
(* x-scale (* t_0 t_2)))))
PI)))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = sin(fma((0.005555555555555556 * angle), ((double) M_PI), (((double) M_PI) / 2.0)));
double t_1 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_2 = sin((0.005555555555555556 * (angle * ((double) M_PI))));
double t_3 = ((double) M_PI) * (0.005555555555555556 * angle);
double t_4 = sin((-t_3 + (((double) M_PI) * 0.5)));
double tmp;
if (fabs(b) <= 2.3e-216) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 2.3e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * (sqrt(pow(t_2, 4.0)) + pow(t_2, 2.0))) / (x_45_scale * ((sin((t_3 - t_3)) + sin(fma((((double) M_PI) * angle), 0.005555555555555556, t_3))) / 2.0))))) / ((double) M_PI));
} else if (fabs(b) <= 1.42e+155) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (t_4 * x_45_scale)) * (fma((cos((t_1 * 2.0)) + 1.0), 0.5, sqrt(pow(t_4, 4.0))) / sin(t_1))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (sqrt(pow(t_0, 4.0)) + pow(t_0, 2.0))) / (x_45_scale * (t_0 * t_2))))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = sin(fma(Float64(0.005555555555555556 * angle), pi, Float64(pi / 2.0))) t_1 = Float64(Float64(0.005555555555555556 * angle) * pi) t_2 = sin(Float64(0.005555555555555556 * Float64(angle * pi))) t_3 = Float64(pi * Float64(0.005555555555555556 * angle)) t_4 = sin(Float64(Float64(-t_3) + Float64(pi * 0.5))) tmp = 0.0 if (abs(b) <= 2.3e-216) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 2.3e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64(sqrt((t_2 ^ 4.0)) + (t_2 ^ 2.0))) / Float64(x_45_scale * Float64(Float64(sin(Float64(t_3 - t_3)) + sin(fma(Float64(pi * angle), 0.005555555555555556, t_3))) / 2.0))))) / pi)); elseif (abs(b) <= 1.42e+155) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(t_4 * x_45_scale)) * Float64(fma(Float64(cos(Float64(t_1 * 2.0)) + 1.0), 0.5, sqrt((t_4 ^ 4.0))) / sin(t_1))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(sqrt((t_0 ^ 4.0)) + (t_0 ^ 2.0))) / Float64(x_45_scale * Float64(t_0 * t_2))))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[Sin[N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi + N[(Pi / 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Sin[N[((-t$95$3) + N[(Pi * 0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 2.3e-216], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 2.3e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[Sqrt[N[Power[t$95$2, 4.0], $MachinePrecision]], $MachinePrecision] + N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(N[(N[Sin[N[(t$95$3 - t$95$3), $MachinePrecision]], $MachinePrecision] + N[Sin[N[(N[(Pi * angle), $MachinePrecision] * 0.005555555555555556 + t$95$3), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.42e+155], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(t$95$4 * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$1 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[t$95$4, 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(N[Sqrt[N[Power[t$95$0, 4.0], $MachinePrecision]], $MachinePrecision] + N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(t$95$0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := \sin \left(\mathsf{fma}\left(0.005555555555555556 \cdot angle, \pi, \frac{\pi}{2}\right)\right)\\
t_1 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_2 := \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\\
t_3 := \pi \cdot \left(0.005555555555555556 \cdot angle\right)\\
t_4 := \sin \left(\left(-t\_3\right) + \pi \cdot 0.5\right)\\
\mathbf{if}\;\left|b\right| \leq 2.3 \cdot 10^{-216}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 2.3 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left(\sqrt{{t\_2}^{4}} + {t\_2}^{2}\right)}{x-scale \cdot \frac{\sin \left(t\_3 - t\_3\right) + \sin \left(\mathsf{fma}\left(\pi \cdot angle, 0.005555555555555556, t\_3\right)\right)}{2}}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.42 \cdot 10^{+155}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{t\_4 \cdot x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_1 \cdot 2\right) + 1, 0.5, \sqrt{{t\_4}^{4}}\right)}{\sin t\_1}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(\sqrt{{t\_0}^{4}} + {t\_0}^{2}\right)}{x-scale \cdot \left(t\_0 \cdot t\_2\right)}\right)}{\pi}\\
\end{array}
if b < 2.29999999999999997e-216Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 2.29999999999999997e-216 < b < 2.29999999999999996e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
lift-*.f64N/A
*-commutativeN/A
lift-sin.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
Applied rewrites37.4%
if 2.29999999999999996e-91 < b < 1.41999999999999994e155Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
lift-cos.f64N/A
cos-neg-revN/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lower-+.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
lower-*.f6445.8
Applied rewrites45.8%
lift-cos.f64N/A
cos-neg-revN/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lower-+.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
lower-*.f6445.9
Applied rewrites45.9%
if 1.41999999999999994e155 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lift-PI.f64N/A
lower-/.f6443.5
Applied rewrites43.5%
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lift-PI.f64N/A
lower-/.f6443.4
Applied rewrites43.4%
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lift-PI.f64N/A
lower-/.f6443.4
Applied rewrites43.4%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (sin (+ (- (* PI (* 0.005555555555555556 angle))) (* PI 0.5))))
(t_2 (sin (fma (* 0.005555555555555556 angle) PI (/ PI 2.0))))
(t_3 (* (* 0.005555555555555556 angle) PI))
(t_4 (sin t_0)))
(if (<= (fabs b) 8.6e-214)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 2.3e-91)
(*
180.0
(/
(atan
(*
0.5
(/
(* y-scale (+ (sqrt (pow t_4 4.0)) (pow t_4 2.0)))
(* x-scale (* (cos t_0) t_4)))))
PI))
(if (<= (fabs b) 1.42e+155)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale (* t_1 x-scale))
(/
(fma (+ (cos (* t_3 2.0)) 1.0) 0.5 (sqrt (pow t_1 4.0)))
(sin t_3)))))
PI))
(*
180.0
(/
(atan
(*
-0.5
(/
(* y-scale (+ (sqrt (pow t_2 4.0)) (pow t_2 2.0)))
(* x-scale (* t_2 t_4)))))
PI)))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = sin((-(((double) M_PI) * (0.005555555555555556 * angle)) + (((double) M_PI) * 0.5)));
double t_2 = sin(fma((0.005555555555555556 * angle), ((double) M_PI), (((double) M_PI) / 2.0)));
double t_3 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_4 = sin(t_0);
double tmp;
if (fabs(b) <= 8.6e-214) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 2.3e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * (sqrt(pow(t_4, 4.0)) + pow(t_4, 2.0))) / (x_45_scale * (cos(t_0) * t_4))))) / ((double) M_PI));
} else if (fabs(b) <= 1.42e+155) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (t_1 * x_45_scale)) * (fma((cos((t_3 * 2.0)) + 1.0), 0.5, sqrt(pow(t_1, 4.0))) / sin(t_3))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (sqrt(pow(t_2, 4.0)) + pow(t_2, 2.0))) / (x_45_scale * (t_2 * t_4))))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = sin(Float64(Float64(-Float64(pi * Float64(0.005555555555555556 * angle))) + Float64(pi * 0.5))) t_2 = sin(fma(Float64(0.005555555555555556 * angle), pi, Float64(pi / 2.0))) t_3 = Float64(Float64(0.005555555555555556 * angle) * pi) t_4 = sin(t_0) tmp = 0.0 if (abs(b) <= 8.6e-214) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 2.3e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64(sqrt((t_4 ^ 4.0)) + (t_4 ^ 2.0))) / Float64(x_45_scale * Float64(cos(t_0) * t_4))))) / pi)); elseif (abs(b) <= 1.42e+155) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(t_1 * x_45_scale)) * Float64(fma(Float64(cos(Float64(t_3 * 2.0)) + 1.0), 0.5, sqrt((t_1 ^ 4.0))) / sin(t_3))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(sqrt((t_2 ^ 4.0)) + (t_2 ^ 2.0))) / Float64(x_45_scale * Float64(t_2 * t_4))))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[N[((-N[(Pi * N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]) + N[(Pi * 0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi + N[(Pi / 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$4 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 8.6e-214], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 2.3e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[Sqrt[N[Power[t$95$4, 4.0], $MachinePrecision]], $MachinePrecision] + N[Power[t$95$4, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(N[Cos[t$95$0], $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.42e+155], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(t$95$1 * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$3 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[t$95$1, 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(N[Sqrt[N[Power[t$95$2, 4.0], $MachinePrecision]], $MachinePrecision] + N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(t$95$2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \sin \left(\left(-\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right) + \pi \cdot 0.5\right)\\
t_2 := \sin \left(\mathsf{fma}\left(0.005555555555555556 \cdot angle, \pi, \frac{\pi}{2}\right)\right)\\
t_3 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_4 := \sin t\_0\\
\mathbf{if}\;\left|b\right| \leq 8.6 \cdot 10^{-214}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 2.3 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left(\sqrt{{t\_4}^{4}} + {t\_4}^{2}\right)}{x-scale \cdot \left(\cos t\_0 \cdot t\_4\right)}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.42 \cdot 10^{+155}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{t\_1 \cdot x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_3 \cdot 2\right) + 1, 0.5, \sqrt{{t\_1}^{4}}\right)}{\sin t\_3}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(\sqrt{{t\_2}^{4}} + {t\_2}^{2}\right)}{x-scale \cdot \left(t\_2 \cdot t\_4\right)}\right)}{\pi}\\
\end{array}
if b < 8.5999999999999999e-214Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 8.5999999999999999e-214 < b < 2.29999999999999996e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
if 2.29999999999999996e-91 < b < 1.41999999999999994e155Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
lift-cos.f64N/A
cos-neg-revN/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lower-+.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
lower-*.f6445.8
Applied rewrites45.8%
lift-cos.f64N/A
cos-neg-revN/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lower-+.f64N/A
lower-neg.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
lower-*.f6445.9
Applied rewrites45.9%
if 1.41999999999999994e155 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lift-PI.f64N/A
lower-/.f6443.5
Applied rewrites43.5%
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lift-PI.f64N/A
lower-/.f6443.4
Applied rewrites43.4%
lift-cos.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-PI.f64N/A
lift-PI.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lift-PI.f64N/A
lower-/.f6443.4
Applied rewrites43.4%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (* (* 0.005555555555555556 angle) PI))
(t_2 (cos t_1))
(t_3 (sqrt (pow t_2 4.0)))
(t_4 (sin t_0)))
(if (<= (fabs b) 8.6e-214)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 2.3e-91)
(*
180.0
(/
(atan
(*
0.5
(/
(* y-scale (+ (sqrt (pow t_4 4.0)) (pow t_4 2.0)))
(* x-scale (* (cos t_0) t_4)))))
PI))
(if (<= (fabs b) 1.3e+111)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale x-scale)
(/ (fma (+ (cos (* t_1 2.0)) 1.0) 0.5 t_3) (sin t_1)))))
PI))
(*
180.0
(/
(atan
(*
-0.5
(/ (* y-scale (+ t_3 (pow t_2 2.0))) (* x-scale (* t_2 t_4)))))
PI)))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_2 = cos(t_1);
double t_3 = sqrt(pow(t_2, 4.0));
double t_4 = sin(t_0);
double tmp;
if (fabs(b) <= 8.6e-214) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 2.3e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * (sqrt(pow(t_4, 4.0)) + pow(t_4, 2.0))) / (x_45_scale * (cos(t_0) * t_4))))) / ((double) M_PI));
} else if (fabs(b) <= 1.3e+111) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / x_45_scale) * (fma((cos((t_1 * 2.0)) + 1.0), 0.5, t_3) / sin(t_1))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (t_3 + pow(t_2, 2.0))) / (x_45_scale * (t_2 * t_4))))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = Float64(Float64(0.005555555555555556 * angle) * pi) t_2 = cos(t_1) t_3 = sqrt((t_2 ^ 4.0)) t_4 = sin(t_0) tmp = 0.0 if (abs(b) <= 8.6e-214) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 2.3e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64(sqrt((t_4 ^ 4.0)) + (t_4 ^ 2.0))) / Float64(x_45_scale * Float64(cos(t_0) * t_4))))) / pi)); elseif (abs(b) <= 1.3e+111) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / x_45_scale) * Float64(fma(Float64(cos(Float64(t_1 * 2.0)) + 1.0), 0.5, t_3) / sin(t_1))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(t_3 + (t_2 ^ 2.0))) / Float64(x_45_scale * Float64(t_2 * t_4))))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$2 = N[Cos[t$95$1], $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[Power[t$95$2, 4.0], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 8.6e-214], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 2.3e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[Sqrt[N[Power[t$95$4, 4.0], $MachinePrecision]], $MachinePrecision] + N[Power[t$95$4, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(N[Cos[t$95$0], $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.3e+111], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$1 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + t$95$3), $MachinePrecision] / N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(t$95$3 + N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(t$95$2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_2 := \cos t\_1\\
t_3 := \sqrt{{t\_2}^{4}}\\
t_4 := \sin t\_0\\
\mathbf{if}\;\left|b\right| \leq 8.6 \cdot 10^{-214}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 2.3 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left(\sqrt{{t\_4}^{4}} + {t\_4}^{2}\right)}{x-scale \cdot \left(\cos t\_0 \cdot t\_4\right)}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.3 \cdot 10^{+111}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_1 \cdot 2\right) + 1, 0.5, t\_3\right)}{\sin t\_1}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(t\_3 + {t\_2}^{2}\right)}{x-scale \cdot \left(t\_2 \cdot t\_4\right)}\right)}{\pi}\\
\end{array}
if b < 8.5999999999999999e-214Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 8.5999999999999999e-214 < b < 2.29999999999999996e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
if 2.29999999999999996e-91 < b < 1.2999999999999999e111Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
if 1.2999999999999999e111 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f6443.4
Applied rewrites43.4%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f6443.4
Applied rewrites43.4%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-*.f6443.6
Applied rewrites43.6%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (sin t_0))
(t_2 (cos t_0))
(t_3 (* x-scale (* t_2 t_1)))
(t_4 (* (* 0.005555555555555556 angle) PI)))
(if (<= (fabs b) 8.6e-214)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 2.3e-91)
(*
180.0
(/
(atan
(* 0.5 (/ (* y-scale (+ (sqrt (pow t_1 4.0)) (pow t_1 2.0))) t_3)))
PI))
(if (<= (fabs b) 1.5e+111)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale x-scale)
(/
(fma (+ (cos (* t_4 2.0)) 1.0) 0.5 (sqrt (pow (cos t_4) 4.0)))
(sin t_4)))))
PI))
(*
180.0
(/
(atan (* -0.5 (/ (* y-scale (+ 1.0 (pow t_2 2.0))) t_3)))
PI)))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = sin(t_0);
double t_2 = cos(t_0);
double t_3 = x_45_scale * (t_2 * t_1);
double t_4 = (0.005555555555555556 * angle) * ((double) M_PI);
double tmp;
if (fabs(b) <= 8.6e-214) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 2.3e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * (sqrt(pow(t_1, 4.0)) + pow(t_1, 2.0))) / t_3))) / ((double) M_PI));
} else if (fabs(b) <= 1.5e+111) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / x_45_scale) * (fma((cos((t_4 * 2.0)) + 1.0), 0.5, sqrt(pow(cos(t_4), 4.0))) / sin(t_4))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (1.0 + pow(t_2, 2.0))) / t_3))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = sin(t_0) t_2 = cos(t_0) t_3 = Float64(x_45_scale * Float64(t_2 * t_1)) t_4 = Float64(Float64(0.005555555555555556 * angle) * pi) tmp = 0.0 if (abs(b) <= 8.6e-214) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 2.3e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64(sqrt((t_1 ^ 4.0)) + (t_1 ^ 2.0))) / t_3))) / pi)); elseif (abs(b) <= 1.5e+111) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / x_45_scale) * Float64(fma(Float64(cos(Float64(t_4 * 2.0)) + 1.0), 0.5, sqrt((cos(t_4) ^ 4.0))) / sin(t_4))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(1.0 + (t_2 ^ 2.0))) / t_3))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Cos[t$95$0], $MachinePrecision]}, Block[{t$95$3 = N[(x$45$scale * N[(t$95$2 * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 8.6e-214], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 2.3e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[Sqrt[N[Power[t$95$1, 4.0], $MachinePrecision]], $MachinePrecision] + N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.5e+111], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$4 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[N[Cos[t$95$4], $MachinePrecision], 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$4], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(1.0 + N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \sin t\_0\\
t_2 := \cos t\_0\\
t_3 := x-scale \cdot \left(t\_2 \cdot t\_1\right)\\
t_4 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
\mathbf{if}\;\left|b\right| \leq 8.6 \cdot 10^{-214}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 2.3 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left(\sqrt{{t\_1}^{4}} + {t\_1}^{2}\right)}{t\_3}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.5 \cdot 10^{+111}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_4 \cdot 2\right) + 1, 0.5, \sqrt{{\cos t\_4}^{4}}\right)}{\sin t\_4}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(1 + {t\_2}^{2}\right)}{t\_3}\right)}{\pi}\\
\end{array}
if b < 8.5999999999999999e-214Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 8.5999999999999999e-214 < b < 2.29999999999999996e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
if 2.29999999999999996e-91 < b < 1.5e111Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
if 1.5e111 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (sin t_0))
(t_2 (sqrt (* 9.525986892242036e-10 (pow PI 4.0))))
(t_3 (cos t_0))
(t_4 (* x-scale (* t_3 t_1)))
(t_5 (* (* 0.005555555555555556 angle) PI)))
(if (<= (fabs b) 1.55e-212)
(*
180.0
(/
(atan
(*
90.0
(/
(* angle (* y-scale (+ t_2 (* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 1.7e-91)
(*
180.0
(/
(atan
(*
0.5
(/ (* y-scale (+ (* (pow angle 2.0) t_2) (pow t_1 2.0))) t_4)))
PI))
(if (<= (fabs b) 1.5e+111)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale x-scale)
(/
(fma (+ (cos (* t_5 2.0)) 1.0) 0.5 (sqrt (pow (cos t_5) 4.0)))
(sin t_5)))))
PI))
(*
180.0
(/
(atan (* -0.5 (/ (* y-scale (+ 1.0 (pow t_3 2.0))) t_4)))
PI)))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_1 = sin(t_0);
double t_2 = sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0)));
double t_3 = cos(t_0);
double t_4 = x_45_scale * (t_3 * t_1);
double t_5 = (0.005555555555555556 * angle) * ((double) M_PI);
double tmp;
if (fabs(b) <= 1.55e-212) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (t_2 + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 1.7e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * ((pow(angle, 2.0) * t_2) + pow(t_1, 2.0))) / t_4))) / ((double) M_PI));
} else if (fabs(b) <= 1.5e+111) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / x_45_scale) * (fma((cos((t_5 * 2.0)) + 1.0), 0.5, sqrt(pow(cos(t_5), 4.0))) / sin(t_5))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (1.0 + pow(t_3, 2.0))) / t_4))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = sin(t_0) t_2 = sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) t_3 = cos(t_0) t_4 = Float64(x_45_scale * Float64(t_3 * t_1)) t_5 = Float64(Float64(0.005555555555555556 * angle) * pi) tmp = 0.0 if (abs(b) <= 1.55e-212) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(t_2 + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 1.7e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64(Float64((angle ^ 2.0) * t_2) + (t_1 ^ 2.0))) / t_4))) / pi)); elseif (abs(b) <= 1.5e+111) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / x_45_scale) * Float64(fma(Float64(cos(Float64(t_5 * 2.0)) + 1.0), 0.5, sqrt((cos(t_5) ^ 4.0))) / sin(t_5))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(1.0 + (t_3 ^ 2.0))) / t_4))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Sin[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Cos[t$95$0], $MachinePrecision]}, Block[{t$95$4 = N[(x$45$scale * N[(t$95$3 * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 1.55e-212], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(t$95$2 + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.7e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[(N[Power[angle, 2.0], $MachinePrecision] * t$95$2), $MachinePrecision] + N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.5e+111], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$5 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[N[Cos[t$95$5], $MachinePrecision], 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(1.0 + N[Power[t$95$3, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \sin t\_0\\
t_2 := \sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}}\\
t_3 := \cos t\_0\\
t_4 := x-scale \cdot \left(t\_3 \cdot t\_1\right)\\
t_5 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
\mathbf{if}\;\left|b\right| \leq 1.55 \cdot 10^{-212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(t\_2 + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.7 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left({angle}^{2} \cdot t\_2 + {t\_1}^{2}\right)}{t\_4}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.5 \cdot 10^{+111}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_5 \cdot 2\right) + 1, 0.5, \sqrt{{\cos t\_5}^{4}}\right)}{\sin t\_5}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(1 + {t\_3}^{2}\right)}{t\_4}\right)}{\pi}\\
\end{array}
if b < 1.55000000000000003e-212Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 1.55000000000000003e-212 < b < 1.70000000000000013e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-pow.f64N/A
lower-sqrt.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-PI.f6432.8
Applied rewrites32.8%
if 1.70000000000000013e-91 < b < 1.5e111Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
if 1.5e111 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (cos t_0))
(t_2 (* (* 0.005555555555555556 angle) PI))
(t_3
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0))))
(t_4 (* x-scale (* t_1 (sin t_0)))))
(if (<= (fabs b) 1.55e-212)
(*
180.0
(/ (atan (* 90.0 (/ (* angle (* y-scale t_3)) (* x-scale PI)))) PI))
(if (<= (fabs b) 1.7e-91)
(*
180.0
(/ (atan (* 0.5 (/ (* y-scale (* (pow angle 2.0) t_3)) t_4))) PI))
(if (<= (fabs b) 1.5e+111)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale x-scale)
(/
(fma (+ (cos (* t_2 2.0)) 1.0) 0.5 (sqrt (pow (cos t_2) 4.0)))
(sin t_2)))))
PI))
(*
180.0
(/
(atan (* -0.5 (/ (* y-scale (+ 1.0 (pow t_1 2.0))) t_4)))
PI)))))))double code(double a, double b, 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 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_3 = sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0));
double t_4 = x_45_scale * (t_1 * sin(t_0));
double tmp;
if (fabs(b) <= 1.55e-212) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * t_3)) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 1.7e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * (pow(angle, 2.0) * t_3)) / t_4))) / ((double) M_PI));
} else if (fabs(b) <= 1.5e+111) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / x_45_scale) * (fma((cos((t_2 * 2.0)) + 1.0), 0.5, sqrt(pow(cos(t_2), 4.0))) / sin(t_2))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (1.0 + pow(t_1, 2.0))) / t_4))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = cos(t_0) t_2 = Float64(Float64(0.005555555555555556 * angle) * pi) t_3 = Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))) t_4 = Float64(x_45_scale * Float64(t_1 * sin(t_0))) tmp = 0.0 if (abs(b) <= 1.55e-212) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * t_3)) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 1.7e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64((angle ^ 2.0) * t_3)) / t_4))) / pi)); elseif (abs(b) <= 1.5e+111) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / x_45_scale) * Float64(fma(Float64(cos(Float64(t_2 * 2.0)) + 1.0), 0.5, sqrt((cos(t_2) ^ 4.0))) / sin(t_2))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(1.0 + (t_1 ^ 2.0))) / t_4))) / pi)); end return tmp end
code[a_, b_, 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[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$3 = N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x$45$scale * N[(t$95$1 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 1.55e-212], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * t$95$3), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.7e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[Power[angle, 2.0], $MachinePrecision] * t$95$3), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.5e+111], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / x$45$scale), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$2 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[N[Cos[t$95$2], $MachinePrecision], 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(1.0 + N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \cos t\_0\\
t_2 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_3 := \sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\\
t_4 := x-scale \cdot \left(t\_1 \cdot \sin t\_0\right)\\
\mathbf{if}\;\left|b\right| \leq 1.55 \cdot 10^{-212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot t\_3\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.7 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left({angle}^{2} \cdot t\_3\right)}{t\_4}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.5 \cdot 10^{+111}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_2 \cdot 2\right) + 1, 0.5, \sqrt{{\cos t\_2}^{4}}\right)}{\sin t\_2}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(1 + {t\_1}^{2}\right)}{t\_4}\right)}{\pi}\\
\end{array}
if b < 1.55000000000000003e-212Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 1.55000000000000003e-212 < b < 1.70000000000000013e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-pow.f64N/A
lower-+.f64N/A
lower-sqrt.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-PI.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-PI.f6432.7
Applied rewrites32.7%
if 1.70000000000000013e-91 < b < 1.5e111Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
if 1.5e111 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI)))
(t_1 (cos t_0))
(t_2
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0))))
(t_3 (* (* 0.005555555555555556 angle) PI))
(t_4 (* x-scale (* t_1 (sin t_0)))))
(if (<= (fabs b) 1.55e-212)
(*
180.0
(/ (atan (* 90.0 (/ (* angle (* y-scale t_2)) (* x-scale PI)))) PI))
(if (<= (fabs b) 1.7e-91)
(*
180.0
(/ (atan (* 0.5 (/ (* y-scale (* (pow angle 2.0) t_2)) t_4))) PI))
(if (<= (fabs b) 2.2e+117)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale (* 1.0 x-scale))
(/
(fma (+ (cos (* t_3 2.0)) 1.0) 0.5 (sqrt (pow 1.0 4.0)))
(sin t_3)))))
PI))
(*
180.0
(/
(atan (* -0.5 (/ (* y-scale (+ 1.0 (pow t_1 2.0))) t_4)))
PI)))))))double code(double a, double b, 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 = sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0));
double t_3 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_4 = x_45_scale * (t_1 * sin(t_0));
double tmp;
if (fabs(b) <= 1.55e-212) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * t_2)) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 1.7e-91) {
tmp = 180.0 * (atan((0.5 * ((y_45_scale * (pow(angle, 2.0) * t_2)) / t_4))) / ((double) M_PI));
} else if (fabs(b) <= 2.2e+117) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (1.0 * x_45_scale)) * (fma((cos((t_3 * 2.0)) + 1.0), 0.5, sqrt(pow(1.0, 4.0))) / sin(t_3))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (1.0 + pow(t_1, 2.0))) / t_4))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) t_1 = cos(t_0) t_2 = Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))) t_3 = Float64(Float64(0.005555555555555556 * angle) * pi) t_4 = Float64(x_45_scale * Float64(t_1 * sin(t_0))) tmp = 0.0 if (abs(b) <= 1.55e-212) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * t_2)) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 1.7e-91) tmp = Float64(180.0 * Float64(atan(Float64(0.5 * Float64(Float64(y_45_scale * Float64((angle ^ 2.0) * t_2)) / t_4))) / pi)); elseif (abs(b) <= 2.2e+117) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(1.0 * x_45_scale)) * Float64(fma(Float64(cos(Float64(t_3 * 2.0)) + 1.0), 0.5, sqrt((1.0 ^ 4.0))) / sin(t_3))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(1.0 + (t_1 ^ 2.0))) / t_4))) / pi)); end return tmp end
code[a_, b_, 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[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$4 = N[(x$45$scale * N[(t$95$1 * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 1.55e-212], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * t$95$2), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.7e-91], N[(180.0 * N[(N[ArcTan[N[(0.5 * N[(N[(y$45$scale * N[(N[Power[angle, 2.0], $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 2.2e+117], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(1.0 * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$3 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[1.0, 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(1.0 + N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_1 := \cos t\_0\\
t_2 := \sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\\
t_3 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_4 := x-scale \cdot \left(t\_1 \cdot \sin t\_0\right)\\
\mathbf{if}\;\left|b\right| \leq 1.55 \cdot 10^{-212}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot t\_2\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.7 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{y-scale \cdot \left({angle}^{2} \cdot t\_2\right)}{t\_4}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 2.2 \cdot 10^{+117}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{1 \cdot x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_3 \cdot 2\right) + 1, 0.5, \sqrt{{1}^{4}}\right)}{\sin t\_3}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(1 + {t\_1}^{2}\right)}{t\_4}\right)}{\pi}\\
\end{array}
if b < 1.55000000000000003e-212Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 1.55000000000000003e-212 < b < 1.70000000000000013e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-pow.f64N/A
lower-+.f64N/A
lower-sqrt.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-PI.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-PI.f6432.7
Applied rewrites32.7%
if 1.70000000000000013e-91 < b < 2.20000000000000014e117Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
Taylor expanded in angle around 0
Applied rewrites45.5%
if 2.20000000000000014e117 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* (* 0.005555555555555556 angle) PI))
(t_1 (* 0.005555555555555556 (* angle PI)))
(t_2 (cos t_1)))
(if (<= (fabs b) 2.2e-91)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 1.5e+111)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale (* 1.0 x-scale))
(/
(fma (+ (cos (* t_0 2.0)) 1.0) 0.5 (sqrt (pow 1.0 4.0)))
(sin t_0)))))
PI))
(*
180.0
(/
(atan
(*
-0.5
(/
(* y-scale (+ 1.0 (pow t_2 2.0)))
(* x-scale (* t_2 (sin t_1))))))
PI))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_1 = 0.005555555555555556 * (angle * ((double) M_PI));
double t_2 = cos(t_1);
double tmp;
if (fabs(b) <= 2.2e-91) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 1.5e+111) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (1.0 * x_45_scale)) * (fma((cos((t_0 * 2.0)) + 1.0), 0.5, sqrt(pow(1.0, 4.0))) / sin(t_0))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * (1.0 + pow(t_2, 2.0))) / (x_45_scale * (t_2 * sin(t_1)))))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(Float64(0.005555555555555556 * angle) * pi) t_1 = Float64(0.005555555555555556 * Float64(angle * pi)) t_2 = cos(t_1) tmp = 0.0 if (abs(b) <= 2.2e-91) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 1.5e+111) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(1.0 * x_45_scale)) * Float64(fma(Float64(cos(Float64(t_0 * 2.0)) + 1.0), 0.5, sqrt((1.0 ^ 4.0))) / sin(t_0))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * Float64(1.0 + (t_2 ^ 2.0))) / Float64(x_45_scale * Float64(t_2 * sin(t_1)))))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Cos[t$95$1], $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 2.2e-91], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.5e+111], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(1.0 * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$0 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[1.0, 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * N[(1.0 + N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * N[(t$95$2 * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
t_0 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_1 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
t_2 := \cos t\_1\\
\mathbf{if}\;\left|b\right| \leq 2.2 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.5 \cdot 10^{+111}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{1 \cdot x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_0 \cdot 2\right) + 1, 0.5, \sqrt{{1}^{4}}\right)}{\sin t\_0}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot \left(1 + {t\_2}^{2}\right)}{x-scale \cdot \left(t\_2 \cdot \sin t\_1\right)}\right)}{\pi}\\
\end{array}
if b < 2.2000000000000001e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 2.2000000000000001e-91 < b < 1.5e111Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
Taylor expanded in angle around 0
Applied rewrites45.5%
if 1.5e111 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* (* 0.005555555555555556 angle) PI))
(t_1 (* 0.005555555555555556 (* angle PI))))
(if (<= (fabs b) 2.2e-91)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(if (<= (fabs b) 1.5e+111)
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale (* 1.0 x-scale))
(/
(fma (+ (cos (* t_0 2.0)) 1.0) 0.5 (sqrt (pow 1.0 4.0)))
(sin t_0)))))
PI))
(*
180.0
(/
(atan
(* -0.5 (/ (* y-scale 2.0) (* x-scale (* (cos t_1) (sin t_1))))))
PI))))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (0.005555555555555556 * angle) * ((double) M_PI);
double t_1 = 0.005555555555555556 * (angle * ((double) M_PI));
double tmp;
if (fabs(b) <= 2.2e-91) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else if (fabs(b) <= 1.5e+111) {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (1.0 * x_45_scale)) * (fma((cos((t_0 * 2.0)) + 1.0), 0.5, sqrt(pow(1.0, 4.0))) / sin(t_0))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * 2.0) / (x_45_scale * (cos(t_1) * sin(t_1)))))) / ((double) M_PI));
}
return tmp;
}
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(Float64(0.005555555555555556 * angle) * pi) t_1 = Float64(0.005555555555555556 * Float64(angle * pi)) tmp = 0.0 if (abs(b) <= 2.2e-91) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); elseif (abs(b) <= 1.5e+111) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(1.0 * x_45_scale)) * Float64(fma(Float64(cos(Float64(t_0 * 2.0)) + 1.0), 0.5, sqrt((1.0 ^ 4.0))) / sin(t_0))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * 2.0) / Float64(x_45_scale * Float64(cos(t_1) * sin(t_1)))))) / pi)); end return tmp end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 2.2e-91], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Abs[b], $MachinePrecision], 1.5e+111], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(1.0 * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[N[(t$95$0 * 2.0), $MachinePrecision]], $MachinePrecision] + 1.0), $MachinePrecision] * 0.5 + N[Sqrt[N[Power[1.0, 4.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * 2.0), $MachinePrecision] / N[(x$45$scale * N[(N[Cos[t$95$1], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
t_0 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
t_1 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
\mathbf{if}\;\left|b\right| \leq 2.2 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{elif}\;\left|b\right| \leq 1.5 \cdot 10^{+111}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{1 \cdot x-scale} \cdot \frac{\mathsf{fma}\left(\cos \left(t\_0 \cdot 2\right) + 1, 0.5, \sqrt{{1}^{4}}\right)}{\sin t\_0}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot 2}{x-scale \cdot \left(\cos t\_1 \cdot \sin t\_1\right)}\right)}{\pi}\\
\end{array}
if b < 2.2000000000000001e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 2.2000000000000001e-91 < b < 1.5e111Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.4%
Taylor expanded in angle around 0
Applied rewrites45.5%
if 1.5e111 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* (* 0.005555555555555556 angle) PI)))
(if (<= (fabs b) 2.2e-91)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(*
180.0
(/
(atan (* -0.5 (* (/ y-scale (* (cos t_0) x-scale)) (/ 2.0 (sin t_0)))))
PI)))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (0.005555555555555556 * angle) * ((double) M_PI);
double tmp;
if (fabs(b) <= 2.2e-91) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (cos(t_0) * x_45_scale)) * (2.0 / sin(t_0))))) / ((double) M_PI));
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = (0.005555555555555556 * angle) * Math.PI;
double tmp;
if (Math.abs(b) <= 2.2e-91) {
tmp = 180.0 * (Math.atan((90.0 * ((angle * (y_45_scale * (Math.sqrt((9.525986892242036e-10 * Math.pow(Math.PI, 4.0))) + (3.08641975308642e-5 * Math.pow(Math.PI, 2.0))))) / (x_45_scale * Math.PI)))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * ((y_45_scale / (Math.cos(t_0) * x_45_scale)) * (2.0 / Math.sin(t_0))))) / Math.PI);
}
return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale): t_0 = (0.005555555555555556 * angle) * math.pi tmp = 0 if math.fabs(b) <= 2.2e-91: tmp = 180.0 * (math.atan((90.0 * ((angle * (y_45_scale * (math.sqrt((9.525986892242036e-10 * math.pow(math.pi, 4.0))) + (3.08641975308642e-5 * math.pow(math.pi, 2.0))))) / (x_45_scale * math.pi)))) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * ((y_45_scale / (math.cos(t_0) * x_45_scale)) * (2.0 / math.sin(t_0))))) / math.pi) return tmp
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(Float64(0.005555555555555556 * angle) * pi) tmp = 0.0 if (abs(b) <= 2.2e-91) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(cos(t_0) * x_45_scale)) * Float64(2.0 / sin(t_0))))) / pi)); end return tmp end
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale) t_0 = (0.005555555555555556 * angle) * pi; tmp = 0.0; if (abs(b) <= 2.2e-91) tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * (pi ^ 4.0))) + (3.08641975308642e-5 * (pi ^ 2.0))))) / (x_45_scale * pi)))) / pi); else tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (cos(t_0) * x_45_scale)) * (2.0 / sin(t_0))))) / pi); end tmp_2 = tmp; end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 2.2e-91], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(N[Cos[t$95$0], $MachinePrecision] * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(2.0 / N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_0 := \left(0.005555555555555556 \cdot angle\right) \cdot \pi\\
\mathbf{if}\;\left|b\right| \leq 2.2 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{\cos t\_0 \cdot x-scale} \cdot \frac{2}{\sin t\_0}\right)\right)}{\pi}\\
\end{array}
if b < 2.2000000000000001e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 2.2000000000000001e-91 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
Applied rewrites45.3%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* 0.005555555555555556 (* angle PI))))
(if (<= (fabs b) 2.2e-91)
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))
(*
180.0
(/
(atan (* -0.5 (/ (* y-scale 2.0) (* x-scale (* (cos t_0) (sin t_0))))))
PI)))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * ((double) M_PI));
double tmp;
if (fabs(b) <= 2.2e-91) {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale * 2.0) / (x_45_scale * (cos(t_0) * sin(t_0)))))) / ((double) M_PI));
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = 0.005555555555555556 * (angle * Math.PI);
double tmp;
if (Math.abs(b) <= 2.2e-91) {
tmp = 180.0 * (Math.atan((90.0 * ((angle * (y_45_scale * (Math.sqrt((9.525986892242036e-10 * Math.pow(Math.PI, 4.0))) + (3.08641975308642e-5 * Math.pow(Math.PI, 2.0))))) / (x_45_scale * Math.PI)))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * ((y_45_scale * 2.0) / (x_45_scale * (Math.cos(t_0) * Math.sin(t_0)))))) / Math.PI);
}
return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale): t_0 = 0.005555555555555556 * (angle * math.pi) tmp = 0 if math.fabs(b) <= 2.2e-91: tmp = 180.0 * (math.atan((90.0 * ((angle * (y_45_scale * (math.sqrt((9.525986892242036e-10 * math.pow(math.pi, 4.0))) + (3.08641975308642e-5 * math.pow(math.pi, 2.0))))) / (x_45_scale * math.pi)))) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * ((y_45_scale * 2.0) / (x_45_scale * (math.cos(t_0) * math.sin(t_0)))))) / math.pi) return tmp
function code(a, b, angle, x_45_scale, y_45_scale) t_0 = Float64(0.005555555555555556 * Float64(angle * pi)) tmp = 0.0 if (abs(b) <= 2.2e-91) tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale * 2.0) / Float64(x_45_scale * Float64(cos(t_0) * sin(t_0)))))) / pi)); end return tmp end
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale) t_0 = 0.005555555555555556 * (angle * pi); tmp = 0.0; if (abs(b) <= 2.2e-91) tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * (pi ^ 4.0))) + (3.08641975308642e-5 * (pi ^ 2.0))))) / (x_45_scale * pi)))) / pi); else tmp = 180.0 * (atan((-0.5 * ((y_45_scale * 2.0) / (x_45_scale * (cos(t_0) * sin(t_0)))))) / pi); end tmp_2 = tmp; end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Abs[b], $MachinePrecision], 2.2e-91], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale * 2.0), $MachinePrecision] / N[(x$45$scale * N[(N[Cos[t$95$0], $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
\mathbf{if}\;\left|b\right| \leq 2.2 \cdot 10^{-91}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{y-scale \cdot 2}{x-scale \cdot \left(\cos t\_0 \cdot \sin t\_0\right)}\right)}{\pi}\\
\end{array}
if b < 2.2000000000000001e-91Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
if 2.2000000000000001e-91 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
Applied rewrites43.1%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(if (<= (fabs a) 2.45e-64)
(*
180.0
(/ (atan (* -0.5 (* 360.0 (/ y-scale (* angle (* x-scale PI)))))) PI))
(*
180.0
(/
(atan
(*
90.0
(/
(*
angle
(*
y-scale
(+
(sqrt (* 9.525986892242036e-10 (pow PI 4.0)))
(* 3.08641975308642e-5 (pow PI 2.0)))))
(* x-scale PI))))
PI))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (fabs(a) <= 2.45e-64) {
tmp = 180.0 * (atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * ((double) M_PI))))))) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * pow(((double) M_PI), 4.0))) + (3.08641975308642e-5 * pow(((double) M_PI), 2.0))))) / (x_45_scale * ((double) M_PI))))) / ((double) M_PI));
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (Math.abs(a) <= 2.45e-64) {
tmp = 180.0 * (Math.atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * Math.PI)))))) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((90.0 * ((angle * (y_45_scale * (Math.sqrt((9.525986892242036e-10 * Math.pow(Math.PI, 4.0))) + (3.08641975308642e-5 * Math.pow(Math.PI, 2.0))))) / (x_45_scale * Math.PI)))) / Math.PI);
}
return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale): tmp = 0 if math.fabs(a) <= 2.45e-64: tmp = 180.0 * (math.atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * math.pi)))))) / math.pi) else: tmp = 180.0 * (math.atan((90.0 * ((angle * (y_45_scale * (math.sqrt((9.525986892242036e-10 * math.pow(math.pi, 4.0))) + (3.08641975308642e-5 * math.pow(math.pi, 2.0))))) / (x_45_scale * math.pi)))) / math.pi) return tmp
function code(a, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (abs(a) <= 2.45e-64) tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(360.0 * Float64(y_45_scale / Float64(angle * Float64(x_45_scale * pi)))))) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(90.0 * Float64(Float64(angle * Float64(y_45_scale * Float64(sqrt(Float64(9.525986892242036e-10 * (pi ^ 4.0))) + Float64(3.08641975308642e-5 * (pi ^ 2.0))))) / Float64(x_45_scale * pi)))) / pi)); end return tmp end
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (abs(a) <= 2.45e-64) tmp = 180.0 * (atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * pi)))))) / pi); else tmp = 180.0 * (atan((90.0 * ((angle * (y_45_scale * (sqrt((9.525986892242036e-10 * (pi ^ 4.0))) + (3.08641975308642e-5 * (pi ^ 2.0))))) / (x_45_scale * pi)))) / pi); end tmp_2 = tmp; end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[N[Abs[a], $MachinePrecision], 2.45e-64], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(360.0 * N[(y$45$scale / N[(angle * N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(90.0 * N[(N[(angle * N[(y$45$scale * N[(N[Sqrt[N[(9.525986892242036e-10 * N[Power[Pi, 4.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(3.08641975308642e-5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;\left|a\right| \leq 2.45 \cdot 10^{-64}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(360 \cdot \frac{y-scale}{angle \cdot \left(x-scale \cdot \pi\right)}\right)\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(90 \cdot \frac{angle \cdot \left(y-scale \cdot \left(\sqrt{9.525986892242036 \cdot 10^{-10} \cdot {\pi}^{4}} + 3.08641975308642 \cdot 10^{-5} \cdot {\pi}^{2}\right)\right)}{x-scale \cdot \pi}\right)}{\pi}\\
\end{array}
if a < 2.4500000000000001e-64Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f6437.3
Applied rewrites37.3%
if 2.4500000000000001e-64 < a Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in a around inf
lower-*.f64N/A
Applied rewrites37.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites40.7%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(if (<= (fabs b) 1.05e-138)
(* 180.0 (/ (atan 0.0) PI))
(*
180.0
(/
(atan
(*
-0.5
(*
(/ y-scale (* (cos (* (* 0.005555555555555556 angle) PI)) x-scale))
(/ 360.0 (* angle PI)))))
PI))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (fabs(b) <= 1.05e-138) {
tmp = 180.0 * (atan(0.0) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (cos(((0.005555555555555556 * angle) * ((double) M_PI))) * x_45_scale)) * (360.0 / (angle * ((double) M_PI)))))) / ((double) M_PI));
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (Math.abs(b) <= 1.05e-138) {
tmp = 180.0 * (Math.atan(0.0) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * ((y_45_scale / (Math.cos(((0.005555555555555556 * angle) * Math.PI)) * x_45_scale)) * (360.0 / (angle * Math.PI))))) / Math.PI);
}
return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale): tmp = 0 if math.fabs(b) <= 1.05e-138: tmp = 180.0 * (math.atan(0.0) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * ((y_45_scale / (math.cos(((0.005555555555555556 * angle) * math.pi)) * x_45_scale)) * (360.0 / (angle * math.pi))))) / math.pi) return tmp
function code(a, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (abs(b) <= 1.05e-138) tmp = Float64(180.0 * Float64(atan(0.0) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(Float64(y_45_scale / Float64(cos(Float64(Float64(0.005555555555555556 * angle) * pi)) * x_45_scale)) * Float64(360.0 / Float64(angle * pi))))) / pi)); end return tmp end
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (abs(b) <= 1.05e-138) tmp = 180.0 * (atan(0.0) / pi); else tmp = 180.0 * (atan((-0.5 * ((y_45_scale / (cos(((0.005555555555555556 * angle) * pi)) * x_45_scale)) * (360.0 / (angle * pi))))) / pi); end tmp_2 = tmp; end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[N[Abs[b], $MachinePrecision], 1.05e-138], N[(180.0 * N[(N[ArcTan[0.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(N[(y$45$scale / N[(N[Cos[N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision] * x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(360.0 / N[(angle * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;\left|b\right| \leq 1.05 \cdot 10^{-138}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} 0}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(\frac{y-scale}{\cos \left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right) \cdot x-scale} \cdot \frac{360}{angle \cdot \pi}\right)\right)}{\pi}\\
\end{array}
if b < 1.04999999999999993e-138Initial program 13.7%
Taylor expanded in angle around 0
Applied rewrites11.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites6.6%
Taylor expanded in y-scale around 0
Applied rewrites19.1%
if 1.04999999999999993e-138 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Applied rewrites45.7%
Taylor expanded in angle around 0
lower-/.f64N/A
lower-*.f64N/A
lower-PI.f6439.2
Applied rewrites39.2%
(FPCore (a b angle x-scale y-scale)
:precision binary64
(if (<= (fabs b) 1.85e-131)
(* 180.0 (/ (atan 0.0) PI))
(*
180.0
(/ (atan (* -0.5 (* 360.0 (/ y-scale (* angle (* x-scale PI)))))) PI))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (fabs(b) <= 1.85e-131) {
tmp = 180.0 * (atan(0.0) / ((double) M_PI));
} else {
tmp = 180.0 * (atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * ((double) M_PI))))))) / ((double) M_PI));
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double tmp;
if (Math.abs(b) <= 1.85e-131) {
tmp = 180.0 * (Math.atan(0.0) / Math.PI);
} else {
tmp = 180.0 * (Math.atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * Math.PI)))))) / Math.PI);
}
return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale): tmp = 0 if math.fabs(b) <= 1.85e-131: tmp = 180.0 * (math.atan(0.0) / math.pi) else: tmp = 180.0 * (math.atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * math.pi)))))) / math.pi) return tmp
function code(a, b, angle, x_45_scale, y_45_scale) tmp = 0.0 if (abs(b) <= 1.85e-131) tmp = Float64(180.0 * Float64(atan(0.0) / pi)); else tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(360.0 * Float64(y_45_scale / Float64(angle * Float64(x_45_scale * pi)))))) / pi)); end return tmp end
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale) tmp = 0.0; if (abs(b) <= 1.85e-131) tmp = 180.0 * (atan(0.0) / pi); else tmp = 180.0 * (atan((-0.5 * (360.0 * (y_45_scale / (angle * (x_45_scale * pi)))))) / pi); end tmp_2 = tmp; end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := If[LessEqual[N[Abs[b], $MachinePrecision], 1.85e-131], N[(180.0 * N[(N[ArcTan[0.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(360.0 * N[(y$45$scale / N[(angle * N[(x$45$scale * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;\left|b\right| \leq 1.85 \cdot 10^{-131}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} 0}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \left(360 \cdot \frac{y-scale}{angle \cdot \left(x-scale \cdot \pi\right)}\right)\right)}{\pi}\\
\end{array}
if b < 1.8500000000000001e-131Initial program 13.7%
Taylor expanded in angle around 0
Applied rewrites11.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites6.6%
Taylor expanded in y-scale around 0
Applied rewrites19.1%
if 1.8500000000000001e-131 < b Initial program 13.7%
Taylor expanded in x-scale around 0
Applied rewrites23.8%
Taylor expanded in b around inf
lower-/.f64N/A
Applied rewrites43.4%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f6437.3
Applied rewrites37.3%
(FPCore (a b angle x-scale y-scale) :precision binary64 (* 180.0 (/ (atan 0.0) PI)))
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (atan(0.0) / ((double) M_PI));
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
return 180.0 * (Math.atan(0.0) / Math.PI);
}
def code(a, b, angle, x_45_scale, y_45_scale): return 180.0 * (math.atan(0.0) / math.pi)
function code(a, b, angle, x_45_scale, y_45_scale) return Float64(180.0 * Float64(atan(0.0) / pi)) end
function tmp = code(a, b, angle, x_45_scale, y_45_scale) tmp = 180.0 * (atan(0.0) / pi); end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := N[(180.0 * N[(N[ArcTan[0.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
180 \cdot \frac{\tan^{-1} 0}{\pi}
Initial program 13.7%
Taylor expanded in angle around 0
Applied rewrites11.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites6.6%
Taylor expanded in y-scale around 0
Applied rewrites19.1%
herbie shell --seed 2025171
(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)))