
(FPCore (r a b) :precision binary64 (/ (* r (sin b)) (cos (+ a b))))
double code(double r, double a, double b) {
return (r * sin(b)) / cos((a + b));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (r * sin(b)) / cos((a + b))
end function
public static double code(double r, double a, double b) {
return (r * Math.sin(b)) / Math.cos((a + b));
}
def code(r, a, b): return (r * math.sin(b)) / math.cos((a + b))
function code(r, a, b) return Float64(Float64(r * sin(b)) / cos(Float64(a + b))) end
function tmp = code(r, a, b) tmp = (r * sin(b)) / cos((a + b)); end
code[r_, a_, b_] := N[(N[(r * N[Sin[b], $MachinePrecision]), $MachinePrecision] / N[Cos[N[(a + b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{r \cdot \sin b}{\cos \left(a + b\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (r a b) :precision binary64 (/ (* r (sin b)) (cos (+ a b))))
double code(double r, double a, double b) {
return (r * sin(b)) / cos((a + b));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (r * sin(b)) / cos((a + b))
end function
public static double code(double r, double a, double b) {
return (r * Math.sin(b)) / Math.cos((a + b));
}
def code(r, a, b): return (r * math.sin(b)) / math.cos((a + b))
function code(r, a, b) return Float64(Float64(r * sin(b)) / cos(Float64(a + b))) end
function tmp = code(r, a, b) tmp = (r * sin(b)) / cos((a + b)); end
code[r_, a_, b_] := N[(N[(r * N[Sin[b], $MachinePrecision]), $MachinePrecision] / N[Cos[N[(a + b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{r \cdot \sin b}{\cos \left(a + b\right)}
\end{array}
(FPCore (r a b) :precision binary64 (* (sin b) (/ r (- (* (cos a) (cos b)) (* (sin b) (sin a))))))
double code(double r, double a, double b) {
return sin(b) * (r / ((cos(a) * cos(b)) - (sin(b) * sin(a))));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = sin(b) * (r / ((cos(a) * cos(b)) - (sin(b) * sin(a))))
end function
public static double code(double r, double a, double b) {
return Math.sin(b) * (r / ((Math.cos(a) * Math.cos(b)) - (Math.sin(b) * Math.sin(a))));
}
def code(r, a, b): return math.sin(b) * (r / ((math.cos(a) * math.cos(b)) - (math.sin(b) * math.sin(a))))
function code(r, a, b) return Float64(sin(b) * Float64(r / Float64(Float64(cos(a) * cos(b)) - Float64(sin(b) * sin(a))))) end
function tmp = code(r, a, b) tmp = sin(b) * (r / ((cos(a) * cos(b)) - (sin(b) * sin(a)))); end
code[r_, a_, b_] := N[(N[Sin[b], $MachinePrecision] * N[(r / N[(N[(N[Cos[a], $MachinePrecision] * N[Cos[b], $MachinePrecision]), $MachinePrecision] - N[(N[Sin[b], $MachinePrecision] * N[Sin[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin b \cdot \frac{r}{\cos a \cdot \cos b - \sin b \cdot \sin a}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
cos-sum99.4%
Applied egg-rr99.4%
Taylor expanded in r around 0 99.4%
*-commutative99.4%
associate-/l*99.5%
Simplified99.5%
Final simplification99.5%
(FPCore (r a b) :precision binary64 (* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a))))))
double code(double r, double a, double b) {
return r * (sin(b) / ((cos(a) * cos(b)) - (sin(b) * sin(a))));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = r * (sin(b) / ((cos(a) * cos(b)) - (sin(b) * sin(a))))
end function
public static double code(double r, double a, double b) {
return r * (Math.sin(b) / ((Math.cos(a) * Math.cos(b)) - (Math.sin(b) * Math.sin(a))));
}
def code(r, a, b): return r * (math.sin(b) / ((math.cos(a) * math.cos(b)) - (math.sin(b) * math.sin(a))))
function code(r, a, b) return Float64(r * Float64(sin(b) / Float64(Float64(cos(a) * cos(b)) - Float64(sin(b) * sin(a))))) end
function tmp = code(r, a, b) tmp = r * (sin(b) / ((cos(a) * cos(b)) - (sin(b) * sin(a)))); end
code[r_, a_, b_] := N[(r * N[(N[Sin[b], $MachinePrecision] / N[(N[(N[Cos[a], $MachinePrecision] * N[Cos[b], $MachinePrecision]), $MachinePrecision] - N[(N[Sin[b], $MachinePrecision] * N[Sin[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
r \cdot \frac{\sin b}{\cos a \cdot \cos b - \sin b \cdot \sin a}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
cos-sum99.4%
Applied egg-rr99.4%
Final simplification99.4%
(FPCore (r a b) :precision binary64 (/ 1.0 (- (* (cos a) (/ (cos b) (* (sin b) r))) (/ (sin a) r))))
double code(double r, double a, double b) {
return 1.0 / ((cos(a) * (cos(b) / (sin(b) * r))) - (sin(a) / r));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = 1.0d0 / ((cos(a) * (cos(b) / (sin(b) * r))) - (sin(a) / r))
end function
public static double code(double r, double a, double b) {
return 1.0 / ((Math.cos(a) * (Math.cos(b) / (Math.sin(b) * r))) - (Math.sin(a) / r));
}
def code(r, a, b): return 1.0 / ((math.cos(a) * (math.cos(b) / (math.sin(b) * r))) - (math.sin(a) / r))
function code(r, a, b) return Float64(1.0 / Float64(Float64(cos(a) * Float64(cos(b) / Float64(sin(b) * r))) - Float64(sin(a) / r))) end
function tmp = code(r, a, b) tmp = 1.0 / ((cos(a) * (cos(b) / (sin(b) * r))) - (sin(a) / r)); end
code[r_, a_, b_] := N[(1.0 / N[(N[(N[Cos[a], $MachinePrecision] * N[(N[Cos[b], $MachinePrecision] / N[(N[Sin[b], $MachinePrecision] * r), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[Sin[a], $MachinePrecision] / r), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\cos a \cdot \frac{\cos b}{\sin b \cdot r} - \frac{\sin a}{r}}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
associate-*r/73.5%
clear-num72.9%
*-commutative72.9%
Applied egg-rr72.9%
cos-sum98.7%
div-sub90.9%
Applied egg-rr90.9%
*-commutative90.9%
associate-/l*90.9%
*-commutative90.9%
*-commutative90.9%
times-frac98.8%
*-inverses98.8%
associate-/r/98.8%
/-rgt-identity98.8%
Simplified98.8%
Final simplification98.8%
(FPCore (r a b) :precision binary64 (* r (/ (sin b) (fma (cos b) (cos a) 0.0))))
double code(double r, double a, double b) {
return r * (sin(b) / fma(cos(b), cos(a), 0.0));
}
function code(r, a, b) return Float64(r * Float64(sin(b) / fma(cos(b), cos(a), 0.0))) end
code[r_, a_, b_] := N[(r * N[(N[Sin[b], $MachinePrecision] / N[(N[Cos[b], $MachinePrecision] * N[Cos[a], $MachinePrecision] + 0.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
r \cdot \frac{\sin b}{\mathsf{fma}\left(\cos b, \cos a, 0\right)}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
cos-sum99.4%
cancel-sign-sub-inv99.4%
fma-define99.4%
Applied egg-rr99.4%
add-sqr-sqrt50.1%
sqrt-unprod87.6%
sqr-neg87.6%
sqrt-unprod37.5%
add-sqr-sqrt72.9%
sin-mult74.8%
div-sub74.8%
Applied egg-rr74.7%
+-inverses74.7%
Simplified74.7%
Final simplification74.7%
(FPCore (r a b) :precision binary64 (if (or (<= a -1.15e-5) (not (<= a 1.2e-7))) (* r (/ (sin b) (cos a))) (* r (/ (sin b) (cos b)))))
double code(double r, double a, double b) {
double tmp;
if ((a <= -1.15e-5) || !(a <= 1.2e-7)) {
tmp = r * (sin(b) / cos(a));
} else {
tmp = r * (sin(b) / cos(b));
}
return tmp;
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-1.15d-5)) .or. (.not. (a <= 1.2d-7))) then
tmp = r * (sin(b) / cos(a))
else
tmp = r * (sin(b) / cos(b))
end if
code = tmp
end function
public static double code(double r, double a, double b) {
double tmp;
if ((a <= -1.15e-5) || !(a <= 1.2e-7)) {
tmp = r * (Math.sin(b) / Math.cos(a));
} else {
tmp = r * (Math.sin(b) / Math.cos(b));
}
return tmp;
}
def code(r, a, b): tmp = 0 if (a <= -1.15e-5) or not (a <= 1.2e-7): tmp = r * (math.sin(b) / math.cos(a)) else: tmp = r * (math.sin(b) / math.cos(b)) return tmp
function code(r, a, b) tmp = 0.0 if ((a <= -1.15e-5) || !(a <= 1.2e-7)) tmp = Float64(r * Float64(sin(b) / cos(a))); else tmp = Float64(r * Float64(sin(b) / cos(b))); end return tmp end
function tmp_2 = code(r, a, b) tmp = 0.0; if ((a <= -1.15e-5) || ~((a <= 1.2e-7))) tmp = r * (sin(b) / cos(a)); else tmp = r * (sin(b) / cos(b)); end tmp_2 = tmp; end
code[r_, a_, b_] := If[Or[LessEqual[a, -1.15e-5], N[Not[LessEqual[a, 1.2e-7]], $MachinePrecision]], N[(r * N[(N[Sin[b], $MachinePrecision] / N[Cos[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(r * N[(N[Sin[b], $MachinePrecision] / N[Cos[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{-5} \lor \neg \left(a \leq 1.2 \cdot 10^{-7}\right):\\
\;\;\;\;r \cdot \frac{\sin b}{\cos a}\\
\mathbf{else}:\\
\;\;\;\;r \cdot \frac{\sin b}{\cos b}\\
\end{array}
\end{array}
if a < -1.15e-5 or 1.19999999999999989e-7 < a Initial program 51.5%
associate-/l*51.6%
remove-double-neg51.6%
remove-double-neg51.6%
+-commutative51.6%
Simplified51.6%
Taylor expanded in b around 0 52.2%
if -1.15e-5 < a < 1.19999999999999989e-7Initial program 98.1%
associate-/l*98.0%
remove-double-neg98.0%
remove-double-neg98.0%
+-commutative98.0%
Simplified98.0%
Taylor expanded in a around 0 98.0%
Final simplification73.9%
(FPCore (r a b) :precision binary64 (if (or (<= a -4e-5) (not (<= a 1.2e-7))) (* r (/ (sin b) (cos a))) (/ (* (sin b) r) (cos b))))
double code(double r, double a, double b) {
double tmp;
if ((a <= -4e-5) || !(a <= 1.2e-7)) {
tmp = r * (sin(b) / cos(a));
} else {
tmp = (sin(b) * r) / cos(b);
}
return tmp;
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-4d-5)) .or. (.not. (a <= 1.2d-7))) then
tmp = r * (sin(b) / cos(a))
else
tmp = (sin(b) * r) / cos(b)
end if
code = tmp
end function
public static double code(double r, double a, double b) {
double tmp;
if ((a <= -4e-5) || !(a <= 1.2e-7)) {
tmp = r * (Math.sin(b) / Math.cos(a));
} else {
tmp = (Math.sin(b) * r) / Math.cos(b);
}
return tmp;
}
def code(r, a, b): tmp = 0 if (a <= -4e-5) or not (a <= 1.2e-7): tmp = r * (math.sin(b) / math.cos(a)) else: tmp = (math.sin(b) * r) / math.cos(b) return tmp
function code(r, a, b) tmp = 0.0 if ((a <= -4e-5) || !(a <= 1.2e-7)) tmp = Float64(r * Float64(sin(b) / cos(a))); else tmp = Float64(Float64(sin(b) * r) / cos(b)); end return tmp end
function tmp_2 = code(r, a, b) tmp = 0.0; if ((a <= -4e-5) || ~((a <= 1.2e-7))) tmp = r * (sin(b) / cos(a)); else tmp = (sin(b) * r) / cos(b); end tmp_2 = tmp; end
code[r_, a_, b_] := If[Or[LessEqual[a, -4e-5], N[Not[LessEqual[a, 1.2e-7]], $MachinePrecision]], N[(r * N[(N[Sin[b], $MachinePrecision] / N[Cos[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sin[b], $MachinePrecision] * r), $MachinePrecision] / N[Cos[b], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{-5} \lor \neg \left(a \leq 1.2 \cdot 10^{-7}\right):\\
\;\;\;\;r \cdot \frac{\sin b}{\cos a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin b \cdot r}{\cos b}\\
\end{array}
\end{array}
if a < -4.00000000000000033e-5 or 1.19999999999999989e-7 < a Initial program 51.5%
associate-/l*51.6%
remove-double-neg51.6%
remove-double-neg51.6%
+-commutative51.6%
Simplified51.6%
Taylor expanded in b around 0 52.2%
if -4.00000000000000033e-5 < a < 1.19999999999999989e-7Initial program 98.1%
associate-/l*98.0%
remove-double-neg98.0%
remove-double-neg98.0%
+-commutative98.0%
Simplified98.0%
Taylor expanded in a around 0 98.1%
*-commutative98.1%
Simplified98.1%
Final simplification73.9%
(FPCore (r a b) :precision binary64 (* r (/ (sin b) (cos (+ b a)))))
double code(double r, double a, double b) {
return r * (sin(b) / cos((b + a)));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = r * (sin(b) / cos((b + a)))
end function
public static double code(double r, double a, double b) {
return r * (Math.sin(b) / Math.cos((b + a)));
}
def code(r, a, b): return r * (math.sin(b) / math.cos((b + a)))
function code(r, a, b) return Float64(r * Float64(sin(b) / cos(Float64(b + a)))) end
function tmp = code(r, a, b) tmp = r * (sin(b) / cos((b + a))); end
code[r_, a_, b_] := N[(r * N[(N[Sin[b], $MachinePrecision] / N[Cos[N[(b + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
r \cdot \frac{\sin b}{\cos \left(b + a\right)}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
Final simplification73.6%
(FPCore (r a b) :precision binary64 (* (sin b) (/ r (cos (+ b a)))))
double code(double r, double a, double b) {
return sin(b) * (r / cos((b + a)));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = sin(b) * (r / cos((b + a)))
end function
public static double code(double r, double a, double b) {
return Math.sin(b) * (r / Math.cos((b + a)));
}
def code(r, a, b): return math.sin(b) * (r / math.cos((b + a)))
function code(r, a, b) return Float64(sin(b) * Float64(r / cos(Float64(b + a)))) end
function tmp = code(r, a, b) tmp = sin(b) * (r / cos((b + a))); end
code[r_, a_, b_] := N[(N[Sin[b], $MachinePrecision] * N[(r / N[Cos[N[(b + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin b \cdot \frac{r}{\cos \left(b + a\right)}
\end{array}
Initial program 73.5%
+-commutative73.5%
Simplified73.5%
*-commutative73.5%
associate-/l*73.6%
Applied egg-rr73.6%
Final simplification73.6%
(FPCore (r a b) :precision binary64 (/ (* (sin b) r) (cos (- b a))))
double code(double r, double a, double b) {
return (sin(b) * r) / cos((b - a));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (sin(b) * r) / cos((b - a))
end function
public static double code(double r, double a, double b) {
return (Math.sin(b) * r) / Math.cos((b - a));
}
def code(r, a, b): return (math.sin(b) * r) / math.cos((b - a))
function code(r, a, b) return Float64(Float64(sin(b) * r) / cos(Float64(b - a))) end
function tmp = code(r, a, b) tmp = (sin(b) * r) / cos((b - a)); end
code[r_, a_, b_] := N[(N[(N[Sin[b], $MachinePrecision] * r), $MachinePrecision] / N[Cos[N[(b - a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin b \cdot r}{\cos \left(b - a\right)}
\end{array}
Initial program 73.5%
+-commutative73.5%
Simplified73.5%
cos-sum99.4%
Applied egg-rr99.4%
expm1-log1p-u99.4%
expm1-undefine99.3%
Applied egg-rr99.3%
expm1-define99.4%
Simplified99.4%
expm1-log1p-u99.4%
cancel-sign-sub-inv99.4%
add-sqr-sqrt50.0%
sqrt-unprod87.6%
sqr-neg87.6%
sqrt-unprod37.5%
add-sqr-sqrt72.9%
cos-diff73.9%
Applied egg-rr73.9%
Final simplification73.9%
(FPCore (r a b) :precision binary64 (* r (/ (sin b) (cos a))))
double code(double r, double a, double b) {
return r * (sin(b) / cos(a));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = r * (sin(b) / cos(a))
end function
public static double code(double r, double a, double b) {
return r * (Math.sin(b) / Math.cos(a));
}
def code(r, a, b): return r * (math.sin(b) / math.cos(a))
function code(r, a, b) return Float64(r * Float64(sin(b) / cos(a))) end
function tmp = code(r, a, b) tmp = r * (sin(b) / cos(a)); end
code[r_, a_, b_] := N[(r * N[(N[Sin[b], $MachinePrecision] / N[Cos[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
r \cdot \frac{\sin b}{\cos a}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 52.1%
Final simplification52.1%
(FPCore (r a b) :precision binary64 (* b (/ r (cos a))))
double code(double r, double a, double b) {
return b * (r / cos(a));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = b * (r / cos(a))
end function
public static double code(double r, double a, double b) {
return b * (r / Math.cos(a));
}
def code(r, a, b): return b * (r / math.cos(a))
function code(r, a, b) return Float64(b * Float64(r / cos(a))) end
function tmp = code(r, a, b) tmp = b * (r / cos(a)); end
code[r_, a_, b_] := N[(b * N[(r / N[Cos[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \frac{r}{\cos a}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 47.0%
associate-/l*47.0%
Simplified47.0%
Final simplification47.0%
(FPCore (r a b) :precision binary64 (* r (/ b (cos a))))
double code(double r, double a, double b) {
return r * (b / cos(a));
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = r * (b / cos(a))
end function
public static double code(double r, double a, double b) {
return r * (b / Math.cos(a));
}
def code(r, a, b): return r * (b / math.cos(a))
function code(r, a, b) return Float64(r * Float64(b / cos(a))) end
function tmp = code(r, a, b) tmp = r * (b / cos(a)); end
code[r_, a_, b_] := N[(r * N[(b / N[Cos[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
r \cdot \frac{b}{\cos a}
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 47.0%
Final simplification47.0%
(FPCore (r a b) :precision binary64 (* b r))
double code(double r, double a, double b) {
return b * r;
}
real(8) function code(r, a, b)
real(8), intent (in) :: r
real(8), intent (in) :: a
real(8), intent (in) :: b
code = b * r
end function
public static double code(double r, double a, double b) {
return b * r;
}
def code(r, a, b): return b * r
function code(r, a, b) return Float64(b * r) end
function tmp = code(r, a, b) tmp = b * r; end
code[r_, a_, b_] := N[(b * r), $MachinePrecision]
\begin{array}{l}
\\
b \cdot r
\end{array}
Initial program 73.5%
associate-/l*73.6%
remove-double-neg73.6%
remove-double-neg73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 47.0%
associate-/l*47.0%
Simplified47.0%
Taylor expanded in a around 0 32.4%
*-commutative32.4%
Simplified32.4%
Final simplification32.4%
herbie shell --seed 2024044
(FPCore (r a b)
:name "rsin A (should all be same)"
:precision binary64
(/ (* r (sin b)) (cos (+ a b))))