
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* PI (/ angle 180.0)))) (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin t_0)) (cos t_0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle / 180.0);
return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(t_0)) * cos(t_0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle / 180.0);
return ((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(t_0)) * Math.cos(t_0);
}
def code(a, b, angle): t_0 = math.pi * (angle / 180.0) return ((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(t_0)) * math.cos(t_0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle / 180.0)) return Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0)) end
function tmp = code(a, b, angle) t_0 = pi * (angle / 180.0); tmp = ((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]}, N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t\_0\right) \cdot \cos t\_0
\end{array}
\end{array}
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* PI (/ angle 180.0)))) (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin t_0)) (cos t_0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle / 180.0);
return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(t_0)) * cos(t_0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle / 180.0);
return ((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(t_0)) * Math.cos(t_0);
}
def code(a, b, angle): t_0 = math.pi * (angle / 180.0) return ((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(t_0)) * math.cos(t_0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle / 180.0)) return Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0)) end
function tmp = code(a, b, angle) t_0 = pi * (angle / 180.0); tmp = ((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]}, N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t\_0\right) \cdot \cos t\_0
\end{array}
\end{array}
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= a_m 2e+241)
(*
(* (+ a_m b) (* (- b a_m) (* (sin (* (/ 1.0 (/ 180.0 angle)) PI)) 2.0)))
(sin (fma (fabs (* PI angle)) 0.005555555555555556 (* 0.5 PI))))
(*
(* (- b a_m) (+ b a_m))
(sin (/ (+ PI PI) (/ 1.0 (* 0.005555555555555556 angle)))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (a_m <= 2e+241) {
tmp = ((a_m + b) * ((b - a_m) * (sin(((1.0 / (180.0 / angle)) * ((double) M_PI))) * 2.0))) * sin(fma(fabs((((double) M_PI) * angle)), 0.005555555555555556, (0.5 * ((double) M_PI))));
} else {
tmp = ((b - a_m) * (b + a_m)) * sin(((((double) M_PI) + ((double) M_PI)) / (1.0 / (0.005555555555555556 * angle))));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (a_m <= 2e+241) tmp = Float64(Float64(Float64(a_m + b) * Float64(Float64(b - a_m) * Float64(sin(Float64(Float64(1.0 / Float64(180.0 / angle)) * pi)) * 2.0))) * sin(fma(abs(Float64(pi * angle)), 0.005555555555555556, Float64(0.5 * pi)))); else tmp = Float64(Float64(Float64(b - a_m) * Float64(b + a_m)) * sin(Float64(Float64(pi + pi) / Float64(1.0 / Float64(0.005555555555555556 * angle))))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[a$95$m, 2e+241], N[(N[(N[(a$95$m + b), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(N[(1.0 / N[(180.0 / angle), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[Abs[N[(Pi * angle), $MachinePrecision]], $MachinePrecision] * 0.005555555555555556 + N[(0.5 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(Pi + Pi), $MachinePrecision] / N[(1.0 / N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;a\_m \leq 2 \cdot 10^{+241}:\\
\;\;\;\;\left(\left(a\_m + b\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\frac{1}{\frac{180}{angle}} \cdot \pi\right) \cdot 2\right)\right)\right) \cdot \sin \left(\mathsf{fma}\left(\left|\pi \cdot angle\right|, 0.005555555555555556, 0.5 \cdot \pi\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right) \cdot \sin \left(\frac{\pi + \pi}{\frac{1}{0.005555555555555556 \cdot angle}}\right)\\
\end{array}
\end{array}
if a < 2.0000000000000001e241Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
lift-*.f64N/A
metadata-evalN/A
associate-/r/N/A
lift-/.f64N/A
lift-/.f6467.1
Applied rewrites67.1%
Applied rewrites66.6%
if 2.0000000000000001e241 < a Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
metadata-evalN/A
distribute-lft-outN/A
metadata-evalN/A
mult-flipN/A
lift-*.f64N/A
associate-*r/N/A
lift-PI.f64N/A
lift-PI.f64N/A
lift-/.f64N/A
lift-*.f64N/A
metadata-evalN/A
mult-flipN/A
lift-*.f64N/A
associate-*r/N/A
lift-PI.f64N/A
lift-PI.f64N/A
lift-/.f64N/A
lift-*.f64N/A
Applied rewrites57.3%
lift-/.f64N/A
frac-2negN/A
lift-neg.f64N/A
div-flipN/A
lower-special-/.f32N/A
lower-special-/.f32N/A
lower-/.f32N/A
lift-neg.f64N/A
frac-2negN/A
lift-/.f6415.2
lower-special-/.f32N/A
lower-special-/.f6457.2
lift-/.f64N/A
div-flip-revN/A
associate-/r/N/A
metadata-evalN/A
lift-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= angle 2.05e+54)
(*
(*
(+ a_m b)
(* (- b a_m) (* (sin (* (* 0.005555555555555556 angle) PI)) 2.0)))
(sin (* PI (fma -0.005555555555555556 angle 0.5))))
(if (<= angle 1.25e+198)
(*
0.011111111111111112
(* angle (* PI (fma (- a_m) (+ b a_m) (* b (+ b a_m))))))
(*
(* (- b a_m) (+ b a_m))
(sin (/ (+ PI PI) (/ 1.0 (* 0.005555555555555556 angle))))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 2.05e+54) {
tmp = ((a_m + b) * ((b - a_m) * (sin(((0.005555555555555556 * angle) * ((double) M_PI))) * 2.0))) * sin((((double) M_PI) * fma(-0.005555555555555556, angle, 0.5)));
} else if (angle <= 1.25e+198) {
tmp = 0.011111111111111112 * (angle * (((double) M_PI) * fma(-a_m, (b + a_m), (b * (b + a_m)))));
} else {
tmp = ((b - a_m) * (b + a_m)) * sin(((((double) M_PI) + ((double) M_PI)) / (1.0 / (0.005555555555555556 * angle))));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 2.05e+54) tmp = Float64(Float64(Float64(a_m + b) * Float64(Float64(b - a_m) * Float64(sin(Float64(Float64(0.005555555555555556 * angle) * pi)) * 2.0))) * sin(Float64(pi * fma(-0.005555555555555556, angle, 0.5)))); elseif (angle <= 1.25e+198) tmp = Float64(0.011111111111111112 * Float64(angle * Float64(pi * fma(Float64(-a_m), Float64(b + a_m), Float64(b * Float64(b + a_m)))))); else tmp = Float64(Float64(Float64(b - a_m) * Float64(b + a_m)) * sin(Float64(Float64(pi + pi) / Float64(1.0 / Float64(0.005555555555555556 * angle))))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 2.05e+54], N[(N[(N[(a$95$m + b), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(Pi * N[(-0.005555555555555556 * angle + 0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 1.25e+198], N[(0.011111111111111112 * N[(angle * N[(Pi * N[((-a$95$m) * N[(b + a$95$m), $MachinePrecision] + N[(b * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(Pi + Pi), $MachinePrecision] / N[(1.0 / N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 2.05 \cdot 10^{+54}:\\
\;\;\;\;\left(\left(a\_m + b\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right) \cdot 2\right)\right)\right) \cdot \sin \left(\pi \cdot \mathsf{fma}\left(-0.005555555555555556, angle, 0.5\right)\right)\\
\mathbf{elif}\;angle \leq 1.25 \cdot 10^{+198}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \mathsf{fma}\left(-a\_m, b + a\_m, b \cdot \left(b + a\_m\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right) \cdot \sin \left(\frac{\pi + \pi}{\frac{1}{0.005555555555555556 \cdot angle}}\right)\\
\end{array}
\end{array}
if angle < 2.04999999999999984e54Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
lift-cos.f64N/A
cos-neg-revN/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-/.f64N/A
div-flip-revN/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
distribute-neg-frac2N/A
mult-flipN/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
distribute-lft-outN/A
lower-*.f64N/A
Applied rewrites67.0%
if 2.04999999999999984e54 < angle < 1.25000000000000012e198Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
lift--.f64N/A
sub-flipN/A
lift-neg.f64N/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
lower-*.f6452.9
lift-+.f64N/A
+-commutativeN/A
lower-+.f6452.9
Applied rewrites52.9%
if 1.25000000000000012e198 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
metadata-evalN/A
distribute-lft-outN/A
metadata-evalN/A
mult-flipN/A
lift-*.f64N/A
associate-*r/N/A
lift-PI.f64N/A
lift-PI.f64N/A
lift-/.f64N/A
lift-*.f64N/A
metadata-evalN/A
mult-flipN/A
lift-*.f64N/A
associate-*r/N/A
lift-PI.f64N/A
lift-PI.f64N/A
lift-/.f64N/A
lift-*.f64N/A
Applied rewrites57.3%
lift-/.f64N/A
frac-2negN/A
lift-neg.f64N/A
div-flipN/A
lower-special-/.f32N/A
lower-special-/.f32N/A
lower-/.f32N/A
lift-neg.f64N/A
frac-2negN/A
lift-/.f6415.2
lower-special-/.f32N/A
lower-special-/.f6457.2
lift-/.f64N/A
div-flip-revN/A
associate-/r/N/A
metadata-evalN/A
lift-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= angle 3.9e+63)
(* (+ a_m b) (* (- b a_m) (sin (* (* angle PI) 0.011111111111111112))))
(if (<= angle 1.25e+198)
(*
0.011111111111111112
(* (* angle (fma (- a_m) (+ b a_m) (* b (+ b a_m)))) PI))
(*
(* (- b a_m) (+ b a_m))
(sin (/ (+ PI PI) (/ 1.0 (* 0.005555555555555556 angle))))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 3.9e+63) {
tmp = (a_m + b) * ((b - a_m) * sin(((angle * ((double) M_PI)) * 0.011111111111111112)));
} else if (angle <= 1.25e+198) {
tmp = 0.011111111111111112 * ((angle * fma(-a_m, (b + a_m), (b * (b + a_m)))) * ((double) M_PI));
} else {
tmp = ((b - a_m) * (b + a_m)) * sin(((((double) M_PI) + ((double) M_PI)) / (1.0 / (0.005555555555555556 * angle))));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 3.9e+63) tmp = Float64(Float64(a_m + b) * Float64(Float64(b - a_m) * sin(Float64(Float64(angle * pi) * 0.011111111111111112)))); elseif (angle <= 1.25e+198) tmp = Float64(0.011111111111111112 * Float64(Float64(angle * fma(Float64(-a_m), Float64(b + a_m), Float64(b * Float64(b + a_m)))) * pi)); else tmp = Float64(Float64(Float64(b - a_m) * Float64(b + a_m)) * sin(Float64(Float64(pi + pi) / Float64(1.0 / Float64(0.005555555555555556 * angle))))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 3.9e+63], N[(N[(a$95$m + b), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[Sin[N[(N[(angle * Pi), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 1.25e+198], N[(0.011111111111111112 * N[(N[(angle * N[((-a$95$m) * N[(b + a$95$m), $MachinePrecision] + N[(b * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(Pi + Pi), $MachinePrecision] / N[(1.0 / N[(0.005555555555555556 * angle), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 3.9 \cdot 10^{+63}:\\
\;\;\;\;\left(a\_m + b\right) \cdot \left(\left(b - a\_m\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.011111111111111112\right)\right)\\
\mathbf{elif}\;angle \leq 1.25 \cdot 10^{+198}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \mathsf{fma}\left(-a\_m, b + a\_m, b \cdot \left(b + a\_m\right)\right)\right) \cdot \pi\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right) \cdot \sin \left(\frac{\pi + \pi}{\frac{1}{0.005555555555555556 \cdot angle}}\right)\\
\end{array}
\end{array}
if angle < 3.9e63Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-sin.f64N/A
lift-cos.f64N/A
2-sinN/A
count-2N/A
Applied rewrites67.1%
if 3.9e63 < angle < 1.25000000000000012e198Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
sub-flipN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6452.9
lift-+.f64N/A
+-commutativeN/A
lift-+.f6452.9
Applied rewrites52.9%
if 1.25000000000000012e198 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
metadata-evalN/A
distribute-lft-outN/A
metadata-evalN/A
mult-flipN/A
lift-*.f64N/A
associate-*r/N/A
lift-PI.f64N/A
lift-PI.f64N/A
lift-/.f64N/A
lift-*.f64N/A
metadata-evalN/A
mult-flipN/A
lift-*.f64N/A
associate-*r/N/A
lift-PI.f64N/A
lift-PI.f64N/A
lift-/.f64N/A
lift-*.f64N/A
Applied rewrites57.3%
lift-/.f64N/A
frac-2negN/A
lift-neg.f64N/A
div-flipN/A
lower-special-/.f32N/A
lower-special-/.f32N/A
lower-/.f32N/A
lift-neg.f64N/A
frac-2negN/A
lift-/.f6415.2
lower-special-/.f32N/A
lower-special-/.f6457.2
lift-/.f64N/A
div-flip-revN/A
associate-/r/N/A
metadata-evalN/A
lift-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(let* ((t_0 (* (- b a_m) (+ b a_m))))
(if (<= angle 2.9e+56)
(* (+ a_m b) (* (- b a_m) (sin (* (* angle PI) 0.011111111111111112))))
(if (<= angle 6.4e+181)
(* 0.011111111111111112 (* angle (log (exp (* t_0 PI)))))
(* t_0 (sin (* (* 0.011111111111111112 PI) angle)))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double t_0 = (b - a_m) * (b + a_m);
double tmp;
if (angle <= 2.9e+56) {
tmp = (a_m + b) * ((b - a_m) * sin(((angle * ((double) M_PI)) * 0.011111111111111112)));
} else if (angle <= 6.4e+181) {
tmp = 0.011111111111111112 * (angle * log(exp((t_0 * ((double) M_PI)))));
} else {
tmp = t_0 * sin(((0.011111111111111112 * ((double) M_PI)) * angle));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double t_0 = (b - a_m) * (b + a_m);
double tmp;
if (angle <= 2.9e+56) {
tmp = (a_m + b) * ((b - a_m) * Math.sin(((angle * Math.PI) * 0.011111111111111112)));
} else if (angle <= 6.4e+181) {
tmp = 0.011111111111111112 * (angle * Math.log(Math.exp((t_0 * Math.PI))));
} else {
tmp = t_0 * Math.sin(((0.011111111111111112 * Math.PI) * angle));
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): t_0 = (b - a_m) * (b + a_m) tmp = 0 if angle <= 2.9e+56: tmp = (a_m + b) * ((b - a_m) * math.sin(((angle * math.pi) * 0.011111111111111112))) elif angle <= 6.4e+181: tmp = 0.011111111111111112 * (angle * math.log(math.exp((t_0 * math.pi)))) else: tmp = t_0 * math.sin(((0.011111111111111112 * math.pi) * angle)) return tmp
a_m = abs(a) function code(a_m, b, angle) t_0 = Float64(Float64(b - a_m) * Float64(b + a_m)) tmp = 0.0 if (angle <= 2.9e+56) tmp = Float64(Float64(a_m + b) * Float64(Float64(b - a_m) * sin(Float64(Float64(angle * pi) * 0.011111111111111112)))); elseif (angle <= 6.4e+181) tmp = Float64(0.011111111111111112 * Float64(angle * log(exp(Float64(t_0 * pi))))); else tmp = Float64(t_0 * sin(Float64(Float64(0.011111111111111112 * pi) * angle))); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) t_0 = (b - a_m) * (b + a_m); tmp = 0.0; if (angle <= 2.9e+56) tmp = (a_m + b) * ((b - a_m) * sin(((angle * pi) * 0.011111111111111112))); elseif (angle <= 6.4e+181) tmp = 0.011111111111111112 * (angle * log(exp((t_0 * pi)))); else tmp = t_0 * sin(((0.011111111111111112 * pi) * angle)); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_] := Block[{t$95$0 = N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[angle, 2.9e+56], N[(N[(a$95$m + b), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[Sin[N[(N[(angle * Pi), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 6.4e+181], N[(0.011111111111111112 * N[(angle * N[Log[N[Exp[N[(t$95$0 * Pi), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Sin[N[(N[(0.011111111111111112 * Pi), $MachinePrecision] * angle), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := \left(b - a\_m\right) \cdot \left(b + a\_m\right)\\
\mathbf{if}\;angle \leq 2.9 \cdot 10^{+56}:\\
\;\;\;\;\left(a\_m + b\right) \cdot \left(\left(b - a\_m\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.011111111111111112\right)\right)\\
\mathbf{elif}\;angle \leq 6.4 \cdot 10^{+181}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \log \left(e^{t\_0 \cdot \pi}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left(\left(0.011111111111111112 \cdot \pi\right) \cdot angle\right)\\
\end{array}
\end{array}
if angle < 2.90000000000000007e56Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-sin.f64N/A
lift-cos.f64N/A
2-sinN/A
count-2N/A
Applied rewrites67.1%
if 2.90000000000000007e56 < angle < 6.4000000000000001e181Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
*-commutativeN/A
lift-PI.f64N/A
add-log-expN/A
log-pow-revN/A
lower-log.f64N/A
lift-PI.f64N/A
pow-expN/A
lift-*.f64N/A
lower-exp.f6431.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6431.4
Applied rewrites34.8%
if 6.4000000000000001e181 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(let* ((t_0 (* (- b a_m) (+ b a_m))))
(if (<= angle 2.9e+56)
(* (- b a_m) (* (sin (* (* PI angle) 0.011111111111111112)) (+ b a_m)))
(if (<= angle 6.4e+181)
(* 0.011111111111111112 (* angle (log (exp (* t_0 PI)))))
(* t_0 (sin (* (* 0.011111111111111112 PI) angle)))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double t_0 = (b - a_m) * (b + a_m);
double tmp;
if (angle <= 2.9e+56) {
tmp = (b - a_m) * (sin(((((double) M_PI) * angle) * 0.011111111111111112)) * (b + a_m));
} else if (angle <= 6.4e+181) {
tmp = 0.011111111111111112 * (angle * log(exp((t_0 * ((double) M_PI)))));
} else {
tmp = t_0 * sin(((0.011111111111111112 * ((double) M_PI)) * angle));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double t_0 = (b - a_m) * (b + a_m);
double tmp;
if (angle <= 2.9e+56) {
tmp = (b - a_m) * (Math.sin(((Math.PI * angle) * 0.011111111111111112)) * (b + a_m));
} else if (angle <= 6.4e+181) {
tmp = 0.011111111111111112 * (angle * Math.log(Math.exp((t_0 * Math.PI))));
} else {
tmp = t_0 * Math.sin(((0.011111111111111112 * Math.PI) * angle));
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): t_0 = (b - a_m) * (b + a_m) tmp = 0 if angle <= 2.9e+56: tmp = (b - a_m) * (math.sin(((math.pi * angle) * 0.011111111111111112)) * (b + a_m)) elif angle <= 6.4e+181: tmp = 0.011111111111111112 * (angle * math.log(math.exp((t_0 * math.pi)))) else: tmp = t_0 * math.sin(((0.011111111111111112 * math.pi) * angle)) return tmp
a_m = abs(a) function code(a_m, b, angle) t_0 = Float64(Float64(b - a_m) * Float64(b + a_m)) tmp = 0.0 if (angle <= 2.9e+56) tmp = Float64(Float64(b - a_m) * Float64(sin(Float64(Float64(pi * angle) * 0.011111111111111112)) * Float64(b + a_m))); elseif (angle <= 6.4e+181) tmp = Float64(0.011111111111111112 * Float64(angle * log(exp(Float64(t_0 * pi))))); else tmp = Float64(t_0 * sin(Float64(Float64(0.011111111111111112 * pi) * angle))); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) t_0 = (b - a_m) * (b + a_m); tmp = 0.0; if (angle <= 2.9e+56) tmp = (b - a_m) * (sin(((pi * angle) * 0.011111111111111112)) * (b + a_m)); elseif (angle <= 6.4e+181) tmp = 0.011111111111111112 * (angle * log(exp((t_0 * pi)))); else tmp = t_0 * sin(((0.011111111111111112 * pi) * angle)); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_] := Block[{t$95$0 = N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[angle, 2.9e+56], N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(N[(Pi * angle), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]], $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 6.4e+181], N[(0.011111111111111112 * N[(angle * N[Log[N[Exp[N[(t$95$0 * Pi), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Sin[N[(N[(0.011111111111111112 * Pi), $MachinePrecision] * angle), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := \left(b - a\_m\right) \cdot \left(b + a\_m\right)\\
\mathbf{if}\;angle \leq 2.9 \cdot 10^{+56}:\\
\;\;\;\;\left(b - a\_m\right) \cdot \left(\sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right) \cdot \left(b + a\_m\right)\right)\\
\mathbf{elif}\;angle \leq 6.4 \cdot 10^{+181}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \log \left(e^{t\_0 \cdot \pi}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left(\left(0.011111111111111112 \cdot \pi\right) \cdot angle\right)\\
\end{array}
\end{array}
if angle < 2.90000000000000007e56Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
lift-*.f64N/A
metadata-evalN/A
associate-/r/N/A
lift-/.f64N/A
lift-/.f6467.1
Applied rewrites67.1%
Applied rewrites67.1%
if 2.90000000000000007e56 < angle < 6.4000000000000001e181Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
*-commutativeN/A
lift-PI.f64N/A
add-log-expN/A
log-pow-revN/A
lower-log.f64N/A
lift-PI.f64N/A
pow-expN/A
lift-*.f64N/A
lower-exp.f6431.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6431.4
Applied rewrites34.8%
if 6.4000000000000001e181 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(let* ((t_0 (* (- b a_m) (+ b a_m))))
(if (<= angle 1.15e-5)
(* (* (* angle (+ b a_m)) (- b a_m)) (* PI 0.011111111111111112))
(if (<= angle 2.9e+56)
(* (* (- b a_m) (+ a_m b)) (sin (* (* angle PI) 0.011111111111111112)))
(if (<= angle 6.4e+181)
(* 0.011111111111111112 (* angle (log (exp (* t_0 PI)))))
(* t_0 (sin (* (* 0.011111111111111112 PI) angle))))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double t_0 = (b - a_m) * (b + a_m);
double tmp;
if (angle <= 1.15e-5) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (((double) M_PI) * 0.011111111111111112);
} else if (angle <= 2.9e+56) {
tmp = ((b - a_m) * (a_m + b)) * sin(((angle * ((double) M_PI)) * 0.011111111111111112));
} else if (angle <= 6.4e+181) {
tmp = 0.011111111111111112 * (angle * log(exp((t_0 * ((double) M_PI)))));
} else {
tmp = t_0 * sin(((0.011111111111111112 * ((double) M_PI)) * angle));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double t_0 = (b - a_m) * (b + a_m);
double tmp;
if (angle <= 1.15e-5) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (Math.PI * 0.011111111111111112);
} else if (angle <= 2.9e+56) {
tmp = ((b - a_m) * (a_m + b)) * Math.sin(((angle * Math.PI) * 0.011111111111111112));
} else if (angle <= 6.4e+181) {
tmp = 0.011111111111111112 * (angle * Math.log(Math.exp((t_0 * Math.PI))));
} else {
tmp = t_0 * Math.sin(((0.011111111111111112 * Math.PI) * angle));
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): t_0 = (b - a_m) * (b + a_m) tmp = 0 if angle <= 1.15e-5: tmp = ((angle * (b + a_m)) * (b - a_m)) * (math.pi * 0.011111111111111112) elif angle <= 2.9e+56: tmp = ((b - a_m) * (a_m + b)) * math.sin(((angle * math.pi) * 0.011111111111111112)) elif angle <= 6.4e+181: tmp = 0.011111111111111112 * (angle * math.log(math.exp((t_0 * math.pi)))) else: tmp = t_0 * math.sin(((0.011111111111111112 * math.pi) * angle)) return tmp
a_m = abs(a) function code(a_m, b, angle) t_0 = Float64(Float64(b - a_m) * Float64(b + a_m)) tmp = 0.0 if (angle <= 1.15e-5) tmp = Float64(Float64(Float64(angle * Float64(b + a_m)) * Float64(b - a_m)) * Float64(pi * 0.011111111111111112)); elseif (angle <= 2.9e+56) tmp = Float64(Float64(Float64(b - a_m) * Float64(a_m + b)) * sin(Float64(Float64(angle * pi) * 0.011111111111111112))); elseif (angle <= 6.4e+181) tmp = Float64(0.011111111111111112 * Float64(angle * log(exp(Float64(t_0 * pi))))); else tmp = Float64(t_0 * sin(Float64(Float64(0.011111111111111112 * pi) * angle))); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) t_0 = (b - a_m) * (b + a_m); tmp = 0.0; if (angle <= 1.15e-5) tmp = ((angle * (b + a_m)) * (b - a_m)) * (pi * 0.011111111111111112); elseif (angle <= 2.9e+56) tmp = ((b - a_m) * (a_m + b)) * sin(((angle * pi) * 0.011111111111111112)); elseif (angle <= 6.4e+181) tmp = 0.011111111111111112 * (angle * log(exp((t_0 * pi)))); else tmp = t_0 * sin(((0.011111111111111112 * pi) * angle)); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_] := Block[{t$95$0 = N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[angle, 1.15e-5], N[(N[(N[(angle * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 2.9e+56], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(a$95$m + b), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle * Pi), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 6.4e+181], N[(0.011111111111111112 * N[(angle * N[Log[N[Exp[N[(t$95$0 * Pi), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Sin[N[(N[(0.011111111111111112 * Pi), $MachinePrecision] * angle), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := \left(b - a\_m\right) \cdot \left(b + a\_m\right)\\
\mathbf{if}\;angle \leq 1.15 \cdot 10^{-5}:\\
\;\;\;\;\left(\left(angle \cdot \left(b + a\_m\right)\right) \cdot \left(b - a\_m\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{elif}\;angle \leq 2.9 \cdot 10^{+56}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(a\_m + b\right)\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.011111111111111112\right)\\
\mathbf{elif}\;angle \leq 6.4 \cdot 10^{+181}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \log \left(e^{t\_0 \cdot \pi}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \sin \left(\left(0.011111111111111112 \cdot \pi\right) \cdot angle\right)\\
\end{array}
\end{array}
if angle < 1.15e-5Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
if 1.15e-5 < angle < 2.90000000000000007e56Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-sin.f64N/A
lift-cos.f64N/A
2-sinN/A
count-2N/A
Applied rewrites57.2%
if 2.90000000000000007e56 < angle < 6.4000000000000001e181Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
*-commutativeN/A
lift-PI.f64N/A
add-log-expN/A
log-pow-revN/A
lower-log.f64N/A
lift-PI.f64N/A
pow-expN/A
lift-*.f64N/A
lower-exp.f6431.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6431.4
Applied rewrites34.8%
if 6.4000000000000001e181 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= angle 1.15e-5)
(* (* (* angle (+ b a_m)) (- b a_m)) (* PI 0.011111111111111112))
(if (<= angle 3.9e+63)
(* (* (- b a_m) (+ a_m b)) (sin (* (* angle PI) 0.011111111111111112)))
(if (<= angle 1.25e+198)
(*
0.011111111111111112
(* (* angle (fma (- a_m) (+ b a_m) (* b (+ b a_m)))) PI))
(*
(* (- b a_m) (+ b a_m))
(sin (* (* 0.011111111111111112 angle) PI)))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 1.15e-5) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (((double) M_PI) * 0.011111111111111112);
} else if (angle <= 3.9e+63) {
tmp = ((b - a_m) * (a_m + b)) * sin(((angle * ((double) M_PI)) * 0.011111111111111112));
} else if (angle <= 1.25e+198) {
tmp = 0.011111111111111112 * ((angle * fma(-a_m, (b + a_m), (b * (b + a_m)))) * ((double) M_PI));
} else {
tmp = ((b - a_m) * (b + a_m)) * sin(((0.011111111111111112 * angle) * ((double) M_PI)));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 1.15e-5) tmp = Float64(Float64(Float64(angle * Float64(b + a_m)) * Float64(b - a_m)) * Float64(pi * 0.011111111111111112)); elseif (angle <= 3.9e+63) tmp = Float64(Float64(Float64(b - a_m) * Float64(a_m + b)) * sin(Float64(Float64(angle * pi) * 0.011111111111111112))); elseif (angle <= 1.25e+198) tmp = Float64(0.011111111111111112 * Float64(Float64(angle * fma(Float64(-a_m), Float64(b + a_m), Float64(b * Float64(b + a_m)))) * pi)); else tmp = Float64(Float64(Float64(b - a_m) * Float64(b + a_m)) * sin(Float64(Float64(0.011111111111111112 * angle) * pi))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 1.15e-5], N[(N[(N[(angle * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 3.9e+63], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(a$95$m + b), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle * Pi), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[angle, 1.25e+198], N[(0.011111111111111112 * N[(N[(angle * N[((-a$95$m) * N[(b + a$95$m), $MachinePrecision] + N[(b * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(0.011111111111111112 * angle), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 1.15 \cdot 10^{-5}:\\
\;\;\;\;\left(\left(angle \cdot \left(b + a\_m\right)\right) \cdot \left(b - a\_m\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{elif}\;angle \leq 3.9 \cdot 10^{+63}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(a\_m + b\right)\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.011111111111111112\right)\\
\mathbf{elif}\;angle \leq 1.25 \cdot 10^{+198}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \mathsf{fma}\left(-a\_m, b + a\_m, b \cdot \left(b + a\_m\right)\right)\right) \cdot \pi\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right) \cdot \sin \left(\left(0.011111111111111112 \cdot angle\right) \cdot \pi\right)\\
\end{array}
\end{array}
if angle < 1.15e-5Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
if 1.15e-5 < angle < 3.9e63Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-sin.f64N/A
lift-cos.f64N/A
2-sinN/A
count-2N/A
Applied rewrites57.2%
if 3.9e63 < angle < 1.25000000000000012e198Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
sub-flipN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6452.9
lift-+.f64N/A
+-commutativeN/A
lift-+.f6452.9
Applied rewrites52.9%
if 1.25000000000000012e198 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6457.7
Applied rewrites57.7%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= angle 3e+188)
(*
(* (+ a_m b) (* (- b a_m) (* (sin (* (/ 1.0 (/ 180.0 angle)) PI)) 2.0)))
(sin (* PI (fma 0.005555555555555556 angle 0.5))))
(* (* (- b a_m) (+ b a_m)) (sin (* (* 0.011111111111111112 PI) angle)))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 3e+188) {
tmp = ((a_m + b) * ((b - a_m) * (sin(((1.0 / (180.0 / angle)) * ((double) M_PI))) * 2.0))) * sin((((double) M_PI) * fma(0.005555555555555556, angle, 0.5)));
} else {
tmp = ((b - a_m) * (b + a_m)) * sin(((0.011111111111111112 * ((double) M_PI)) * angle));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 3e+188) tmp = Float64(Float64(Float64(a_m + b) * Float64(Float64(b - a_m) * Float64(sin(Float64(Float64(1.0 / Float64(180.0 / angle)) * pi)) * 2.0))) * sin(Float64(pi * fma(0.005555555555555556, angle, 0.5)))); else tmp = Float64(Float64(Float64(b - a_m) * Float64(b + a_m)) * sin(Float64(Float64(0.011111111111111112 * pi) * angle))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 3e+188], N[(N[(N[(a$95$m + b), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(N[(1.0 / N[(180.0 / angle), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(Pi * N[(0.005555555555555556 * angle + 0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(0.011111111111111112 * Pi), $MachinePrecision] * angle), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 3 \cdot 10^{+188}:\\
\;\;\;\;\left(\left(a\_m + b\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\frac{1}{\frac{180}{angle}} \cdot \pi\right) \cdot 2\right)\right)\right) \cdot \sin \left(\pi \cdot \mathsf{fma}\left(0.005555555555555556, angle, 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right) \cdot \sin \left(\left(0.011111111111111112 \cdot \pi\right) \cdot angle\right)\\
\end{array}
\end{array}
if angle < 3.0000000000000001e188Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
lift-*.f64N/A
metadata-evalN/A
associate-/r/N/A
lift-/.f64N/A
lift-/.f6467.1
Applied rewrites67.1%
lift-cos.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
lift-*.f64N/A
distribute-lft-outN/A
lower-*.f64N/A
lift-/.f64N/A
div-flip-revN/A
associate-/r/N/A
metadata-evalN/A
lower-fma.f6467.1
Applied rewrites67.1%
if 3.0000000000000001e188 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= angle 1.06e+188)
(*
(*
(+ a_m b)
(* (- b a_m) (* (sin (* (* 0.005555555555555556 angle) PI)) 2.0)))
(sin (* PI (fma angle 0.005555555555555556 0.5))))
(* (* (- b a_m) (+ b a_m)) (sin (* (* 0.011111111111111112 PI) angle)))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 1.06e+188) {
tmp = ((a_m + b) * ((b - a_m) * (sin(((0.005555555555555556 * angle) * ((double) M_PI))) * 2.0))) * sin((((double) M_PI) * fma(angle, 0.005555555555555556, 0.5)));
} else {
tmp = ((b - a_m) * (b + a_m)) * sin(((0.011111111111111112 * ((double) M_PI)) * angle));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 1.06e+188) tmp = Float64(Float64(Float64(a_m + b) * Float64(Float64(b - a_m) * Float64(sin(Float64(Float64(0.005555555555555556 * angle) * pi)) * 2.0))) * sin(Float64(pi * fma(angle, 0.005555555555555556, 0.5)))); else tmp = Float64(Float64(Float64(b - a_m) * Float64(b + a_m)) * sin(Float64(Float64(0.011111111111111112 * pi) * angle))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 1.06e+188], N[(N[(N[(a$95$m + b), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(N[(0.005555555555555556 * angle), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(Pi * N[(angle * 0.005555555555555556 + 0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(0.011111111111111112 * Pi), $MachinePrecision] * angle), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 1.06 \cdot 10^{+188}:\\
\;\;\;\;\left(\left(a\_m + b\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right) \cdot 2\right)\right)\right) \cdot \sin \left(\pi \cdot \mathsf{fma}\left(angle, 0.005555555555555556, 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right) \cdot \sin \left(\left(0.011111111111111112 \cdot \pi\right) \cdot angle\right)\\
\end{array}
\end{array}
if angle < 1.06000000000000007e188Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
lift-cos.f64N/A
sin-+PI/2-revN/A
lower-sin.f64N/A
lift-/.f64N/A
div-flip-revN/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-/.f64N/A
div-flip-revN/A
lift-/.f64N/A
lift-PI.f64N/A
mult-flipN/A
metadata-evalN/A
distribute-lft-outN/A
lower-*.f64N/A
lift-/.f64N/A
mult-flipN/A
metadata-evalN/A
lower-fma.f6467.1
Applied rewrites67.1%
if 1.06000000000000007e188 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squaresN/A
associate-*l*N/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6467.5
Applied rewrites67.6%
Applied rewrites57.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6457.3
Applied rewrites57.3%
a_m = (fabs.f64 a) (FPCore (a_m b angle) :precision binary64 (if (<= angle 1.15e-5) (* (* (* angle (+ b a_m)) (- b a_m)) (* PI 0.011111111111111112)) (* (* (- b a_m) (+ a_m b)) (sin (* (* angle PI) 0.011111111111111112)))))
a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 1.15e-5) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (((double) M_PI) * 0.011111111111111112);
} else {
tmp = ((b - a_m) * (a_m + b)) * sin(((angle * ((double) M_PI)) * 0.011111111111111112));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 1.15e-5) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (Math.PI * 0.011111111111111112);
} else {
tmp = ((b - a_m) * (a_m + b)) * Math.sin(((angle * Math.PI) * 0.011111111111111112));
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): tmp = 0 if angle <= 1.15e-5: tmp = ((angle * (b + a_m)) * (b - a_m)) * (math.pi * 0.011111111111111112) else: tmp = ((b - a_m) * (a_m + b)) * math.sin(((angle * math.pi) * 0.011111111111111112)) return tmp
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 1.15e-5) tmp = Float64(Float64(Float64(angle * Float64(b + a_m)) * Float64(b - a_m)) * Float64(pi * 0.011111111111111112)); else tmp = Float64(Float64(Float64(b - a_m) * Float64(a_m + b)) * sin(Float64(Float64(angle * pi) * 0.011111111111111112))); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) tmp = 0.0; if (angle <= 1.15e-5) tmp = ((angle * (b + a_m)) * (b - a_m)) * (pi * 0.011111111111111112); else tmp = ((b - a_m) * (a_m + b)) * sin(((angle * pi) * 0.011111111111111112)); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 1.15e-5], N[(N[(N[(angle * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(a$95$m + b), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle * Pi), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 1.15 \cdot 10^{-5}:\\
\;\;\;\;\left(\left(angle \cdot \left(b + a\_m\right)\right) \cdot \left(b - a\_m\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b - a\_m\right) \cdot \left(a\_m + b\right)\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.011111111111111112\right)\\
\end{array}
\end{array}
if angle < 1.15e-5Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
if 1.15e-5 < angle Initial program 53.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-sin.f64N/A
lift-cos.f64N/A
2-sinN/A
count-2N/A
Applied rewrites57.2%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(if (<= angle 0.00046)
(* (* (* angle (+ b a_m)) (- b a_m)) (* PI 0.011111111111111112))
(*
0.011111111111111112
(* (* angle (fma (- a_m) (+ b a_m) (* b (+ b a_m)))) PI))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 0.00046) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (((double) M_PI) * 0.011111111111111112);
} else {
tmp = 0.011111111111111112 * ((angle * fma(-a_m, (b + a_m), (b * (b + a_m)))) * ((double) M_PI));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 0.00046) tmp = Float64(Float64(Float64(angle * Float64(b + a_m)) * Float64(b - a_m)) * Float64(pi * 0.011111111111111112)); else tmp = Float64(0.011111111111111112 * Float64(Float64(angle * fma(Float64(-a_m), Float64(b + a_m), Float64(b * Float64(b + a_m)))) * pi)); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 0.00046], N[(N[(N[(angle * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(N[(angle * N[((-a$95$m) * N[(b + a$95$m), $MachinePrecision] + N[(b * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 0.00046:\\
\;\;\;\;\left(\left(angle \cdot \left(b + a\_m\right)\right) \cdot \left(b - a\_m\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \mathsf{fma}\left(-a\_m, b + a\_m, b \cdot \left(b + a\_m\right)\right)\right) \cdot \pi\right)\\
\end{array}
\end{array}
if angle < 4.6000000000000001e-4Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
if 4.6000000000000001e-4 < angle Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
sub-flipN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6452.9
lift-+.f64N/A
+-commutativeN/A
lift-+.f6452.9
Applied rewrites52.9%
a_m = (fabs.f64 a) (FPCore (a_m b angle) :precision binary64 (if (<= angle 1.5e+94) (* (* (* angle (+ b a_m)) (- b a_m)) (* PI 0.011111111111111112)) (* 0.011111111111111112 (* angle (* PI (fma (- a_m) a_m (* b b)))))))
a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 1.5e+94) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (((double) M_PI) * 0.011111111111111112);
} else {
tmp = 0.011111111111111112 * (angle * (((double) M_PI) * fma(-a_m, a_m, (b * b))));
}
return tmp;
}
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 1.5e+94) tmp = Float64(Float64(Float64(angle * Float64(b + a_m)) * Float64(b - a_m)) * Float64(pi * 0.011111111111111112)); else tmp = Float64(0.011111111111111112 * Float64(angle * Float64(pi * fma(Float64(-a_m), a_m, Float64(b * b))))); end return tmp end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 1.5e+94], N[(N[(N[(angle * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(angle * N[(Pi * N[((-a$95$m) * a$95$m + N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 1.5 \cdot 10^{+94}:\\
\;\;\;\;\left(\left(angle \cdot \left(b + a\_m\right)\right) \cdot \left(b - a\_m\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \mathsf{fma}\left(-a\_m, a\_m, b \cdot b\right)\right)\right)\\
\end{array}
\end{array}
if angle < 1.5e94Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
if 1.5e94 < angle Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift--.f64N/A
lift-pow.f64N/A
unpow2N/A
fp-cancel-sub-signN/A
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
add-flipN/A
sub-flipN/A
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
distribute-lft-neg-outN/A
distribute-rgt-neg-outN/A
sqr-neg-revN/A
pow2N/A
lift-pow.f64N/A
lower-fma.f6452.8
lift-pow.f64N/A
pow2N/A
lower-*.f6452.8
Applied rewrites52.8%
a_m = (fabs.f64 a) (FPCore (a_m b angle) :precision binary64 (if (<= angle 0.000112) (* (* (* angle (+ b a_m)) (- b a_m)) (* PI 0.011111111111111112)) (* angle (* (* (- b a_m) (* (+ b a_m) PI)) 0.011111111111111112))))
a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 0.000112) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (((double) M_PI) * 0.011111111111111112);
} else {
tmp = angle * (((b - a_m) * ((b + a_m) * ((double) M_PI))) * 0.011111111111111112);
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 0.000112) {
tmp = ((angle * (b + a_m)) * (b - a_m)) * (Math.PI * 0.011111111111111112);
} else {
tmp = angle * (((b - a_m) * ((b + a_m) * Math.PI)) * 0.011111111111111112);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): tmp = 0 if angle <= 0.000112: tmp = ((angle * (b + a_m)) * (b - a_m)) * (math.pi * 0.011111111111111112) else: tmp = angle * (((b - a_m) * ((b + a_m) * math.pi)) * 0.011111111111111112) return tmp
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 0.000112) tmp = Float64(Float64(Float64(angle * Float64(b + a_m)) * Float64(b - a_m)) * Float64(pi * 0.011111111111111112)); else tmp = Float64(angle * Float64(Float64(Float64(b - a_m) * Float64(Float64(b + a_m) * pi)) * 0.011111111111111112)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) tmp = 0.0; if (angle <= 0.000112) tmp = ((angle * (b + a_m)) * (b - a_m)) * (pi * 0.011111111111111112); else tmp = angle * (((b - a_m) * ((b + a_m) * pi)) * 0.011111111111111112); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 0.000112], N[(N[(N[(angle * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision], N[(angle * N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 0.000112:\\
\;\;\;\;\left(\left(angle \cdot \left(b + a\_m\right)\right) \cdot \left(b - a\_m\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\left(\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \pi\right)\right) \cdot 0.011111111111111112\right)\\
\end{array}
\end{array}
if angle < 1.11999999999999998e-4Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
if 1.11999999999999998e-4 < angle Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6453.5
Applied rewrites53.5%
a_m = (fabs.f64 a) (FPCore (a_m b angle) :precision binary64 (if (<= angle 5e+78) (* (* (* 0.011111111111111112 (* angle (- b a_m))) (+ b a_m)) PI) (* angle (* (* (- b a_m) (* (+ b a_m) PI)) 0.011111111111111112))))
a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 5e+78) {
tmp = ((0.011111111111111112 * (angle * (b - a_m))) * (b + a_m)) * ((double) M_PI);
} else {
tmp = angle * (((b - a_m) * ((b + a_m) * ((double) M_PI))) * 0.011111111111111112);
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 5e+78) {
tmp = ((0.011111111111111112 * (angle * (b - a_m))) * (b + a_m)) * Math.PI;
} else {
tmp = angle * (((b - a_m) * ((b + a_m) * Math.PI)) * 0.011111111111111112);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): tmp = 0 if angle <= 5e+78: tmp = ((0.011111111111111112 * (angle * (b - a_m))) * (b + a_m)) * math.pi else: tmp = angle * (((b - a_m) * ((b + a_m) * math.pi)) * 0.011111111111111112) return tmp
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 5e+78) tmp = Float64(Float64(Float64(0.011111111111111112 * Float64(angle * Float64(b - a_m))) * Float64(b + a_m)) * pi); else tmp = Float64(angle * Float64(Float64(Float64(b - a_m) * Float64(Float64(b + a_m) * pi)) * 0.011111111111111112)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) tmp = 0.0; if (angle <= 5e+78) tmp = ((0.011111111111111112 * (angle * (b - a_m))) * (b + a_m)) * pi; else tmp = angle * (((b - a_m) * ((b + a_m) * pi)) * 0.011111111111111112); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 5e+78], N[(N[(N[(0.011111111111111112 * N[(angle * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision], N[(angle * N[(N[(N[(b - a$95$m), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 5 \cdot 10^{+78}:\\
\;\;\;\;\left(\left(0.011111111111111112 \cdot \left(angle \cdot \left(b - a\_m\right)\right)\right) \cdot \left(b + a\_m\right)\right) \cdot \pi\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\left(\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \pi\right)\right) \cdot 0.011111111111111112\right)\\
\end{array}
\end{array}
if angle < 4.99999999999999984e78Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.6
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.6
Applied rewrites61.6%
if 4.99999999999999984e78 < angle Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6453.5
Applied rewrites53.5%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(let* ((t_0 (* (+ b a_m) PI)))
(if (<= angle 4000000000000.0)
(* 0.011111111111111112 (* (* angle (- b a_m)) t_0))
(* angle (* (* (- b a_m) t_0) 0.011111111111111112)))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double t_0 = (b + a_m) * ((double) M_PI);
double tmp;
if (angle <= 4000000000000.0) {
tmp = 0.011111111111111112 * ((angle * (b - a_m)) * t_0);
} else {
tmp = angle * (((b - a_m) * t_0) * 0.011111111111111112);
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double t_0 = (b + a_m) * Math.PI;
double tmp;
if (angle <= 4000000000000.0) {
tmp = 0.011111111111111112 * ((angle * (b - a_m)) * t_0);
} else {
tmp = angle * (((b - a_m) * t_0) * 0.011111111111111112);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): t_0 = (b + a_m) * math.pi tmp = 0 if angle <= 4000000000000.0: tmp = 0.011111111111111112 * ((angle * (b - a_m)) * t_0) else: tmp = angle * (((b - a_m) * t_0) * 0.011111111111111112) return tmp
a_m = abs(a) function code(a_m, b, angle) t_0 = Float64(Float64(b + a_m) * pi) tmp = 0.0 if (angle <= 4000000000000.0) tmp = Float64(0.011111111111111112 * Float64(Float64(angle * Float64(b - a_m)) * t_0)); else tmp = Float64(angle * Float64(Float64(Float64(b - a_m) * t_0) * 0.011111111111111112)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) t_0 = (b + a_m) * pi; tmp = 0.0; if (angle <= 4000000000000.0) tmp = 0.011111111111111112 * ((angle * (b - a_m)) * t_0); else tmp = angle * (((b - a_m) * t_0) * 0.011111111111111112); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_] := Block[{t$95$0 = N[(N[(b + a$95$m), $MachinePrecision] * Pi), $MachinePrecision]}, If[LessEqual[angle, 4000000000000.0], N[(0.011111111111111112 * N[(N[(angle * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision], N[(angle * N[(N[(N[(b - a$95$m), $MachinePrecision] * t$95$0), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := \left(b + a\_m\right) \cdot \pi\\
\mathbf{if}\;angle \leq 4000000000000:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \left(b - a\_m\right)\right) \cdot t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\left(\left(b - a\_m\right) \cdot t\_0\right) \cdot 0.011111111111111112\right)\\
\end{array}
\end{array}
if angle < 4e12Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
if 4e12 < angle Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6453.5
Applied rewrites53.5%
a_m = (fabs.f64 a) (FPCore (a_m b angle) :precision binary64 (if (<= angle 5000000000000.0) (* 0.011111111111111112 (* (* angle (- b a_m)) (* (+ b a_m) PI))) (* 0.011111111111111112 (* (* angle (* (- b a_m) (+ b a_m))) PI))))
a_m = fabs(a);
double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 5000000000000.0) {
tmp = 0.011111111111111112 * ((angle * (b - a_m)) * ((b + a_m) * ((double) M_PI)));
} else {
tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * ((double) M_PI));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double tmp;
if (angle <= 5000000000000.0) {
tmp = 0.011111111111111112 * ((angle * (b - a_m)) * ((b + a_m) * Math.PI));
} else {
tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * Math.PI);
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): tmp = 0 if angle <= 5000000000000.0: tmp = 0.011111111111111112 * ((angle * (b - a_m)) * ((b + a_m) * math.pi)) else: tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * math.pi) return tmp
a_m = abs(a) function code(a_m, b, angle) tmp = 0.0 if (angle <= 5000000000000.0) tmp = Float64(0.011111111111111112 * Float64(Float64(angle * Float64(b - a_m)) * Float64(Float64(b + a_m) * pi))); else tmp = Float64(0.011111111111111112 * Float64(Float64(angle * Float64(Float64(b - a_m) * Float64(b + a_m))) * pi)); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) tmp = 0.0; if (angle <= 5000000000000.0) tmp = 0.011111111111111112 * ((angle * (b - a_m)) * ((b + a_m) * pi)); else tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * pi); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := If[LessEqual[angle, 5000000000000.0], N[(0.011111111111111112 * N[(N[(angle * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(N[(angle * N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
\mathbf{if}\;angle \leq 5000000000000:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \left(b - a\_m\right)\right) \cdot \left(\left(b + a\_m\right) \cdot \pi\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right)\right) \cdot \pi\right)\\
\end{array}
\end{array}
if angle < 5e12Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
if 5e12 < angle Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(let* ((t_0 (* angle (- b a_m))) (t_1 (* 2.0 (- (pow b 2.0) (pow a_m 2.0)))))
(if (<= t_1 -5e+133)
(* 0.011111111111111112 (* t_0 (* a_m PI)))
(if (<= t_1 2e+78)
(* 0.011111111111111112 (* (* angle (* (- b a_m) (+ b a_m))) PI))
(* 0.011111111111111112 (* t_0 (* b PI)))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double t_0 = angle * (b - a_m);
double t_1 = 2.0 * (pow(b, 2.0) - pow(a_m, 2.0));
double tmp;
if (t_1 <= -5e+133) {
tmp = 0.011111111111111112 * (t_0 * (a_m * ((double) M_PI)));
} else if (t_1 <= 2e+78) {
tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * ((double) M_PI));
} else {
tmp = 0.011111111111111112 * (t_0 * (b * ((double) M_PI)));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double t_0 = angle * (b - a_m);
double t_1 = 2.0 * (Math.pow(b, 2.0) - Math.pow(a_m, 2.0));
double tmp;
if (t_1 <= -5e+133) {
tmp = 0.011111111111111112 * (t_0 * (a_m * Math.PI));
} else if (t_1 <= 2e+78) {
tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * Math.PI);
} else {
tmp = 0.011111111111111112 * (t_0 * (b * Math.PI));
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): t_0 = angle * (b - a_m) t_1 = 2.0 * (math.pow(b, 2.0) - math.pow(a_m, 2.0)) tmp = 0 if t_1 <= -5e+133: tmp = 0.011111111111111112 * (t_0 * (a_m * math.pi)) elif t_1 <= 2e+78: tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * math.pi) else: tmp = 0.011111111111111112 * (t_0 * (b * math.pi)) return tmp
a_m = abs(a) function code(a_m, b, angle) t_0 = Float64(angle * Float64(b - a_m)) t_1 = Float64(2.0 * Float64((b ^ 2.0) - (a_m ^ 2.0))) tmp = 0.0 if (t_1 <= -5e+133) tmp = Float64(0.011111111111111112 * Float64(t_0 * Float64(a_m * pi))); elseif (t_1 <= 2e+78) tmp = Float64(0.011111111111111112 * Float64(Float64(angle * Float64(Float64(b - a_m) * Float64(b + a_m))) * pi)); else tmp = Float64(0.011111111111111112 * Float64(t_0 * Float64(b * pi))); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) t_0 = angle * (b - a_m); t_1 = 2.0 * ((b ^ 2.0) - (a_m ^ 2.0)); tmp = 0.0; if (t_1 <= -5e+133) tmp = 0.011111111111111112 * (t_0 * (a_m * pi)); elseif (t_1 <= 2e+78) tmp = 0.011111111111111112 * ((angle * ((b - a_m) * (b + a_m))) * pi); else tmp = 0.011111111111111112 * (t_0 * (b * pi)); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_] := Block[{t$95$0 = N[(angle * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+133], N[(0.011111111111111112 * N[(t$95$0 * N[(a$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+78], N[(0.011111111111111112 * N[(N[(angle * N[(N[(b - a$95$m), $MachinePrecision] * N[(b + a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(t$95$0 * N[(b * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := angle \cdot \left(b - a\_m\right)\\
t_1 := 2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+133}:\\
\;\;\;\;0.011111111111111112 \cdot \left(t\_0 \cdot \left(a\_m \cdot \pi\right)\right)\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+78}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \left(\left(b - a\_m\right) \cdot \left(b + a\_m\right)\right)\right) \cdot \pi\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(t\_0 \cdot \left(b \cdot \pi\right)\right)\\
\end{array}
\end{array}
if (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) < -4.99999999999999961e133Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-PI.f6441.1
Applied rewrites41.1%
if -4.99999999999999961e133 < (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) < 2.00000000000000002e78Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
if 2.00000000000000002e78 < (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
Taylor expanded in a around 0
lower-*.f64N/A
lower-PI.f6441.4
Applied rewrites41.4%
a_m = (fabs.f64 a)
(FPCore (a_m b angle)
:precision binary64
(let* ((t_0 (* angle (- b a_m))))
(if (<= (* 2.0 (- (pow b 2.0) (pow a_m 2.0))) 2e-263)
(* 0.011111111111111112 (* t_0 (* a_m PI)))
(* 0.011111111111111112 (* t_0 (* b PI))))))a_m = fabs(a);
double code(double a_m, double b, double angle) {
double t_0 = angle * (b - a_m);
double tmp;
if ((2.0 * (pow(b, 2.0) - pow(a_m, 2.0))) <= 2e-263) {
tmp = 0.011111111111111112 * (t_0 * (a_m * ((double) M_PI)));
} else {
tmp = 0.011111111111111112 * (t_0 * (b * ((double) M_PI)));
}
return tmp;
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
double t_0 = angle * (b - a_m);
double tmp;
if ((2.0 * (Math.pow(b, 2.0) - Math.pow(a_m, 2.0))) <= 2e-263) {
tmp = 0.011111111111111112 * (t_0 * (a_m * Math.PI));
} else {
tmp = 0.011111111111111112 * (t_0 * (b * Math.PI));
}
return tmp;
}
a_m = math.fabs(a) def code(a_m, b, angle): t_0 = angle * (b - a_m) tmp = 0 if (2.0 * (math.pow(b, 2.0) - math.pow(a_m, 2.0))) <= 2e-263: tmp = 0.011111111111111112 * (t_0 * (a_m * math.pi)) else: tmp = 0.011111111111111112 * (t_0 * (b * math.pi)) return tmp
a_m = abs(a) function code(a_m, b, angle) t_0 = Float64(angle * Float64(b - a_m)) tmp = 0.0 if (Float64(2.0 * Float64((b ^ 2.0) - (a_m ^ 2.0))) <= 2e-263) tmp = Float64(0.011111111111111112 * Float64(t_0 * Float64(a_m * pi))); else tmp = Float64(0.011111111111111112 * Float64(t_0 * Float64(b * pi))); end return tmp end
a_m = abs(a); function tmp_2 = code(a_m, b, angle) t_0 = angle * (b - a_m); tmp = 0.0; if ((2.0 * ((b ^ 2.0) - (a_m ^ 2.0))) <= 2e-263) tmp = 0.011111111111111112 * (t_0 * (a_m * pi)); else tmp = 0.011111111111111112 * (t_0 * (b * pi)); end tmp_2 = tmp; end
a_m = N[Abs[a], $MachinePrecision]
code[a$95$m_, b_, angle_] := Block[{t$95$0 = N[(angle * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2e-263], N[(0.011111111111111112 * N[(t$95$0 * N[(a$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(t$95$0 * N[(b * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
a_m = \left|a\right|
\\
\begin{array}{l}
t_0 := angle \cdot \left(b - a\_m\right)\\
\mathbf{if}\;2 \cdot \left({b}^{2} - {a\_m}^{2}\right) \leq 2 \cdot 10^{-263}:\\
\;\;\;\;0.011111111111111112 \cdot \left(t\_0 \cdot \left(a\_m \cdot \pi\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(t\_0 \cdot \left(b \cdot \pi\right)\right)\\
\end{array}
\end{array}
if (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) < 2e-263Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-PI.f6441.1
Applied rewrites41.1%
if 2e-263 < (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
Taylor expanded in a around 0
lower-*.f64N/A
lower-PI.f6441.4
Applied rewrites41.4%
a_m = (fabs.f64 a) (FPCore (a_m b angle) :precision binary64 (* 0.011111111111111112 (* (* angle (- b a_m)) (* a_m PI))))
a_m = fabs(a);
double code(double a_m, double b, double angle) {
return 0.011111111111111112 * ((angle * (b - a_m)) * (a_m * ((double) M_PI)));
}
a_m = Math.abs(a);
public static double code(double a_m, double b, double angle) {
return 0.011111111111111112 * ((angle * (b - a_m)) * (a_m * Math.PI));
}
a_m = math.fabs(a) def code(a_m, b, angle): return 0.011111111111111112 * ((angle * (b - a_m)) * (a_m * math.pi))
a_m = abs(a) function code(a_m, b, angle) return Float64(0.011111111111111112 * Float64(Float64(angle * Float64(b - a_m)) * Float64(a_m * pi))) end
a_m = abs(a); function tmp = code(a_m, b, angle) tmp = 0.011111111111111112 * ((angle * (b - a_m)) * (a_m * pi)); end
a_m = N[Abs[a], $MachinePrecision] code[a$95$m_, b_, angle_] := N[(0.011111111111111112 * N[(N[(angle * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(a$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
a_m = \left|a\right|
\\
0.011111111111111112 \cdot \left(\left(angle \cdot \left(b - a\_m\right)\right) \cdot \left(a\_m \cdot \pi\right)\right)
\end{array}
Initial program 53.8%
Taylor expanded in angle around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-PI.f64N/A
lower--.f64N/A
lower-pow.f64N/A
lower-pow.f6450.1
Applied rewrites50.1%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6450.1
lift--.f64N/A
lift-pow.f64N/A
pow2N/A
lift-pow.f64N/A
unpow2N/A
difference-of-squares-revN/A
+-commutativeN/A
lift-+.f64N/A
lift--.f64N/A
*-commutativeN/A
lower-*.f6453.5
lift-+.f64N/A
+-commutativeN/A
lower-+.f6453.5
Applied rewrites53.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6461.5
lift-+.f64N/A
+-commutativeN/A
lift-+.f6461.5
Applied rewrites61.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-PI.f6441.1
Applied rewrites41.1%
herbie shell --seed 2025154
(FPCore (a b angle)
:name "ab-angle->ABCF B"
:precision binary64
(* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0)))) (cos (* PI (/ angle 180.0)))))