
(FPCore (eh ew t) :precision binary64 (let* ((t_1 (atan (/ (* (- eh) (tan t)) ew)))) (fabs (- (* (* ew (cos t)) (cos t_1)) (* (* eh (sin t)) (sin t_1))))))
double code(double eh, double ew, double t) {
double t_1 = atan(((-eh * tan(t)) / ew));
return fabs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1))));
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
real(8) :: t_1
t_1 = atan(((-eh * tan(t)) / ew))
code = abs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1))))
end function
public static double code(double eh, double ew, double t) {
double t_1 = Math.atan(((-eh * Math.tan(t)) / ew));
return Math.abs((((ew * Math.cos(t)) * Math.cos(t_1)) - ((eh * Math.sin(t)) * Math.sin(t_1))));
}
def code(eh, ew, t): t_1 = math.atan(((-eh * math.tan(t)) / ew)) return math.fabs((((ew * math.cos(t)) * math.cos(t_1)) - ((eh * math.sin(t)) * math.sin(t_1))))
function code(eh, ew, t) t_1 = atan(Float64(Float64(Float64(-eh) * tan(t)) / ew)) return abs(Float64(Float64(Float64(ew * cos(t)) * cos(t_1)) - Float64(Float64(eh * sin(t)) * sin(t_1)))) end
function tmp = code(eh, ew, t) t_1 = atan(((-eh * tan(t)) / ew)); tmp = abs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1)))); end
code[eh_, ew_, t_] := Block[{t$95$1 = N[ArcTan[N[(N[((-eh) * N[Tan[t], $MachinePrecision]), $MachinePrecision] / ew), $MachinePrecision]], $MachinePrecision]}, N[Abs[N[(N[(N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision] - N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\\
\left|\left(ew \cdot \cos t\right) \cdot \cos t\_1 - \left(eh \cdot \sin t\right) \cdot \sin t\_1\right|
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (eh ew t) :precision binary64 (let* ((t_1 (atan (/ (* (- eh) (tan t)) ew)))) (fabs (- (* (* ew (cos t)) (cos t_1)) (* (* eh (sin t)) (sin t_1))))))
double code(double eh, double ew, double t) {
double t_1 = atan(((-eh * tan(t)) / ew));
return fabs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1))));
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
real(8) :: t_1
t_1 = atan(((-eh * tan(t)) / ew))
code = abs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1))))
end function
public static double code(double eh, double ew, double t) {
double t_1 = Math.atan(((-eh * Math.tan(t)) / ew));
return Math.abs((((ew * Math.cos(t)) * Math.cos(t_1)) - ((eh * Math.sin(t)) * Math.sin(t_1))));
}
def code(eh, ew, t): t_1 = math.atan(((-eh * math.tan(t)) / ew)) return math.fabs((((ew * math.cos(t)) * math.cos(t_1)) - ((eh * math.sin(t)) * math.sin(t_1))))
function code(eh, ew, t) t_1 = atan(Float64(Float64(Float64(-eh) * tan(t)) / ew)) return abs(Float64(Float64(Float64(ew * cos(t)) * cos(t_1)) - Float64(Float64(eh * sin(t)) * sin(t_1)))) end
function tmp = code(eh, ew, t) t_1 = atan(((-eh * tan(t)) / ew)); tmp = abs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1)))); end
code[eh_, ew_, t_] := Block[{t$95$1 = N[ArcTan[N[(N[((-eh) * N[Tan[t], $MachinePrecision]), $MachinePrecision] / ew), $MachinePrecision]], $MachinePrecision]}, N[Abs[N[(N[(N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision] - N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\\
\left|\left(ew \cdot \cos t\right) \cdot \cos t\_1 - \left(eh \cdot \sin t\right) \cdot \sin t\_1\right|
\end{array}
\end{array}
(FPCore (eh ew t) :precision binary64 (let* ((t_1 (atan (* (- eh) (/ (tan t) ew))))) (fabs (- (* (* ew (cos t)) (cos t_1)) (* eh (* (sin t) (sin t_1)))))))
double code(double eh, double ew, double t) {
double t_1 = atan((-eh * (tan(t) / ew)));
return fabs((((ew * cos(t)) * cos(t_1)) - (eh * (sin(t) * sin(t_1)))));
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
real(8) :: t_1
t_1 = atan((-eh * (tan(t) / ew)))
code = abs((((ew * cos(t)) * cos(t_1)) - (eh * (sin(t) * sin(t_1)))))
end function
public static double code(double eh, double ew, double t) {
double t_1 = Math.atan((-eh * (Math.tan(t) / ew)));
return Math.abs((((ew * Math.cos(t)) * Math.cos(t_1)) - (eh * (Math.sin(t) * Math.sin(t_1)))));
}
def code(eh, ew, t): t_1 = math.atan((-eh * (math.tan(t) / ew))) return math.fabs((((ew * math.cos(t)) * math.cos(t_1)) - (eh * (math.sin(t) * math.sin(t_1)))))
function code(eh, ew, t) t_1 = atan(Float64(Float64(-eh) * Float64(tan(t) / ew))) return abs(Float64(Float64(Float64(ew * cos(t)) * cos(t_1)) - Float64(eh * Float64(sin(t) * sin(t_1))))) end
function tmp = code(eh, ew, t) t_1 = atan((-eh * (tan(t) / ew))); tmp = abs((((ew * cos(t)) * cos(t_1)) - (eh * (sin(t) * sin(t_1))))); end
code[eh_, ew_, t_] := Block[{t$95$1 = N[ArcTan[N[((-eh) * N[(N[Tan[t], $MachinePrecision] / ew), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, N[Abs[N[(N[(N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision] - N[(eh * N[(N[Sin[t], $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \tan^{-1} \left(\left(-eh\right) \cdot \frac{\tan t}{ew}\right)\\
\left|\left(ew \cdot \cos t\right) \cdot \cos t\_1 - eh \cdot \left(\sin t \cdot \sin t\_1\right)\right|
\end{array}
\end{array}
Initial program 99.7%
sub-neg99.7%
associate-*l*99.7%
distribute-rgt-neg-in99.7%
cancel-sign-sub99.7%
associate-/l*99.7%
Simplified99.7%
(FPCore (eh ew t) :precision binary64 (fabs (- (* ew (/ (cos t) (hypot 1.0 (/ eh (/ ew (tan t)))))) (* eh (* (sin t) (sin (atan (* (- eh) (/ (tan t) ew)))))))))
double code(double eh, double ew, double t) {
return fabs(((ew * (cos(t) / hypot(1.0, (eh / (ew / tan(t)))))) - (eh * (sin(t) * sin(atan((-eh * (tan(t) / ew))))))));
}
public static double code(double eh, double ew, double t) {
return Math.abs(((ew * (Math.cos(t) / Math.hypot(1.0, (eh / (ew / Math.tan(t)))))) - (eh * (Math.sin(t) * Math.sin(Math.atan((-eh * (Math.tan(t) / ew))))))));
}
def code(eh, ew, t): return math.fabs(((ew * (math.cos(t) / math.hypot(1.0, (eh / (ew / math.tan(t)))))) - (eh * (math.sin(t) * math.sin(math.atan((-eh * (math.tan(t) / ew))))))))
function code(eh, ew, t) return abs(Float64(Float64(ew * Float64(cos(t) / hypot(1.0, Float64(eh / Float64(ew / tan(t)))))) - Float64(eh * Float64(sin(t) * sin(atan(Float64(Float64(-eh) * Float64(tan(t) / ew)))))))) end
function tmp = code(eh, ew, t) tmp = abs(((ew * (cos(t) / hypot(1.0, (eh / (ew / tan(t)))))) - (eh * (sin(t) * sin(atan((-eh * (tan(t) / ew)))))))); end
code[eh_, ew_, t_] := N[Abs[N[(N[(ew * N[(N[Cos[t], $MachinePrecision] / N[Sqrt[1.0 ^ 2 + N[(eh / N[(ew / N[Tan[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(eh * N[(N[Sin[t], $MachinePrecision] * N[Sin[N[ArcTan[N[((-eh) * N[(N[Tan[t], $MachinePrecision] / ew), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\left|ew \cdot \frac{\cos t}{\mathsf{hypot}\left(1, \frac{eh}{\frac{ew}{\tan t}}\right)} - eh \cdot \left(\sin t \cdot \sin \tan^{-1} \left(\left(-eh\right) \cdot \frac{\tan t}{ew}\right)\right)\right|
\end{array}
Initial program 99.7%
sub-neg99.7%
associate-*l*99.7%
distribute-rgt-neg-in99.7%
cancel-sign-sub99.7%
associate-/l*99.7%
Simplified99.7%
cos-atan99.7%
un-div-inv99.7%
hypot-1-def99.7%
add-sqr-sqrt46.4%
sqrt-unprod92.0%
sqr-neg92.0%
sqrt-unprod53.4%
add-sqr-sqrt99.7%
Applied egg-rr99.7%
associate-/l*99.7%
associate-*r/99.7%
associate-*l/99.7%
associate-/r/99.7%
Simplified99.7%
(FPCore (eh ew t) :precision binary64 (fabs (- (* ew (cos t)) (* (* eh (sin t)) (sin (atan (/ eh (/ (- ew) (tan t)))))))))
double code(double eh, double ew, double t) {
return fabs(((ew * cos(t)) - ((eh * sin(t)) * sin(atan((eh / (-ew / tan(t))))))));
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
code = abs(((ew * cos(t)) - ((eh * sin(t)) * sin(atan((eh / (-ew / tan(t))))))))
end function
public static double code(double eh, double ew, double t) {
return Math.abs(((ew * Math.cos(t)) - ((eh * Math.sin(t)) * Math.sin(Math.atan((eh / (-ew / Math.tan(t))))))));
}
def code(eh, ew, t): return math.fabs(((ew * math.cos(t)) - ((eh * math.sin(t)) * math.sin(math.atan((eh / (-ew / math.tan(t))))))))
function code(eh, ew, t) return abs(Float64(Float64(ew * cos(t)) - Float64(Float64(eh * sin(t)) * sin(atan(Float64(eh / Float64(Float64(-ew) / tan(t)))))))) end
function tmp = code(eh, ew, t) tmp = abs(((ew * cos(t)) - ((eh * sin(t)) * sin(atan((eh / (-ew / tan(t)))))))); end
code[eh_, ew_, t_] := N[Abs[N[(N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision] - N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[N[ArcTan[N[(eh / N[((-ew) / N[Tan[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\left|ew \cdot \cos t - \left(eh \cdot \sin t\right) \cdot \sin \tan^{-1} \left(\frac{eh}{\frac{-ew}{\tan t}}\right)\right|
\end{array}
Initial program 99.7%
sub-neg99.7%
associate-*l*99.7%
distribute-rgt-neg-in99.7%
cancel-sign-sub99.7%
associate-/l*99.7%
Simplified99.7%
add-cube-cbrt98.4%
pow398.4%
Applied egg-rr98.4%
Taylor expanded in eh around 0 98.2%
mul-1-neg98.2%
+-commutative98.2%
unsub-neg98.2%
associate-*r*98.2%
metadata-eval98.2%
associate-*l/98.2%
associate-/r/98.2%
times-frac98.2%
neg-mul-198.2%
*-lft-identity98.2%
Simplified98.2%
Final simplification98.2%
(FPCore (eh ew t) :precision binary64 (if (or (<= ew -2.16e-116) (not (<= ew 5.8e-116))) (fabs (* ew (cos t))) (fabs (* eh (sin t)))))
double code(double eh, double ew, double t) {
double tmp;
if ((ew <= -2.16e-116) || !(ew <= 5.8e-116)) {
tmp = fabs((ew * cos(t)));
} else {
tmp = fabs((eh * sin(t)));
}
return tmp;
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
real(8) :: tmp
if ((ew <= (-2.16d-116)) .or. (.not. (ew <= 5.8d-116))) then
tmp = abs((ew * cos(t)))
else
tmp = abs((eh * sin(t)))
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double tmp;
if ((ew <= -2.16e-116) || !(ew <= 5.8e-116)) {
tmp = Math.abs((ew * Math.cos(t)));
} else {
tmp = Math.abs((eh * Math.sin(t)));
}
return tmp;
}
def code(eh, ew, t): tmp = 0 if (ew <= -2.16e-116) or not (ew <= 5.8e-116): tmp = math.fabs((ew * math.cos(t))) else: tmp = math.fabs((eh * math.sin(t))) return tmp
function code(eh, ew, t) tmp = 0.0 if ((ew <= -2.16e-116) || !(ew <= 5.8e-116)) tmp = abs(Float64(ew * cos(t))); else tmp = abs(Float64(eh * sin(t))); end return tmp end
function tmp_2 = code(eh, ew, t) tmp = 0.0; if ((ew <= -2.16e-116) || ~((ew <= 5.8e-116))) tmp = abs((ew * cos(t))); else tmp = abs((eh * sin(t))); end tmp_2 = tmp; end
code[eh_, ew_, t_] := If[Or[LessEqual[ew, -2.16e-116], N[Not[LessEqual[ew, 5.8e-116]], $MachinePrecision]], N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ew \leq -2.16 \cdot 10^{-116} \lor \neg \left(ew \leq 5.8 \cdot 10^{-116}\right):\\
\;\;\;\;\left|ew \cdot \cos t\right|\\
\mathbf{else}:\\
\;\;\;\;\left|eh \cdot \sin t\right|\\
\end{array}
\end{array}
if ew < -2.16000000000000002e-116 or 5.7999999999999996e-116 < ew Initial program 99.8%
sub-neg99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
cancel-sign-sub99.8%
associate-/l*99.8%
Simplified99.8%
cos-atan99.8%
un-div-inv99.8%
hypot-1-def99.8%
add-sqr-sqrt47.2%
sqrt-unprod89.4%
sqr-neg89.4%
sqrt-unprod52.6%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
associate-/l*99.8%
associate-*r/99.8%
associate-*l/99.8%
associate-/r/99.8%
Simplified99.8%
associate-*r/99.8%
div-inv99.8%
clear-num99.8%
clear-num99.6%
Applied egg-rr99.6%
associate-/r/99.8%
*-commutative99.8%
associate-*r/99.8%
*-rgt-identity99.8%
associate-*r/99.8%
associate-*l/99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in ew around inf 81.1%
if -2.16000000000000002e-116 < ew < 5.7999999999999996e-116Initial program 99.6%
sub-neg99.6%
associate-*l*99.6%
distribute-rgt-neg-in99.6%
cancel-sign-sub99.6%
associate-/l*99.6%
Simplified99.6%
associate-*r*99.6%
sin-atan49.6%
associate-*r/49.1%
add-sqr-sqrt21.6%
sqrt-unprod42.6%
sqr-neg42.6%
sqrt-unprod26.4%
add-sqr-sqrt47.0%
hypot-1-def61.2%
add-sqr-sqrt26.2%
Applied egg-rr61.2%
*-commutative61.2%
associate-/l*74.8%
Simplified74.8%
associate-*r/74.7%
Applied egg-rr74.7%
*-un-lft-identity74.7%
associate-*r/74.8%
*-commutative74.8%
associate-*r/66.5%
Applied egg-rr66.5%
*-lft-identity66.5%
associate-*r/66.4%
associate-*r/66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in eh around -inf 76.6%
Final simplification79.9%
(FPCore (eh ew t) :precision binary64 (if (or (<= t -1.9e-52) (not (<= t 6.3e-12))) (fabs (* eh (sin t))) (fabs ew)))
double code(double eh, double ew, double t) {
double tmp;
if ((t <= -1.9e-52) || !(t <= 6.3e-12)) {
tmp = fabs((eh * sin(t)));
} else {
tmp = fabs(ew);
}
return tmp;
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
real(8) :: tmp
if ((t <= (-1.9d-52)) .or. (.not. (t <= 6.3d-12))) then
tmp = abs((eh * sin(t)))
else
tmp = abs(ew)
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double tmp;
if ((t <= -1.9e-52) || !(t <= 6.3e-12)) {
tmp = Math.abs((eh * Math.sin(t)));
} else {
tmp = Math.abs(ew);
}
return tmp;
}
def code(eh, ew, t): tmp = 0 if (t <= -1.9e-52) or not (t <= 6.3e-12): tmp = math.fabs((eh * math.sin(t))) else: tmp = math.fabs(ew) return tmp
function code(eh, ew, t) tmp = 0.0 if ((t <= -1.9e-52) || !(t <= 6.3e-12)) tmp = abs(Float64(eh * sin(t))); else tmp = abs(ew); end return tmp end
function tmp_2 = code(eh, ew, t) tmp = 0.0; if ((t <= -1.9e-52) || ~((t <= 6.3e-12))) tmp = abs((eh * sin(t))); else tmp = abs(ew); end tmp_2 = tmp; end
code[eh_, ew_, t_] := If[Or[LessEqual[t, -1.9e-52], N[Not[LessEqual[t, 6.3e-12]], $MachinePrecision]], N[Abs[N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[ew], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-52} \lor \neg \left(t \leq 6.3 \cdot 10^{-12}\right):\\
\;\;\;\;\left|eh \cdot \sin t\right|\\
\mathbf{else}:\\
\;\;\;\;\left|ew\right|\\
\end{array}
\end{array}
if t < -1.9000000000000002e-52 or 6.3000000000000002e-12 < t Initial program 99.5%
sub-neg99.5%
associate-*l*99.5%
distribute-rgt-neg-in99.5%
cancel-sign-sub99.5%
associate-/l*99.5%
Simplified99.5%
associate-*r*99.5%
sin-atan72.2%
associate-*r/67.5%
add-sqr-sqrt29.8%
sqrt-unprod59.5%
sqr-neg59.5%
sqrt-unprod36.2%
add-sqr-sqrt65.6%
hypot-1-def70.7%
add-sqr-sqrt31.6%
Applied egg-rr70.7%
*-commutative70.7%
associate-/l*85.6%
Simplified85.6%
associate-*r/85.6%
Applied egg-rr85.6%
*-un-lft-identity85.6%
associate-*r/85.7%
*-commutative85.7%
associate-*r/85.5%
Applied egg-rr85.5%
*-lft-identity85.5%
associate-*r/85.5%
associate-*r/85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in eh around -inf 50.1%
if -1.9000000000000002e-52 < t < 6.3000000000000002e-12Initial program 100.0%
sub-neg100.0%
associate-*l*100.0%
distribute-rgt-neg-in100.0%
cancel-sign-sub100.0%
associate-/l*100.0%
Simplified100.0%
cos-atan100.0%
un-div-inv100.0%
hypot-1-def100.0%
add-sqr-sqrt46.7%
sqrt-unprod87.0%
sqr-neg87.0%
sqrt-unprod53.3%
add-sqr-sqrt100.0%
Applied egg-rr100.0%
associate-/l*100.0%
associate-*r/100.0%
associate-*l/100.0%
associate-/r/100.0%
Simplified100.0%
associate-*r/100.0%
div-inv100.0%
clear-num100.0%
clear-num99.9%
Applied egg-rr99.9%
associate-/r/100.0%
*-commutative100.0%
associate-*r/100.0%
*-rgt-identity100.0%
associate-*r/100.0%
associate-*l/100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 84.8%
Final simplification64.6%
(FPCore (eh ew t) :precision binary64 (fabs ew))
double code(double eh, double ew, double t) {
return fabs(ew);
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
code = abs(ew)
end function
public static double code(double eh, double ew, double t) {
return Math.abs(ew);
}
def code(eh, ew, t): return math.fabs(ew)
function code(eh, ew, t) return abs(ew) end
function tmp = code(eh, ew, t) tmp = abs(ew); end
code[eh_, ew_, t_] := N[Abs[ew], $MachinePrecision]
\begin{array}{l}
\\
\left|ew\right|
\end{array}
Initial program 99.7%
sub-neg99.7%
associate-*l*99.7%
distribute-rgt-neg-in99.7%
cancel-sign-sub99.7%
associate-/l*99.7%
Simplified99.7%
cos-atan99.7%
un-div-inv99.7%
hypot-1-def99.7%
add-sqr-sqrt46.4%
sqrt-unprod92.0%
sqr-neg92.0%
sqrt-unprod53.4%
add-sqr-sqrt99.7%
Applied egg-rr99.7%
associate-/l*99.7%
associate-*r/99.7%
associate-*l/99.7%
associate-/r/99.7%
Simplified99.7%
associate-*r/99.7%
div-inv99.7%
clear-num99.7%
clear-num99.6%
Applied egg-rr99.6%
associate-/r/99.7%
*-commutative99.7%
associate-*r/99.7%
*-rgt-identity99.7%
associate-*r/99.7%
associate-*l/99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in t around 0 44.2%
herbie shell --seed 2024165
(FPCore (eh ew t)
:name "Example 2 from Robby"
:precision binary64
(fabs (- (* (* ew (cos t)) (cos (atan (/ (* (- eh) (tan t)) ew)))) (* (* eh (sin t)) (sin (atan (/ (* (- eh) (tan t)) ew)))))))