
(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 12 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 (fma ew (* (cos t_1) (- (cos t))) (* eh (* (sin t) (sin t_1)))))))
double code(double eh, double ew, double t) {
double t_1 = atan((eh * (tan(t) / -ew)));
return fabs(fma(ew, (cos(t_1) * -cos(t)), (eh * (sin(t) * sin(t_1)))));
}
function code(eh, ew, t) t_1 = atan(Float64(eh * Float64(tan(t) / Float64(-ew)))) return abs(fma(ew, Float64(cos(t_1) * Float64(-cos(t))), Float64(eh * Float64(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[(ew * N[(N[Cos[t$95$1], $MachinePrecision] * (-N[Cos[t], $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(eh \cdot \frac{\tan t}{-ew}\right)\\
\left|\mathsf{fma}\left(ew, \cos t\_1 \cdot \left(-\cos t\right), eh \cdot \left(\sin t \cdot \sin t\_1\right)\right)\right|
\end{array}
\end{array}
Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
Final simplification99.8%
(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(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{eh \cdot \left(-\tan t\right)}{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}
Initial program 99.8%
Final simplification99.8%
(FPCore (eh ew t)
:precision binary64
(let* ((t_1 (sin (atan (* (/ eh ew) (- (tan t)))))))
(if (or (<= ew -4.8e-246) (not (<= ew 1.32e-207)))
(fabs (* ew (fma eh (* (sin t) (/ t_1 ew)) (cos t))))
(fabs (* (sin t) (* eh t_1))))))
double code(double eh, double ew, double t) {
double t_1 = sin(atan(((eh / ew) * -tan(t))));
double tmp;
if ((ew <= -4.8e-246) || !(ew <= 1.32e-207)) {
tmp = fabs((ew * fma(eh, (sin(t) * (t_1 / ew)), cos(t))));
} else {
tmp = fabs((sin(t) * (eh * t_1)));
}
return tmp;
}
function code(eh, ew, t) t_1 = sin(atan(Float64(Float64(eh / ew) * Float64(-tan(t))))) tmp = 0.0 if ((ew <= -4.8e-246) || !(ew <= 1.32e-207)) tmp = abs(Float64(ew * fma(eh, Float64(sin(t) * Float64(t_1 / ew)), cos(t)))); else tmp = abs(Float64(sin(t) * Float64(eh * t_1))); end return tmp end
code[eh_, ew_, t_] := Block[{t$95$1 = N[Sin[N[ArcTan[N[(N[(eh / ew), $MachinePrecision] * (-N[Tan[t], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, If[Or[LessEqual[ew, -4.8e-246], N[Not[LessEqual[ew, 1.32e-207]], $MachinePrecision]], N[Abs[N[(ew * N[(eh * N[(N[Sin[t], $MachinePrecision] * N[(t$95$1 / ew), $MachinePrecision]), $MachinePrecision] + N[Cos[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[Sin[t], $MachinePrecision] * N[(eh * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sin \tan^{-1} \left(\frac{eh}{ew} \cdot \left(-\tan t\right)\right)\\
\mathbf{if}\;ew \leq -4.8 \cdot 10^{-246} \lor \neg \left(ew \leq 1.32 \cdot 10^{-207}\right):\\
\;\;\;\;\left|ew \cdot \mathsf{fma}\left(eh, \sin t \cdot \frac{t\_1}{ew}, \cos t\right)\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\sin t \cdot \left(eh \cdot t\_1\right)\right|\\
\end{array}
\end{array}
if ew < -4.7999999999999996e-246 or 1.32000000000000003e-207 < ew Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.5%
Applied egg-rr98.6%
expm1-define98.8%
Simplified98.8%
expm1-undefine98.6%
log1p-undefine98.6%
rem-exp-log98.6%
Applied egg-rr98.6%
associate--l+98.6%
associate-*r/98.6%
*-commutative98.6%
associate-*r/98.6%
Simplified98.6%
log1p-expm1-u98.6%
Applied egg-rr98.6%
Taylor expanded in ew around inf 95.7%
+-commutative95.7%
associate-/l*95.6%
fma-define95.6%
associate-/l*95.6%
mul-1-neg95.6%
*-commutative95.6%
associate-*r/95.6%
distribute-rgt-neg-in95.6%
Simplified95.6%
if -4.7999999999999996e-246 < ew < 1.32000000000000003e-207Initial program 99.9%
fabs-sub99.9%
sub-neg99.9%
+-commutative99.9%
associate-*l*99.9%
distribute-rgt-neg-in99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in ew around 0 88.0%
*-commutative88.0%
associate-*l*88.0%
*-commutative88.0%
associate-*r/88.0%
neg-mul-188.0%
*-commutative88.0%
distribute-lft-neg-in88.0%
associate-*r/88.0%
*-commutative88.0%
Simplified88.0%
Final simplification94.5%
(FPCore (eh ew t) :precision binary64 (fabs (fma ew (+ 1.0 (+ (cos t) -1.0)) (* eh (* (sin t) (sin (atan (* (- eh) (/ (tan t) ew)))))))))
double code(double eh, double ew, double t) {
return fabs(fma(ew, (1.0 + (cos(t) + -1.0)), (eh * (sin(t) * sin(atan((-eh * (tan(t) / ew))))))));
}
function code(eh, ew, t) return abs(fma(ew, Float64(1.0 + Float64(cos(t) + -1.0)), Float64(eh * Float64(sin(t) * sin(atan(Float64(Float64(-eh) * Float64(tan(t) / ew)))))))) end
code[eh_, ew_, t_] := N[Abs[N[(ew * N[(1.0 + N[(N[Cos[t], $MachinePrecision] + -1.0), $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|\mathsf{fma}\left(ew, 1 + \left(\cos t + -1\right), eh \cdot \left(\sin t \cdot \sin \tan^{-1} \left(\left(-eh\right) \cdot \frac{\tan t}{ew}\right)\right)\right)\right|
\end{array}
Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.6%
Applied egg-rr98.8%
expm1-define99.0%
Simplified99.0%
expm1-undefine98.8%
log1p-undefine98.8%
rem-exp-log98.8%
Applied egg-rr98.8%
associate--l+98.8%
associate-*r/98.8%
*-commutative98.8%
associate-*r/98.8%
Simplified98.8%
Taylor expanded in eh around 0 98.7%
Final simplification98.7%
(FPCore (eh ew t) :precision binary64 (if (or (<= eh -7.6e+23) (not (<= eh 3.3e+44))) (fabs (* (sin t) (* eh (sin (atan (* (/ eh ew) (- (tan t)))))))) (fabs (* ew (cos t)))))
double code(double eh, double ew, double t) {
double tmp;
if ((eh <= -7.6e+23) || !(eh <= 3.3e+44)) {
tmp = fabs((sin(t) * (eh * sin(atan(((eh / ew) * -tan(t)))))));
} else {
tmp = fabs((ew * cos(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 ((eh <= (-7.6d+23)) .or. (.not. (eh <= 3.3d+44))) then
tmp = abs((sin(t) * (eh * sin(atan(((eh / ew) * -tan(t)))))))
else
tmp = abs((ew * cos(t)))
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double tmp;
if ((eh <= -7.6e+23) || !(eh <= 3.3e+44)) {
tmp = Math.abs((Math.sin(t) * (eh * Math.sin(Math.atan(((eh / ew) * -Math.tan(t)))))));
} else {
tmp = Math.abs((ew * Math.cos(t)));
}
return tmp;
}
def code(eh, ew, t): tmp = 0 if (eh <= -7.6e+23) or not (eh <= 3.3e+44): tmp = math.fabs((math.sin(t) * (eh * math.sin(math.atan(((eh / ew) * -math.tan(t))))))) else: tmp = math.fabs((ew * math.cos(t))) return tmp
function code(eh, ew, t) tmp = 0.0 if ((eh <= -7.6e+23) || !(eh <= 3.3e+44)) tmp = abs(Float64(sin(t) * Float64(eh * sin(atan(Float64(Float64(eh / ew) * Float64(-tan(t)))))))); else tmp = abs(Float64(ew * cos(t))); end return tmp end
function tmp_2 = code(eh, ew, t) tmp = 0.0; if ((eh <= -7.6e+23) || ~((eh <= 3.3e+44))) tmp = abs((sin(t) * (eh * sin(atan(((eh / ew) * -tan(t))))))); else tmp = abs((ew * cos(t))); end tmp_2 = tmp; end
code[eh_, ew_, t_] := If[Or[LessEqual[eh, -7.6e+23], N[Not[LessEqual[eh, 3.3e+44]], $MachinePrecision]], N[Abs[N[(N[Sin[t], $MachinePrecision] * N[(eh * N[Sin[N[ArcTan[N[(N[(eh / ew), $MachinePrecision] * (-N[Tan[t], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;eh \leq -7.6 \cdot 10^{+23} \lor \neg \left(eh \leq 3.3 \cdot 10^{+44}\right):\\
\;\;\;\;\left|\sin t \cdot \left(eh \cdot \sin \tan^{-1} \left(\frac{eh}{ew} \cdot \left(-\tan t\right)\right)\right)\right|\\
\mathbf{else}:\\
\;\;\;\;\left|ew \cdot \cos t\right|\\
\end{array}
\end{array}
if eh < -7.5999999999999995e23 or 3.30000000000000013e44 < eh Initial program 99.7%
fabs-sub99.7%
sub-neg99.7%
+-commutative99.7%
associate-*l*99.7%
distribute-rgt-neg-in99.7%
fma-define99.7%
Simplified99.8%
Taylor expanded in ew around 0 71.2%
*-commutative71.2%
associate-*l*71.2%
*-commutative71.2%
associate-*r/71.2%
neg-mul-171.2%
*-commutative71.2%
distribute-lft-neg-in71.2%
associate-*r/71.2%
*-commutative71.2%
Simplified71.2%
if -7.5999999999999995e23 < eh < 3.30000000000000013e44Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.5%
Applied egg-rr99.1%
expm1-define99.4%
Simplified99.4%
Taylor expanded in ew around inf 85.7%
Final simplification79.3%
(FPCore (eh ew t)
:precision binary64
(let* ((t_1 (fabs (* ew (cos t)))))
(if (<= ew -3.6e-246)
t_1
(if (<= ew -3.1e-301)
(* (sin (atan (* (tan t) (/ eh ew)))) (* eh (- (sin t))))
(if (<= ew 2.3e-202)
(* (* eh (sin t)) (sin (atan (* eh (/ (tan t) ew)))))
t_1)))))
double code(double eh, double ew, double t) {
double t_1 = fabs((ew * cos(t)));
double tmp;
if (ew <= -3.6e-246) {
tmp = t_1;
} else if (ew <= -3.1e-301) {
tmp = sin(atan((tan(t) * (eh / ew)))) * (eh * -sin(t));
} else if (ew <= 2.3e-202) {
tmp = (eh * sin(t)) * sin(atan((eh * (tan(t) / ew))));
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = abs((ew * cos(t)))
if (ew <= (-3.6d-246)) then
tmp = t_1
else if (ew <= (-3.1d-301)) then
tmp = sin(atan((tan(t) * (eh / ew)))) * (eh * -sin(t))
else if (ew <= 2.3d-202) then
tmp = (eh * sin(t)) * sin(atan((eh * (tan(t) / ew))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double t_1 = Math.abs((ew * Math.cos(t)));
double tmp;
if (ew <= -3.6e-246) {
tmp = t_1;
} else if (ew <= -3.1e-301) {
tmp = Math.sin(Math.atan((Math.tan(t) * (eh / ew)))) * (eh * -Math.sin(t));
} else if (ew <= 2.3e-202) {
tmp = (eh * Math.sin(t)) * Math.sin(Math.atan((eh * (Math.tan(t) / ew))));
} else {
tmp = t_1;
}
return tmp;
}
def code(eh, ew, t): t_1 = math.fabs((ew * math.cos(t))) tmp = 0 if ew <= -3.6e-246: tmp = t_1 elif ew <= -3.1e-301: tmp = math.sin(math.atan((math.tan(t) * (eh / ew)))) * (eh * -math.sin(t)) elif ew <= 2.3e-202: tmp = (eh * math.sin(t)) * math.sin(math.atan((eh * (math.tan(t) / ew)))) else: tmp = t_1 return tmp
function code(eh, ew, t) t_1 = abs(Float64(ew * cos(t))) tmp = 0.0 if (ew <= -3.6e-246) tmp = t_1; elseif (ew <= -3.1e-301) tmp = Float64(sin(atan(Float64(tan(t) * Float64(eh / ew)))) * Float64(eh * Float64(-sin(t)))); elseif (ew <= 2.3e-202) tmp = Float64(Float64(eh * sin(t)) * sin(atan(Float64(eh * Float64(tan(t) / ew))))); else tmp = t_1; end return tmp end
function tmp_2 = code(eh, ew, t) t_1 = abs((ew * cos(t))); tmp = 0.0; if (ew <= -3.6e-246) tmp = t_1; elseif (ew <= -3.1e-301) tmp = sin(atan((tan(t) * (eh / ew)))) * (eh * -sin(t)); elseif (ew <= 2.3e-202) tmp = (eh * sin(t)) * sin(atan((eh * (tan(t) / ew)))); else tmp = t_1; end tmp_2 = tmp; end
code[eh_, ew_, t_] := Block[{t$95$1 = N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[ew, -3.6e-246], t$95$1, If[LessEqual[ew, -3.1e-301], N[(N[Sin[N[ArcTan[N[(N[Tan[t], $MachinePrecision] * N[(eh / ew), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * N[(eh * (-N[Sin[t], $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[ew, 2.3e-202], N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[N[ArcTan[N[(eh * N[(N[Tan[t], $MachinePrecision] / ew), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left|ew \cdot \cos t\right|\\
\mathbf{if}\;ew \leq -3.6 \cdot 10^{-246}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;ew \leq -3.1 \cdot 10^{-301}:\\
\;\;\;\;\sin \tan^{-1} \left(\tan t \cdot \frac{eh}{ew}\right) \cdot \left(eh \cdot \left(-\sin t\right)\right)\\
\mathbf{elif}\;ew \leq 2.3 \cdot 10^{-202}:\\
\;\;\;\;\left(eh \cdot \sin t\right) \cdot \sin \tan^{-1} \left(eh \cdot \frac{\tan t}{ew}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if ew < -3.6000000000000002e-246 or 2.2999999999999999e-202 < ew Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.5%
Applied egg-rr98.6%
expm1-define98.8%
Simplified98.8%
Taylor expanded in ew around inf 70.5%
if -3.6000000000000002e-246 < ew < -3.10000000000000014e-301Initial program 99.9%
fabs-sub99.9%
sub-neg99.9%
+-commutative99.9%
associate-*l*99.9%
distribute-rgt-neg-in99.9%
fma-define99.9%
Simplified99.9%
expm1-log1p-u99.9%
expm1-undefine99.9%
Applied egg-rr99.9%
expm1-define99.9%
Simplified99.9%
expm1-log1p-u99.9%
add-sqr-sqrt80.6%
fabs-sqr80.6%
pow280.6%
Applied egg-rr80.6%
Taylor expanded in ew around 0 82.2%
associate-*r*82.2%
*-commutative82.2%
associate-*r/82.2%
sin-neg82.2%
Simplified82.2%
if -3.10000000000000014e-301 < ew < 2.2999999999999999e-202Initial program 99.9%
Applied egg-rr88.1%
Taylor expanded in ew around 0 73.2%
associate-*r*73.2%
associate-*r/73.2%
Simplified73.2%
Final simplification71.5%
(FPCore (eh ew t)
:precision binary64
(let* ((t_1 (sin (atan (* eh (/ (tan t) ew))))) (t_2 (fabs (* ew (cos t)))))
(if (<= ew -2.15e-246)
t_2
(if (<= ew -6.3e-301)
(* eh (* t_1 (- t)))
(if (<= ew 1e-200) (* (* eh (sin t)) t_1) t_2)))))
double code(double eh, double ew, double t) {
double t_1 = sin(atan((eh * (tan(t) / ew))));
double t_2 = fabs((ew * cos(t)));
double tmp;
if (ew <= -2.15e-246) {
tmp = t_2;
} else if (ew <= -6.3e-301) {
tmp = eh * (t_1 * -t);
} else if (ew <= 1e-200) {
tmp = (eh * sin(t)) * t_1;
} else {
tmp = t_2;
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = sin(atan((eh * (tan(t) / ew))))
t_2 = abs((ew * cos(t)))
if (ew <= (-2.15d-246)) then
tmp = t_2
else if (ew <= (-6.3d-301)) then
tmp = eh * (t_1 * -t)
else if (ew <= 1d-200) then
tmp = (eh * sin(t)) * t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double t_1 = Math.sin(Math.atan((eh * (Math.tan(t) / ew))));
double t_2 = Math.abs((ew * Math.cos(t)));
double tmp;
if (ew <= -2.15e-246) {
tmp = t_2;
} else if (ew <= -6.3e-301) {
tmp = eh * (t_1 * -t);
} else if (ew <= 1e-200) {
tmp = (eh * Math.sin(t)) * t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(eh, ew, t): t_1 = math.sin(math.atan((eh * (math.tan(t) / ew)))) t_2 = math.fabs((ew * math.cos(t))) tmp = 0 if ew <= -2.15e-246: tmp = t_2 elif ew <= -6.3e-301: tmp = eh * (t_1 * -t) elif ew <= 1e-200: tmp = (eh * math.sin(t)) * t_1 else: tmp = t_2 return tmp
function code(eh, ew, t) t_1 = sin(atan(Float64(eh * Float64(tan(t) / ew)))) t_2 = abs(Float64(ew * cos(t))) tmp = 0.0 if (ew <= -2.15e-246) tmp = t_2; elseif (ew <= -6.3e-301) tmp = Float64(eh * Float64(t_1 * Float64(-t))); elseif (ew <= 1e-200) tmp = Float64(Float64(eh * sin(t)) * t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(eh, ew, t) t_1 = sin(atan((eh * (tan(t) / ew)))); t_2 = abs((ew * cos(t))); tmp = 0.0; if (ew <= -2.15e-246) tmp = t_2; elseif (ew <= -6.3e-301) tmp = eh * (t_1 * -t); elseif (ew <= 1e-200) tmp = (eh * sin(t)) * t_1; else tmp = t_2; end tmp_2 = tmp; end
code[eh_, ew_, t_] := Block[{t$95$1 = N[Sin[N[ArcTan[N[(eh * N[(N[Tan[t], $MachinePrecision] / ew), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[ew, -2.15e-246], t$95$2, If[LessEqual[ew, -6.3e-301], N[(eh * N[(t$95$1 * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[ew, 1e-200], N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sin \tan^{-1} \left(eh \cdot \frac{\tan t}{ew}\right)\\
t_2 := \left|ew \cdot \cos t\right|\\
\mathbf{if}\;ew \leq -2.15 \cdot 10^{-246}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;ew \leq -6.3 \cdot 10^{-301}:\\
\;\;\;\;eh \cdot \left(t\_1 \cdot \left(-t\right)\right)\\
\mathbf{elif}\;ew \leq 10^{-200}:\\
\;\;\;\;\left(eh \cdot \sin t\right) \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if ew < -2.14999999999999996e-246 or 9.9999999999999998e-201 < ew Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.5%
Applied egg-rr98.6%
expm1-define98.8%
Simplified98.8%
Taylor expanded in ew around inf 70.5%
if -2.14999999999999996e-246 < ew < -6.29999999999999961e-301Initial program 99.9%
fabs-sub99.9%
sub-neg99.9%
+-commutative99.9%
associate-*l*99.9%
distribute-rgt-neg-in99.9%
fma-define99.9%
Simplified99.9%
expm1-log1p-u99.9%
expm1-undefine99.9%
Applied egg-rr99.9%
expm1-define99.9%
Simplified99.9%
expm1-log1p-u99.9%
add-sqr-sqrt80.6%
fabs-sqr80.6%
pow280.6%
Applied egg-rr80.6%
Taylor expanded in ew around 0 81.5%
associate-*r*81.5%
*-commutative81.5%
associate-*r/81.5%
sin-neg81.5%
Simplified81.5%
Taylor expanded in t around 0 0.0%
associate-*r*0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt42.7%
neg-mul-142.7%
distribute-rgt-neg-in42.7%
associate-*r*42.7%
*-commutative42.7%
distribute-rgt-neg-in42.7%
associate-*r/42.7%
Simplified42.7%
if -6.29999999999999961e-301 < ew < 9.9999999999999998e-201Initial program 99.9%
Applied egg-rr88.1%
Taylor expanded in ew around 0 73.2%
associate-*r*73.2%
associate-*r/73.2%
Simplified73.2%
Final simplification69.0%
(FPCore (eh ew t) :precision binary64 (if (or (<= t -2.15e+14) (not (<= t 1150000.0))) (fabs (* ew (cos t))) (fabs (+ ew (* (sin (atan (* (/ eh ew) (- (tan t))))) (* eh t))))))
double code(double eh, double ew, double t) {
double tmp;
if ((t <= -2.15e+14) || !(t <= 1150000.0)) {
tmp = fabs((ew * cos(t)));
} else {
tmp = fabs((ew + (sin(atan(((eh / ew) * -tan(t)))) * (eh * 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 ((t <= (-2.15d+14)) .or. (.not. (t <= 1150000.0d0))) then
tmp = abs((ew * cos(t)))
else
tmp = abs((ew + (sin(atan(((eh / ew) * -tan(t)))) * (eh * t))))
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double tmp;
if ((t <= -2.15e+14) || !(t <= 1150000.0)) {
tmp = Math.abs((ew * Math.cos(t)));
} else {
tmp = Math.abs((ew + (Math.sin(Math.atan(((eh / ew) * -Math.tan(t)))) * (eh * t))));
}
return tmp;
}
def code(eh, ew, t): tmp = 0 if (t <= -2.15e+14) or not (t <= 1150000.0): tmp = math.fabs((ew * math.cos(t))) else: tmp = math.fabs((ew + (math.sin(math.atan(((eh / ew) * -math.tan(t)))) * (eh * t)))) return tmp
function code(eh, ew, t) tmp = 0.0 if ((t <= -2.15e+14) || !(t <= 1150000.0)) tmp = abs(Float64(ew * cos(t))); else tmp = abs(Float64(ew + Float64(sin(atan(Float64(Float64(eh / ew) * Float64(-tan(t))))) * Float64(eh * t)))); end return tmp end
function tmp_2 = code(eh, ew, t) tmp = 0.0; if ((t <= -2.15e+14) || ~((t <= 1150000.0))) tmp = abs((ew * cos(t))); else tmp = abs((ew + (sin(atan(((eh / ew) * -tan(t)))) * (eh * t)))); end tmp_2 = tmp; end
code[eh_, ew_, t_] := If[Or[LessEqual[t, -2.15e+14], N[Not[LessEqual[t, 1150000.0]], $MachinePrecision]], N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(ew + N[(N[Sin[N[ArcTan[N[(N[(eh / ew), $MachinePrecision] * (-N[Tan[t], $MachinePrecision])), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * N[(eh * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.15 \cdot 10^{+14} \lor \neg \left(t \leq 1150000\right):\\
\;\;\;\;\left|ew \cdot \cos t\right|\\
\mathbf{else}:\\
\;\;\;\;\left|ew + \sin \tan^{-1} \left(\frac{eh}{ew} \cdot \left(-\tan t\right)\right) \cdot \left(eh \cdot t\right)\right|\\
\end{array}
\end{array}
if t < -2.15e14 or 1.15e6 < t Initial program 99.5%
fabs-sub99.5%
sub-neg99.5%
+-commutative99.5%
associate-*l*99.5%
distribute-rgt-neg-in99.5%
fma-define99.5%
Simplified99.5%
expm1-log1p-u99.4%
expm1-undefine99.1%
Applied egg-rr98.5%
expm1-define98.9%
Simplified98.9%
Taylor expanded in ew around inf 51.7%
if -2.15e14 < t < 1.15e6Initial program 100.0%
fabs-sub100.0%
sub-neg100.0%
+-commutative100.0%
associate-*l*100.0%
distribute-rgt-neg-in100.0%
fma-define100.0%
Simplified100.0%
expm1-log1p-u100.0%
expm1-undefine100.0%
Applied egg-rr99.0%
expm1-define99.0%
Simplified99.0%
Taylor expanded in t around 0 95.2%
associate-*r*95.2%
mul-1-neg95.2%
*-commutative95.2%
associate-*r/95.2%
distribute-rgt-neg-in95.2%
mul-1-neg95.2%
associate-*r/95.2%
mul-1-neg95.2%
Simplified95.2%
Final simplification74.1%
(FPCore (eh ew t)
:precision binary64
(let* ((t_1 (sin (atan (* eh (/ (tan t) ew))))) (t_2 (fabs (* ew (cos t)))))
(if (<= ew -1.25e-245)
t_2
(if (<= ew -7e-306)
(* eh (* t_1 (- t)))
(if (<= ew 1.06e-23) (+ ew (* (* eh t) t_1)) t_2)))))
double code(double eh, double ew, double t) {
double t_1 = sin(atan((eh * (tan(t) / ew))));
double t_2 = fabs((ew * cos(t)));
double tmp;
if (ew <= -1.25e-245) {
tmp = t_2;
} else if (ew <= -7e-306) {
tmp = eh * (t_1 * -t);
} else if (ew <= 1.06e-23) {
tmp = ew + ((eh * t) * t_1);
} else {
tmp = t_2;
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = sin(atan((eh * (tan(t) / ew))))
t_2 = abs((ew * cos(t)))
if (ew <= (-1.25d-245)) then
tmp = t_2
else if (ew <= (-7d-306)) then
tmp = eh * (t_1 * -t)
else if (ew <= 1.06d-23) then
tmp = ew + ((eh * t) * t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double eh, double ew, double t) {
double t_1 = Math.sin(Math.atan((eh * (Math.tan(t) / ew))));
double t_2 = Math.abs((ew * Math.cos(t)));
double tmp;
if (ew <= -1.25e-245) {
tmp = t_2;
} else if (ew <= -7e-306) {
tmp = eh * (t_1 * -t);
} else if (ew <= 1.06e-23) {
tmp = ew + ((eh * t) * t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(eh, ew, t): t_1 = math.sin(math.atan((eh * (math.tan(t) / ew)))) t_2 = math.fabs((ew * math.cos(t))) tmp = 0 if ew <= -1.25e-245: tmp = t_2 elif ew <= -7e-306: tmp = eh * (t_1 * -t) elif ew <= 1.06e-23: tmp = ew + ((eh * t) * t_1) else: tmp = t_2 return tmp
function code(eh, ew, t) t_1 = sin(atan(Float64(eh * Float64(tan(t) / ew)))) t_2 = abs(Float64(ew * cos(t))) tmp = 0.0 if (ew <= -1.25e-245) tmp = t_2; elseif (ew <= -7e-306) tmp = Float64(eh * Float64(t_1 * Float64(-t))); elseif (ew <= 1.06e-23) tmp = Float64(ew + Float64(Float64(eh * t) * t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(eh, ew, t) t_1 = sin(atan((eh * (tan(t) / ew)))); t_2 = abs((ew * cos(t))); tmp = 0.0; if (ew <= -1.25e-245) tmp = t_2; elseif (ew <= -7e-306) tmp = eh * (t_1 * -t); elseif (ew <= 1.06e-23) tmp = ew + ((eh * t) * t_1); else tmp = t_2; end tmp_2 = tmp; end
code[eh_, ew_, t_] := Block[{t$95$1 = N[Sin[N[ArcTan[N[(eh * N[(N[Tan[t], $MachinePrecision] / ew), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[ew, -1.25e-245], t$95$2, If[LessEqual[ew, -7e-306], N[(eh * N[(t$95$1 * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[ew, 1.06e-23], N[(ew + N[(N[(eh * t), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sin \tan^{-1} \left(eh \cdot \frac{\tan t}{ew}\right)\\
t_2 := \left|ew \cdot \cos t\right|\\
\mathbf{if}\;ew \leq -1.25 \cdot 10^{-245}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;ew \leq -7 \cdot 10^{-306}:\\
\;\;\;\;eh \cdot \left(t\_1 \cdot \left(-t\right)\right)\\
\mathbf{elif}\;ew \leq 1.06 \cdot 10^{-23}:\\
\;\;\;\;ew + \left(eh \cdot t\right) \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if ew < -1.2499999999999999e-245 or 1.05999999999999994e-23 < ew Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.5%
Applied egg-rr98.4%
expm1-define98.6%
Simplified98.6%
Taylor expanded in ew around inf 73.6%
if -1.2499999999999999e-245 < ew < -7.00000000000000035e-306Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.8%
expm1-undefine99.8%
Applied egg-rr99.8%
expm1-define99.8%
Simplified99.8%
expm1-log1p-u99.8%
add-sqr-sqrt73.1%
fabs-sqr73.1%
pow273.1%
Applied egg-rr73.1%
Taylor expanded in ew around 0 73.9%
associate-*r*73.9%
*-commutative73.9%
associate-*r/73.9%
sin-neg73.9%
Simplified73.9%
Taylor expanded in t around 0 0.0%
associate-*r*0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt41.6%
neg-mul-141.6%
distribute-rgt-neg-in41.6%
associate-*r*41.6%
*-commutative41.6%
distribute-rgt-neg-in41.6%
associate-*r/41.6%
Simplified41.6%
if -7.00000000000000035e-306 < ew < 1.05999999999999994e-23Initial program 99.8%
Applied egg-rr82.9%
Taylor expanded in t around 0 57.3%
associate-*r*57.3%
associate-*r/57.3%
Simplified57.3%
Final simplification67.5%
(FPCore (eh ew t) :precision binary64 (fabs (* ew (cos t))))
double code(double eh, double ew, double t) {
return fabs((ew * cos(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)))
end function
public static double code(double eh, double ew, double t) {
return Math.abs((ew * Math.cos(t)));
}
def code(eh, ew, t): return math.fabs((ew * math.cos(t)))
function code(eh, ew, t) return abs(Float64(ew * cos(t))) end
function tmp = code(eh, ew, t) tmp = abs((ew * cos(t))); end
code[eh_, ew_, t_] := N[Abs[N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\left|ew \cdot \cos t\right|
\end{array}
Initial program 99.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.6%
Applied egg-rr98.8%
expm1-define99.0%
Simplified99.0%
Taylor expanded in ew around inf 62.0%
(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.8%
fabs-sub99.8%
sub-neg99.8%
+-commutative99.8%
associate-*l*99.8%
distribute-rgt-neg-in99.8%
fma-define99.8%
Simplified99.8%
expm1-log1p-u99.7%
expm1-undefine99.6%
Applied egg-rr98.8%
expm1-define99.0%
Simplified99.0%
Taylor expanded in t around 0 43.0%
(FPCore (eh ew t) :precision binary64 ew)
double code(double eh, double ew, double t) {
return ew;
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
code = ew
end function
public static double code(double eh, double ew, double t) {
return ew;
}
def code(eh, ew, t): return ew
function code(eh, ew, t) return ew end
function tmp = code(eh, ew, t) tmp = ew; end
code[eh_, ew_, t_] := ew
\begin{array}{l}
\\
ew
\end{array}
Initial program 99.8%
Applied egg-rr45.1%
Taylor expanded in t around 0 22.3%
rem-cube-cbrt22.6%
expm1-log1p-u21.6%
expm1-undefine13.7%
Applied egg-rr13.7%
sub-neg13.7%
log1p-undefine13.7%
rem-exp-log14.7%
+-commutative14.7%
metadata-eval14.7%
associate-+l+22.6%
metadata-eval22.6%
Simplified22.6%
Final simplification22.6%
herbie shell --seed 2024136
(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)))))))