
(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}
Sampling outcomes in binary64 precision:
Herbie found 14 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}
(FPCore (a b angle)
:precision binary64
(let* ((t_0 (* (sin (/ (* angle PI) 180.0)) (+ b a))))
(if (<= (/ angle 180.0) -2e+68)
(* 2.0 (* t_0 (* (- b a) (cos (* (* angle PI) 0.005555555555555556)))))
(*
2.0
(*
t_0
(*
(- b a)
(cos
(*
0.005555555555555556
(* angle (cbrt (exp (* (log PI) 3.0))))))))))))
double code(double a, double b, double angle) {
double t_0 = sin(((angle * ((double) M_PI)) / 180.0)) * (b + a);
double tmp;
if ((angle / 180.0) <= -2e+68) {
tmp = 2.0 * (t_0 * ((b - a) * cos(((angle * ((double) M_PI)) * 0.005555555555555556))));
} else {
tmp = 2.0 * (t_0 * ((b - a) * cos((0.005555555555555556 * (angle * cbrt(exp((log(((double) M_PI)) * 3.0))))))));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double t_0 = Math.sin(((angle * Math.PI) / 180.0)) * (b + a);
double tmp;
if ((angle / 180.0) <= -2e+68) {
tmp = 2.0 * (t_0 * ((b - a) * Math.cos(((angle * Math.PI) * 0.005555555555555556))));
} else {
tmp = 2.0 * (t_0 * ((b - a) * Math.cos((0.005555555555555556 * (angle * Math.cbrt(Math.exp((Math.log(Math.PI) * 3.0))))))));
}
return tmp;
}
function code(a, b, angle) t_0 = Float64(sin(Float64(Float64(angle * pi) / 180.0)) * Float64(b + a)) tmp = 0.0 if (Float64(angle / 180.0) <= -2e+68) tmp = Float64(2.0 * Float64(t_0 * Float64(Float64(b - a) * cos(Float64(Float64(angle * pi) * 0.005555555555555556))))); else tmp = Float64(2.0 * Float64(t_0 * Float64(Float64(b - a) * cos(Float64(0.005555555555555556 * Float64(angle * cbrt(exp(Float64(log(pi) * 3.0))))))))); end return tmp end
code[a_, b_, angle_] := Block[{t$95$0 = N[(N[Sin[N[(N[(angle * Pi), $MachinePrecision] / 180.0), $MachinePrecision]], $MachinePrecision] * N[(b + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(angle / 180.0), $MachinePrecision], -2e+68], N[(2.0 * N[(t$95$0 * N[(N[(b - a), $MachinePrecision] * N[Cos[N[(N[(angle * Pi), $MachinePrecision] * 0.005555555555555556), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t$95$0 * N[(N[(b - a), $MachinePrecision] * N[Cos[N[(0.005555555555555556 * N[(angle * N[Power[N[Exp[N[(N[Log[Pi], $MachinePrecision] * 3.0), $MachinePrecision]], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(\frac{angle \cdot \pi}{180}\right) \cdot \left(b + a\right)\\
\mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+68}:\\
\;\;\;\;2 \cdot \left(t_0 \cdot \left(\left(b - a\right) \cdot \cos \left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t_0 \cdot \left(\left(b - a\right) \cdot \cos \left(0.005555555555555556 \cdot \left(angle \cdot \sqrt[3]{e^{\log \pi \cdot 3}}\right)\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 angle 180) < -1.99999999999999991e68Initial program 24.3%
associate-*l*24.3%
unpow224.3%
unpow224.3%
difference-of-squares27.9%
Simplified27.9%
Taylor expanded in angle around inf 35.3%
associate-*r*35.3%
*-commutative35.3%
+-commutative35.3%
Simplified35.3%
associate-*r*34.8%
*-commutative34.8%
metadata-eval34.8%
div-inv32.6%
*-commutative32.6%
associate-*r/38.8%
*-commutative38.8%
Applied egg-rr38.8%
if -1.99999999999999991e68 < (/.f64 angle 180) Initial program 56.1%
associate-*l*56.1%
unpow256.1%
unpow256.1%
difference-of-squares59.8%
Simplified59.8%
Taylor expanded in angle around inf 73.0%
associate-*r*73.0%
*-commutative73.0%
+-commutative73.0%
Simplified73.0%
associate-*r*73.3%
*-commutative73.3%
metadata-eval73.3%
div-inv74.9%
*-commutative74.9%
associate-*r/73.2%
*-commutative73.2%
Applied egg-rr73.2%
add-cbrt-cube76.3%
pow376.3%
Applied egg-rr76.3%
pow-to-exp77.1%
Applied egg-rr77.1%
Final simplification68.7%
(FPCore (a b angle)
:precision binary64
(let* ((t_0 (* (sin (/ (* angle PI) 180.0)) (+ b a)))
(t_1 (* (/ angle 180.0) PI)))
(if (<=
(* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin t_1)) (cos t_1))
2e-78)
(* 2.0 (* t_0 (* (- b a) (cos (* (* angle PI) 0.005555555555555556)))))
(*
2.0
(*
t_0
(*
(- b a)
(cos (* 0.005555555555555556 (* angle (cbrt (pow PI 3.0)))))))))))
double code(double a, double b, double angle) {
double t_0 = sin(((angle * ((double) M_PI)) / 180.0)) * (b + a);
double t_1 = (angle / 180.0) * ((double) M_PI);
double tmp;
if ((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(t_1)) * cos(t_1)) <= 2e-78) {
tmp = 2.0 * (t_0 * ((b - a) * cos(((angle * ((double) M_PI)) * 0.005555555555555556))));
} else {
tmp = 2.0 * (t_0 * ((b - a) * cos((0.005555555555555556 * (angle * cbrt(pow(((double) M_PI), 3.0)))))));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double t_0 = Math.sin(((angle * Math.PI) / 180.0)) * (b + a);
double t_1 = (angle / 180.0) * Math.PI;
double tmp;
if ((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(t_1)) * Math.cos(t_1)) <= 2e-78) {
tmp = 2.0 * (t_0 * ((b - a) * Math.cos(((angle * Math.PI) * 0.005555555555555556))));
} else {
tmp = 2.0 * (t_0 * ((b - a) * Math.cos((0.005555555555555556 * (angle * Math.cbrt(Math.pow(Math.PI, 3.0)))))));
}
return tmp;
}
function code(a, b, angle) t_0 = Float64(sin(Float64(Float64(angle * pi) / 180.0)) * Float64(b + a)) t_1 = Float64(Float64(angle / 180.0) * pi) tmp = 0.0 if (Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(t_1)) * cos(t_1)) <= 2e-78) tmp = Float64(2.0 * Float64(t_0 * Float64(Float64(b - a) * cos(Float64(Float64(angle * pi) * 0.005555555555555556))))); else tmp = Float64(2.0 * Float64(t_0 * Float64(Float64(b - a) * cos(Float64(0.005555555555555556 * Float64(angle * cbrt((pi ^ 3.0)))))))); end return tmp end
code[a_, b_, angle_] := Block[{t$95$0 = N[(N[Sin[N[(N[(angle * Pi), $MachinePrecision] / 180.0), $MachinePrecision]], $MachinePrecision] * N[(b + a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, If[LessEqual[N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision], 2e-78], N[(2.0 * N[(t$95$0 * N[(N[(b - a), $MachinePrecision] * N[Cos[N[(N[(angle * Pi), $MachinePrecision] * 0.005555555555555556), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t$95$0 * N[(N[(b - a), $MachinePrecision] * N[Cos[N[(0.005555555555555556 * N[(angle * N[Power[N[Power[Pi, 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin \left(\frac{angle \cdot \pi}{180}\right) \cdot \left(b + a\right)\\
t_1 := \frac{angle}{180} \cdot \pi\\
\mathbf{if}\;\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t_1\right) \cdot \cos t_1 \leq 2 \cdot 10^{-78}:\\
\;\;\;\;2 \cdot \left(t_0 \cdot \left(\left(b - a\right) \cdot \cos \left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t_0 \cdot \left(\left(b - a\right) \cdot \cos \left(0.005555555555555556 \cdot \left(angle \cdot \sqrt[3]{{\pi}^{3}}\right)\right)\right)\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle 180)))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle 180)))) < 2e-78Initial program 58.4%
associate-*l*58.4%
unpow258.4%
unpow258.4%
difference-of-squares58.4%
Simplified58.4%
Taylor expanded in angle around inf 67.5%
associate-*r*67.5%
*-commutative67.5%
+-commutative67.5%
Simplified67.5%
associate-*r*67.4%
*-commutative67.4%
metadata-eval67.4%
div-inv68.0%
*-commutative68.0%
associate-*r/69.3%
*-commutative69.3%
Applied egg-rr69.3%
if 2e-78 < (*.f64 (*.f64 (*.f64 2 (-.f64 (pow.f64 b 2) (pow.f64 a 2))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle 180)))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle 180)))) Initial program 34.8%
associate-*l*34.8%
unpow234.8%
unpow234.8%
difference-of-squares44.1%
Simplified44.1%
Taylor expanded in angle around inf 60.4%
associate-*r*60.4%
*-commutative60.4%
+-commutative60.4%
Simplified60.4%
associate-*r*60.9%
*-commutative60.9%
metadata-eval60.9%
div-inv61.9%
*-commutative61.9%
associate-*r/59.8%
*-commutative59.8%
Applied egg-rr59.8%
add-cbrt-cube66.6%
pow366.6%
Applied egg-rr66.6%
Final simplification68.3%
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* (* angle PI) 0.005555555555555556))) (* 2.0 (* (* (- b a) (cos t_0)) (* (+ b a) (sin t_0))))))
double code(double a, double b, double angle) {
double t_0 = (angle * ((double) M_PI)) * 0.005555555555555556;
return 2.0 * (((b - a) * cos(t_0)) * ((b + a) * sin(t_0)));
}
public static double code(double a, double b, double angle) {
double t_0 = (angle * Math.PI) * 0.005555555555555556;
return 2.0 * (((b - a) * Math.cos(t_0)) * ((b + a) * Math.sin(t_0)));
}
def code(a, b, angle): t_0 = (angle * math.pi) * 0.005555555555555556 return 2.0 * (((b - a) * math.cos(t_0)) * ((b + a) * math.sin(t_0)))
function code(a, b, angle) t_0 = Float64(Float64(angle * pi) * 0.005555555555555556) return Float64(2.0 * Float64(Float64(Float64(b - a) * cos(t_0)) * Float64(Float64(b + a) * sin(t_0)))) end
function tmp = code(a, b, angle) t_0 = (angle * pi) * 0.005555555555555556; tmp = 2.0 * (((b - a) * cos(t_0)) * ((b + a) * sin(t_0))); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(N[(angle * Pi), $MachinePrecision] * 0.005555555555555556), $MachinePrecision]}, N[(2.0 * N[(N[(N[(b - a), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision] * N[(N[(b + a), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(angle \cdot \pi\right) \cdot 0.005555555555555556\\
2 \cdot \left(\left(\left(b - a\right) \cdot \cos t_0\right) \cdot \left(\left(b + a\right) \cdot \sin t_0\right)\right)
\end{array}
\end{array}
Initial program 49.2%
associate-*l*49.2%
unpow249.2%
unpow249.2%
difference-of-squares52.8%
Simplified52.8%
Taylor expanded in angle around inf 64.7%
associate-*r*64.7%
*-commutative64.7%
+-commutative64.7%
Simplified64.7%
Final simplification64.7%
(FPCore (a b angle) :precision binary64 (* 2.0 (* (* (sin (/ (* angle PI) 180.0)) (+ b a)) (* (- b a) (cos (* (* angle PI) 0.005555555555555556))))))
double code(double a, double b, double angle) {
return 2.0 * ((sin(((angle * ((double) M_PI)) / 180.0)) * (b + a)) * ((b - a) * cos(((angle * ((double) M_PI)) * 0.005555555555555556))));
}
public static double code(double a, double b, double angle) {
return 2.0 * ((Math.sin(((angle * Math.PI) / 180.0)) * (b + a)) * ((b - a) * Math.cos(((angle * Math.PI) * 0.005555555555555556))));
}
def code(a, b, angle): return 2.0 * ((math.sin(((angle * math.pi) / 180.0)) * (b + a)) * ((b - a) * math.cos(((angle * math.pi) * 0.005555555555555556))))
function code(a, b, angle) return Float64(2.0 * Float64(Float64(sin(Float64(Float64(angle * pi) / 180.0)) * Float64(b + a)) * Float64(Float64(b - a) * cos(Float64(Float64(angle * pi) * 0.005555555555555556))))) end
function tmp = code(a, b, angle) tmp = 2.0 * ((sin(((angle * pi) / 180.0)) * (b + a)) * ((b - a) * cos(((angle * pi) * 0.005555555555555556)))); end
code[a_, b_, angle_] := N[(2.0 * N[(N[(N[Sin[N[(N[(angle * Pi), $MachinePrecision] / 180.0), $MachinePrecision]], $MachinePrecision] * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(N[(b - a), $MachinePrecision] * N[Cos[N[(N[(angle * Pi), $MachinePrecision] * 0.005555555555555556), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\left(\sin \left(\frac{angle \cdot \pi}{180}\right) \cdot \left(b + a\right)\right) \cdot \left(\left(b - a\right) \cdot \cos \left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)\right)\right)
\end{array}
Initial program 49.2%
associate-*l*49.2%
unpow249.2%
unpow249.2%
difference-of-squares52.8%
Simplified52.8%
Taylor expanded in angle around inf 64.7%
associate-*r*64.7%
*-commutative64.7%
+-commutative64.7%
Simplified64.7%
associate-*r*64.9%
*-commutative64.9%
metadata-eval64.9%
div-inv65.6%
*-commutative65.6%
associate-*r/65.6%
*-commutative65.6%
Applied egg-rr65.6%
Final simplification65.6%
(FPCore (a b angle) :precision binary64 (if (<= a 3.9e+215) (* 2.0 (* (- b a) (* (+ b a) (sin (* (* angle PI) 0.005555555555555556))))) (* 0.011111111111111112 (* (* PI (+ b a)) (* angle (- b a))))))
double code(double a, double b, double angle) {
double tmp;
if (a <= 3.9e+215) {
tmp = 2.0 * ((b - a) * ((b + a) * sin(((angle * ((double) M_PI)) * 0.005555555555555556))));
} else {
tmp = 0.011111111111111112 * ((((double) M_PI) * (b + a)) * (angle * (b - a)));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double tmp;
if (a <= 3.9e+215) {
tmp = 2.0 * ((b - a) * ((b + a) * Math.sin(((angle * Math.PI) * 0.005555555555555556))));
} else {
tmp = 0.011111111111111112 * ((Math.PI * (b + a)) * (angle * (b - a)));
}
return tmp;
}
def code(a, b, angle): tmp = 0 if a <= 3.9e+215: tmp = 2.0 * ((b - a) * ((b + a) * math.sin(((angle * math.pi) * 0.005555555555555556)))) else: tmp = 0.011111111111111112 * ((math.pi * (b + a)) * (angle * (b - a))) return tmp
function code(a, b, angle) tmp = 0.0 if (a <= 3.9e+215) tmp = Float64(2.0 * Float64(Float64(b - a) * Float64(Float64(b + a) * sin(Float64(Float64(angle * pi) * 0.005555555555555556))))); else tmp = Float64(0.011111111111111112 * Float64(Float64(pi * Float64(b + a)) * Float64(angle * Float64(b - a)))); end return tmp end
function tmp_2 = code(a, b, angle) tmp = 0.0; if (a <= 3.9e+215) tmp = 2.0 * ((b - a) * ((b + a) * sin(((angle * pi) * 0.005555555555555556)))); else tmp = 0.011111111111111112 * ((pi * (b + a)) * (angle * (b - a))); end tmp_2 = tmp; end
code[a_, b_, angle_] := If[LessEqual[a, 3.9e+215], N[(2.0 * N[(N[(b - a), $MachinePrecision] * N[(N[(b + a), $MachinePrecision] * N[Sin[N[(N[(angle * Pi), $MachinePrecision] * 0.005555555555555556), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(N[(Pi * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(angle * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.9 \cdot 10^{+215}:\\
\;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\left(b + a\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(\pi \cdot \left(b + a\right)\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right)\\
\end{array}
\end{array}
if a < 3.89999999999999965e215Initial program 48.2%
associate-*l*48.2%
unpow248.2%
unpow248.2%
difference-of-squares51.7%
Simplified51.7%
Taylor expanded in angle around inf 63.2%
associate-*r*63.2%
*-commutative63.2%
+-commutative63.2%
Simplified63.2%
Taylor expanded in angle around 0 62.9%
if 3.89999999999999965e215 < a Initial program 63.3%
associate-*l*63.3%
unpow263.3%
unpow263.3%
difference-of-squares69.5%
Simplified69.5%
Taylor expanded in angle around 0 69.5%
associate-*r*75.1%
*-commutative75.1%
+-commutative75.1%
Simplified75.1%
Final simplification63.6%
(FPCore (a b angle) :precision binary64 (if (<= a 5.4e-94) (* b (* b (sin (* PI (* angle 0.011111111111111112))))) (* 0.011111111111111112 (* (* PI (+ b a)) (* angle (- b a))))))
double code(double a, double b, double angle) {
double tmp;
if (a <= 5.4e-94) {
tmp = b * (b * sin((((double) M_PI) * (angle * 0.011111111111111112))));
} else {
tmp = 0.011111111111111112 * ((((double) M_PI) * (b + a)) * (angle * (b - a)));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double tmp;
if (a <= 5.4e-94) {
tmp = b * (b * Math.sin((Math.PI * (angle * 0.011111111111111112))));
} else {
tmp = 0.011111111111111112 * ((Math.PI * (b + a)) * (angle * (b - a)));
}
return tmp;
}
def code(a, b, angle): tmp = 0 if a <= 5.4e-94: tmp = b * (b * math.sin((math.pi * (angle * 0.011111111111111112)))) else: tmp = 0.011111111111111112 * ((math.pi * (b + a)) * (angle * (b - a))) return tmp
function code(a, b, angle) tmp = 0.0 if (a <= 5.4e-94) tmp = Float64(b * Float64(b * sin(Float64(pi * Float64(angle * 0.011111111111111112))))); else tmp = Float64(0.011111111111111112 * Float64(Float64(pi * Float64(b + a)) * Float64(angle * Float64(b - a)))); end return tmp end
function tmp_2 = code(a, b, angle) tmp = 0.0; if (a <= 5.4e-94) tmp = b * (b * sin((pi * (angle * 0.011111111111111112)))); else tmp = 0.011111111111111112 * ((pi * (b + a)) * (angle * (b - a))); end tmp_2 = tmp; end
code[a_, b_, angle_] := If[LessEqual[a, 5.4e-94], N[(b * N[(b * N[Sin[N[(Pi * N[(angle * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(N[(Pi * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(angle * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5.4 \cdot 10^{-94}:\\
\;\;\;\;b \cdot \left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(\pi \cdot \left(b + a\right)\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right)\\
\end{array}
\end{array}
if a < 5.4000000000000002e-94Initial program 51.0%
*-commutative51.0%
associate-*l*51.0%
unpow251.0%
fma-neg51.6%
unpow251.6%
Simplified51.6%
Applied egg-rr32.3%
Taylor expanded in b around inf 26.9%
*-commutative26.9%
unpow226.9%
associate-*r*26.8%
*-commutative26.8%
*-commutative26.8%
Simplified26.8%
Taylor expanded in b around 0 42.5%
*-commutative42.5%
unpow242.5%
*-commutative42.5%
*-commutative42.5%
associate-*r*42.5%
associate-*r*47.4%
Simplified47.4%
if 5.4000000000000002e-94 < a Initial program 45.5%
associate-*l*45.5%
unpow245.5%
unpow245.5%
difference-of-squares51.6%
Simplified51.6%
Taylor expanded in angle around 0 51.5%
associate-*r*64.8%
*-commutative64.8%
+-commutative64.8%
Simplified64.8%
Final simplification53.1%
(FPCore (a b angle) :precision binary64 (if (<= a 3.5e-39) (* angle (* 0.011111111111111112 (* PI (* b b)))) (* 0.011111111111111112 (* angle (* (- b a) (* PI a))))))
double code(double a, double b, double angle) {
double tmp;
if (a <= 3.5e-39) {
tmp = angle * (0.011111111111111112 * (((double) M_PI) * (b * b)));
} else {
tmp = 0.011111111111111112 * (angle * ((b - a) * (((double) M_PI) * a)));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double tmp;
if (a <= 3.5e-39) {
tmp = angle * (0.011111111111111112 * (Math.PI * (b * b)));
} else {
tmp = 0.011111111111111112 * (angle * ((b - a) * (Math.PI * a)));
}
return tmp;
}
def code(a, b, angle): tmp = 0 if a <= 3.5e-39: tmp = angle * (0.011111111111111112 * (math.pi * (b * b))) else: tmp = 0.011111111111111112 * (angle * ((b - a) * (math.pi * a))) return tmp
function code(a, b, angle) tmp = 0.0 if (a <= 3.5e-39) tmp = Float64(angle * Float64(0.011111111111111112 * Float64(pi * Float64(b * b)))); else tmp = Float64(0.011111111111111112 * Float64(angle * Float64(Float64(b - a) * Float64(pi * a)))); end return tmp end
function tmp_2 = code(a, b, angle) tmp = 0.0; if (a <= 3.5e-39) tmp = angle * (0.011111111111111112 * (pi * (b * b))); else tmp = 0.011111111111111112 * (angle * ((b - a) * (pi * a))); end tmp_2 = tmp; end
code[a_, b_, angle_] := If[LessEqual[a, 3.5e-39], N[(angle * N[(0.011111111111111112 * N[(Pi * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(angle * N[(N[(b - a), $MachinePrecision] * N[(Pi * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.5 \cdot 10^{-39}:\\
\;\;\;\;angle \cdot \left(0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot a\right)\right)\right)\\
\end{array}
\end{array}
if a < 3.5e-39Initial program 51.1%
*-commutative51.1%
associate-*l*51.1%
unpow251.1%
fma-neg51.7%
unpow251.7%
Simplified51.7%
Applied egg-rr31.3%
Taylor expanded in b around inf 26.1%
*-commutative26.1%
unpow226.1%
associate-*r*26.0%
*-commutative26.0%
*-commutative26.0%
Simplified26.0%
Taylor expanded in angle around 0 37.5%
*-commutative37.5%
associate-*l*38.0%
*-commutative38.0%
unpow238.0%
Simplified38.0%
if 3.5e-39 < a Initial program 44.3%
associate-*l*44.3%
unpow244.3%
unpow244.3%
difference-of-squares51.4%
Simplified51.4%
Taylor expanded in angle around 0 51.6%
Taylor expanded in a around inf 44.7%
*-commutative44.7%
Simplified44.7%
Final simplification39.9%
(FPCore (a b angle) :precision binary64 (if (<= b 550000000.0) (* angle (* PI (* a (* a -0.011111111111111112)))) (* 0.011111111111111112 (* angle (* (- b a) (* PI b))))))
double code(double a, double b, double angle) {
double tmp;
if (b <= 550000000.0) {
tmp = angle * (((double) M_PI) * (a * (a * -0.011111111111111112)));
} else {
tmp = 0.011111111111111112 * (angle * ((b - a) * (((double) M_PI) * b)));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double tmp;
if (b <= 550000000.0) {
tmp = angle * (Math.PI * (a * (a * -0.011111111111111112)));
} else {
tmp = 0.011111111111111112 * (angle * ((b - a) * (Math.PI * b)));
}
return tmp;
}
def code(a, b, angle): tmp = 0 if b <= 550000000.0: tmp = angle * (math.pi * (a * (a * -0.011111111111111112))) else: tmp = 0.011111111111111112 * (angle * ((b - a) * (math.pi * b))) return tmp
function code(a, b, angle) tmp = 0.0 if (b <= 550000000.0) tmp = Float64(angle * Float64(pi * Float64(a * Float64(a * -0.011111111111111112)))); else tmp = Float64(0.011111111111111112 * Float64(angle * Float64(Float64(b - a) * Float64(pi * b)))); end return tmp end
function tmp_2 = code(a, b, angle) tmp = 0.0; if (b <= 550000000.0) tmp = angle * (pi * (a * (a * -0.011111111111111112))); else tmp = 0.011111111111111112 * (angle * ((b - a) * (pi * b))); end tmp_2 = tmp; end
code[a_, b_, angle_] := If[LessEqual[b, 550000000.0], N[(angle * N[(Pi * N[(a * N[(a * -0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(angle * N[(N[(b - a), $MachinePrecision] * N[(Pi * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 550000000:\\
\;\;\;\;angle \cdot \left(\pi \cdot \left(a \cdot \left(a \cdot -0.011111111111111112\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot b\right)\right)\right)\\
\end{array}
\end{array}
if b < 5.5e8Initial program 51.0%
associate-*l*51.0%
unpow251.0%
unpow251.0%
difference-of-squares54.2%
Simplified54.2%
Taylor expanded in angle around 0 50.2%
Taylor expanded in b around 0 36.3%
*-commutative36.3%
*-commutative36.3%
unpow236.3%
Simplified36.3%
Taylor expanded in angle around 0 36.3%
*-commutative36.3%
*-commutative36.3%
associate-*r*36.3%
associate-*l*36.3%
associate-*r*36.3%
unpow236.3%
associate-*l*36.3%
Simplified36.3%
if 5.5e8 < b Initial program 43.2%
associate-*l*43.2%
unpow243.2%
unpow243.2%
difference-of-squares48.3%
Simplified48.3%
Taylor expanded in angle around 0 49.2%
Taylor expanded in a around 0 50.7%
*-commutative50.7%
Simplified50.7%
Final simplification39.7%
(FPCore (a b angle) :precision binary64 (* 0.011111111111111112 (* angle (* (- b a) (* PI (+ b a))))))
double code(double a, double b, double angle) {
return 0.011111111111111112 * (angle * ((b - a) * (((double) M_PI) * (b + a))));
}
public static double code(double a, double b, double angle) {
return 0.011111111111111112 * (angle * ((b - a) * (Math.PI * (b + a))));
}
def code(a, b, angle): return 0.011111111111111112 * (angle * ((b - a) * (math.pi * (b + a))))
function code(a, b, angle) return Float64(0.011111111111111112 * Float64(angle * Float64(Float64(b - a) * Float64(pi * Float64(b + a))))) end
function tmp = code(a, b, angle) tmp = 0.011111111111111112 * (angle * ((b - a) * (pi * (b + a)))); end
code[a_, b_, angle_] := N[(0.011111111111111112 * N[(angle * N[(N[(b - a), $MachinePrecision] * N[(Pi * N[(b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot \left(b + a\right)\right)\right)\right)
\end{array}
Initial program 49.2%
associate-*l*49.2%
unpow249.2%
unpow249.2%
difference-of-squares52.8%
Simplified52.8%
Taylor expanded in angle around 0 50.0%
Final simplification50.0%
(FPCore (a b angle) :precision binary64 (* 0.011111111111111112 (* (* PI (+ b a)) (* angle (- b a)))))
double code(double a, double b, double angle) {
return 0.011111111111111112 * ((((double) M_PI) * (b + a)) * (angle * (b - a)));
}
public static double code(double a, double b, double angle) {
return 0.011111111111111112 * ((Math.PI * (b + a)) * (angle * (b - a)));
}
def code(a, b, angle): return 0.011111111111111112 * ((math.pi * (b + a)) * (angle * (b - a)))
function code(a, b, angle) return Float64(0.011111111111111112 * Float64(Float64(pi * Float64(b + a)) * Float64(angle * Float64(b - a)))) end
function tmp = code(a, b, angle) tmp = 0.011111111111111112 * ((pi * (b + a)) * (angle * (b - a))); end
code[a_, b_, angle_] := N[(0.011111111111111112 * N[(N[(Pi * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(angle * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.011111111111111112 \cdot \left(\left(\pi \cdot \left(b + a\right)\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right)
\end{array}
Initial program 49.2%
associate-*l*49.2%
unpow249.2%
unpow249.2%
difference-of-squares52.8%
Simplified52.8%
Taylor expanded in angle around 0 50.0%
associate-*r*58.7%
*-commutative58.7%
+-commutative58.7%
Simplified58.7%
Final simplification58.7%
(FPCore (a b angle) :precision binary64 (if (<= b 600000000.0) (* angle (* PI (* a (* a -0.011111111111111112)))) (* angle (* 0.011111111111111112 (* PI (* b b))))))
double code(double a, double b, double angle) {
double tmp;
if (b <= 600000000.0) {
tmp = angle * (((double) M_PI) * (a * (a * -0.011111111111111112)));
} else {
tmp = angle * (0.011111111111111112 * (((double) M_PI) * (b * b)));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double tmp;
if (b <= 600000000.0) {
tmp = angle * (Math.PI * (a * (a * -0.011111111111111112)));
} else {
tmp = angle * (0.011111111111111112 * (Math.PI * (b * b)));
}
return tmp;
}
def code(a, b, angle): tmp = 0 if b <= 600000000.0: tmp = angle * (math.pi * (a * (a * -0.011111111111111112))) else: tmp = angle * (0.011111111111111112 * (math.pi * (b * b))) return tmp
function code(a, b, angle) tmp = 0.0 if (b <= 600000000.0) tmp = Float64(angle * Float64(pi * Float64(a * Float64(a * -0.011111111111111112)))); else tmp = Float64(angle * Float64(0.011111111111111112 * Float64(pi * Float64(b * b)))); end return tmp end
function tmp_2 = code(a, b, angle) tmp = 0.0; if (b <= 600000000.0) tmp = angle * (pi * (a * (a * -0.011111111111111112))); else tmp = angle * (0.011111111111111112 * (pi * (b * b))); end tmp_2 = tmp; end
code[a_, b_, angle_] := If[LessEqual[b, 600000000.0], N[(angle * N[(Pi * N[(a * N[(a * -0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(angle * N[(0.011111111111111112 * N[(Pi * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 600000000:\\
\;\;\;\;angle \cdot \left(\pi \cdot \left(a \cdot \left(a \cdot -0.011111111111111112\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)\\
\end{array}
\end{array}
if b < 6e8Initial program 51.0%
associate-*l*51.0%
unpow251.0%
unpow251.0%
difference-of-squares54.2%
Simplified54.2%
Taylor expanded in angle around 0 50.2%
Taylor expanded in b around 0 36.3%
*-commutative36.3%
*-commutative36.3%
unpow236.3%
Simplified36.3%
Taylor expanded in angle around 0 36.3%
*-commutative36.3%
*-commutative36.3%
associate-*r*36.3%
associate-*l*36.3%
associate-*r*36.3%
unpow236.3%
associate-*l*36.3%
Simplified36.3%
if 6e8 < b Initial program 43.2%
*-commutative43.2%
associate-*l*43.2%
unpow243.2%
fma-neg46.7%
unpow246.7%
Simplified46.7%
Applied egg-rr34.2%
Taylor expanded in b around inf 32.7%
*-commutative32.7%
unpow232.7%
associate-*r*32.6%
*-commutative32.6%
*-commutative32.6%
Simplified32.6%
Taylor expanded in angle around 0 45.5%
*-commutative45.5%
associate-*l*45.6%
*-commutative45.6%
unpow245.6%
Simplified45.6%
Final simplification38.5%
(FPCore (a b angle) :precision binary64 (if (<= b 520000000.0) (* angle (* PI (* a (* a -0.011111111111111112)))) (* (* angle 0.011111111111111112) (* PI (* b b)))))
double code(double a, double b, double angle) {
double tmp;
if (b <= 520000000.0) {
tmp = angle * (((double) M_PI) * (a * (a * -0.011111111111111112)));
} else {
tmp = (angle * 0.011111111111111112) * (((double) M_PI) * (b * b));
}
return tmp;
}
public static double code(double a, double b, double angle) {
double tmp;
if (b <= 520000000.0) {
tmp = angle * (Math.PI * (a * (a * -0.011111111111111112)));
} else {
tmp = (angle * 0.011111111111111112) * (Math.PI * (b * b));
}
return tmp;
}
def code(a, b, angle): tmp = 0 if b <= 520000000.0: tmp = angle * (math.pi * (a * (a * -0.011111111111111112))) else: tmp = (angle * 0.011111111111111112) * (math.pi * (b * b)) return tmp
function code(a, b, angle) tmp = 0.0 if (b <= 520000000.0) tmp = Float64(angle * Float64(pi * Float64(a * Float64(a * -0.011111111111111112)))); else tmp = Float64(Float64(angle * 0.011111111111111112) * Float64(pi * Float64(b * b))); end return tmp end
function tmp_2 = code(a, b, angle) tmp = 0.0; if (b <= 520000000.0) tmp = angle * (pi * (a * (a * -0.011111111111111112))); else tmp = (angle * 0.011111111111111112) * (pi * (b * b)); end tmp_2 = tmp; end
code[a_, b_, angle_] := If[LessEqual[b, 520000000.0], N[(angle * N[(Pi * N[(a * N[(a * -0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle * 0.011111111111111112), $MachinePrecision] * N[(Pi * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 520000000:\\
\;\;\;\;angle \cdot \left(\pi \cdot \left(a \cdot \left(a \cdot -0.011111111111111112\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(angle \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\\
\end{array}
\end{array}
if b < 5.2e8Initial program 51.0%
associate-*l*51.0%
unpow251.0%
unpow251.0%
difference-of-squares54.2%
Simplified54.2%
Taylor expanded in angle around 0 50.2%
Taylor expanded in b around 0 36.3%
*-commutative36.3%
*-commutative36.3%
unpow236.3%
Simplified36.3%
Taylor expanded in angle around 0 36.3%
*-commutative36.3%
*-commutative36.3%
associate-*r*36.3%
associate-*l*36.3%
associate-*r*36.3%
unpow236.3%
associate-*l*36.3%
Simplified36.3%
if 5.2e8 < b Initial program 43.2%
associate-*l*43.2%
unpow243.2%
unpow243.2%
difference-of-squares48.3%
Simplified48.3%
Taylor expanded in angle around 0 49.2%
Taylor expanded in b around inf 45.5%
associate-*r*45.6%
*-commutative45.6%
*-commutative45.6%
unpow245.6%
*-commutative45.6%
Simplified45.6%
Final simplification38.5%
(FPCore (a b angle) :precision binary64 (* -0.011111111111111112 (* PI (* angle (* a a)))))
double code(double a, double b, double angle) {
return -0.011111111111111112 * (((double) M_PI) * (angle * (a * a)));
}
public static double code(double a, double b, double angle) {
return -0.011111111111111112 * (Math.PI * (angle * (a * a)));
}
def code(a, b, angle): return -0.011111111111111112 * (math.pi * (angle * (a * a)))
function code(a, b, angle) return Float64(-0.011111111111111112 * Float64(pi * Float64(angle * Float64(a * a)))) end
function tmp = code(a, b, angle) tmp = -0.011111111111111112 * (pi * (angle * (a * a))); end
code[a_, b_, angle_] := N[(-0.011111111111111112 * N[(Pi * N[(angle * N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
-0.011111111111111112 \cdot \left(\pi \cdot \left(angle \cdot \left(a \cdot a\right)\right)\right)
\end{array}
Initial program 49.2%
associate-*l*49.2%
unpow249.2%
unpow249.2%
difference-of-squares52.8%
Simplified52.8%
Taylor expanded in angle around 0 50.0%
Taylor expanded in b around 0 31.0%
*-commutative31.0%
*-commutative31.0%
unpow231.0%
Simplified31.0%
Taylor expanded in angle around 0 31.0%
*-commutative31.0%
*-commutative31.0%
associate-*r*31.0%
associate-*l*31.0%
associate-*r*31.0%
unpow231.0%
associate-*l*31.0%
Simplified31.0%
Taylor expanded in angle around 0 31.0%
associate-*r*31.0%
*-commutative31.0%
unpow231.0%
Simplified31.0%
Final simplification31.0%
(FPCore (a b angle) :precision binary64 (* angle (* PI (* a (* a -0.011111111111111112)))))
double code(double a, double b, double angle) {
return angle * (((double) M_PI) * (a * (a * -0.011111111111111112)));
}
public static double code(double a, double b, double angle) {
return angle * (Math.PI * (a * (a * -0.011111111111111112)));
}
def code(a, b, angle): return angle * (math.pi * (a * (a * -0.011111111111111112)))
function code(a, b, angle) return Float64(angle * Float64(pi * Float64(a * Float64(a * -0.011111111111111112)))) end
function tmp = code(a, b, angle) tmp = angle * (pi * (a * (a * -0.011111111111111112))); end
code[a_, b_, angle_] := N[(angle * N[(Pi * N[(a * N[(a * -0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
angle \cdot \left(\pi \cdot \left(a \cdot \left(a \cdot -0.011111111111111112\right)\right)\right)
\end{array}
Initial program 49.2%
associate-*l*49.2%
unpow249.2%
unpow249.2%
difference-of-squares52.8%
Simplified52.8%
Taylor expanded in angle around 0 50.0%
Taylor expanded in b around 0 31.0%
*-commutative31.0%
*-commutative31.0%
unpow231.0%
Simplified31.0%
Taylor expanded in angle around 0 31.0%
*-commutative31.0%
*-commutative31.0%
associate-*r*31.0%
associate-*l*31.0%
associate-*r*31.0%
unpow231.0%
associate-*l*31.0%
Simplified31.0%
Final simplification31.0%
herbie shell --seed 2023199
(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)))))