
(FPCore (u v t1) :precision binary64 (/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))
double code(double u, double v, double t1) {
return (-t1 * v) / ((t1 + u) * (t1 + u));
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
code = (-t1 * v) / ((t1 + u) * (t1 + u))
end function
public static double code(double u, double v, double t1) {
return (-t1 * v) / ((t1 + u) * (t1 + u));
}
def code(u, v, t1): return (-t1 * v) / ((t1 + u) * (t1 + u))
function code(u, v, t1) return Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u))) end
function tmp = code(u, v, t1) tmp = (-t1 * v) / ((t1 + u) * (t1 + u)); end
code[u_, v_, t1_] := N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (u v t1) :precision binary64 (/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))
double code(double u, double v, double t1) {
return (-t1 * v) / ((t1 + u) * (t1 + u));
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
code = (-t1 * v) / ((t1 + u) * (t1 + u))
end function
public static double code(double u, double v, double t1) {
return (-t1 * v) / ((t1 + u) * (t1 + u));
}
def code(u, v, t1): return (-t1 * v) / ((t1 + u) * (t1 + u))
function code(u, v, t1) return Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u))) end
function tmp = code(u, v, t1) tmp = (-t1 * v) / ((t1 + u) * (t1 + u)); end
code[u_, v_, t1_] := N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}
\end{array}
(FPCore (u v t1) :precision binary64 (if (<= (/ (* t1 (- v)) (* (+ t1 u) (+ t1 u))) -4e-154) (/ v (* (+ t1 u) (- -1.0 (/ u t1)))) (* (/ (- t1) (+ t1 u)) (/ v (+ t1 u)))))
double code(double u, double v, double t1) {
double tmp;
if (((t1 * -v) / ((t1 + u) * (t1 + u))) <= -4e-154) {
tmp = v / ((t1 + u) * (-1.0 - (u / t1)));
} else {
tmp = (-t1 / (t1 + u)) * (v / (t1 + u));
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if (((t1 * -v) / ((t1 + u) * (t1 + u))) <= (-4d-154)) then
tmp = v / ((t1 + u) * ((-1.0d0) - (u / t1)))
else
tmp = (-t1 / (t1 + u)) * (v / (t1 + u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (((t1 * -v) / ((t1 + u) * (t1 + u))) <= -4e-154) {
tmp = v / ((t1 + u) * (-1.0 - (u / t1)));
} else {
tmp = (-t1 / (t1 + u)) * (v / (t1 + u));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if ((t1 * -v) / ((t1 + u) * (t1 + u))) <= -4e-154: tmp = v / ((t1 + u) * (-1.0 - (u / t1))) else: tmp = (-t1 / (t1 + u)) * (v / (t1 + u)) return tmp
function code(u, v, t1) tmp = 0.0 if (Float64(Float64(t1 * Float64(-v)) / Float64(Float64(t1 + u) * Float64(t1 + u))) <= -4e-154) tmp = Float64(v / Float64(Float64(t1 + u) * Float64(-1.0 - Float64(u / t1)))); else tmp = Float64(Float64(Float64(-t1) / Float64(t1 + u)) * Float64(v / Float64(t1 + u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (((t1 * -v) / ((t1 + u) * (t1 + u))) <= -4e-154) tmp = v / ((t1 + u) * (-1.0 - (u / t1))); else tmp = (-t1 / (t1 + u)) * (v / (t1 + u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[N[(N[(t1 * (-v)), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -4e-154], N[(v / N[(N[(t1 + u), $MachinePrecision] * N[(-1.0 - N[(u / t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-t1) / N[(t1 + u), $MachinePrecision]), $MachinePrecision] * N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t1 \cdot \left(-v\right)}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \leq -4 \cdot 10^{-154}:\\
\;\;\;\;\frac{v}{\left(t1 + u\right) \cdot \left(-1 - \frac{u}{t1}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (neg.f64 t1) v) (*.f64 (+.f64 t1 u) (+.f64 t1 u))) < -3.9999999999999999e-154Initial program 84.0%
*-commutative84.0%
times-frac88.7%
neg-mul-188.7%
associate-/l*88.7%
associate-*r/88.7%
associate-/l*88.7%
associate-/l/88.7%
neg-mul-188.7%
*-lft-identity88.7%
metadata-eval88.7%
times-frac88.7%
neg-mul-188.7%
remove-double-neg88.7%
neg-mul-188.7%
sub0-neg88.7%
associate--r+88.7%
neg-sub088.7%
div-sub88.7%
distribute-frac-neg88.7%
*-inverses88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in v around 0 99.7%
associate-*r/99.7%
neg-mul-199.7%
+-commutative99.7%
Simplified99.7%
frac-2neg99.7%
div-inv99.5%
remove-double-neg99.5%
Applied egg-rr99.5%
associate-*r/99.7%
*-rgt-identity99.7%
distribute-rgt-neg-in99.7%
+-commutative99.7%
distribute-neg-in99.7%
metadata-eval99.7%
sub-neg99.7%
Simplified99.7%
if -3.9999999999999999e-154 < (/.f64 (*.f64 (neg.f64 t1) v) (*.f64 (+.f64 t1 u) (+.f64 t1 u))) Initial program 74.8%
times-frac98.2%
Simplified98.2%
Final simplification98.4%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (- (* u -2.0) t1))))
(if (<= t1 -110000.0)
t_1
(if (<= t1 -8.5e-64)
(* (/ (- v) u) (/ t1 u))
(if (or (<= t1 -3.8e-85) (not (<= t1 6.2e-89)))
t_1
(* (- v) (/ (/ t1 u) u)))))))
double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -110000.0) {
tmp = t_1;
} else if (t1 <= -8.5e-64) {
tmp = (-v / u) * (t1 / u);
} else if ((t1 <= -3.8e-85) || !(t1 <= 6.2e-89)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = v / ((u * (-2.0d0)) - t1)
if (t1 <= (-110000.0d0)) then
tmp = t_1
else if (t1 <= (-8.5d-64)) then
tmp = (-v / u) * (t1 / u)
else if ((t1 <= (-3.8d-85)) .or. (.not. (t1 <= 6.2d-89))) then
tmp = t_1
else
tmp = -v * ((t1 / u) / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -110000.0) {
tmp = t_1;
} else if (t1 <= -8.5e-64) {
tmp = (-v / u) * (t1 / u);
} else if ((t1 <= -3.8e-85) || !(t1 <= 6.2e-89)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
def code(u, v, t1): t_1 = v / ((u * -2.0) - t1) tmp = 0 if t1 <= -110000.0: tmp = t_1 elif t1 <= -8.5e-64: tmp = (-v / u) * (t1 / u) elif (t1 <= -3.8e-85) or not (t1 <= 6.2e-89): tmp = t_1 else: tmp = -v * ((t1 / u) / u) return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(Float64(u * -2.0) - t1)) tmp = 0.0 if (t1 <= -110000.0) tmp = t_1; elseif (t1 <= -8.5e-64) tmp = Float64(Float64(Float64(-v) / u) * Float64(t1 / u)); elseif ((t1 <= -3.8e-85) || !(t1 <= 6.2e-89)) tmp = t_1; else tmp = Float64(Float64(-v) * Float64(Float64(t1 / u) / u)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / ((u * -2.0) - t1); tmp = 0.0; if (t1 <= -110000.0) tmp = t_1; elseif (t1 <= -8.5e-64) tmp = (-v / u) * (t1 / u); elseif ((t1 <= -3.8e-85) || ~((t1 <= 6.2e-89))) tmp = t_1; else tmp = -v * ((t1 / u) / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -110000.0], t$95$1, If[LessEqual[t1, -8.5e-64], N[(N[((-v) / u), $MachinePrecision] * N[(t1 / u), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t1, -3.8e-85], N[Not[LessEqual[t1, 6.2e-89]], $MachinePrecision]], t$95$1, N[((-v) * N[(N[(t1 / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{u \cdot -2 - t1}\\
\mathbf{if}\;t1 \leq -110000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -8.5 \cdot 10^{-64}:\\
\;\;\;\;\frac{-v}{u} \cdot \frac{t1}{u}\\
\mathbf{elif}\;t1 \leq -3.8 \cdot 10^{-85} \lor \neg \left(t1 \leq 6.2 \cdot 10^{-89}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\
\end{array}
\end{array}
if t1 < -1.1e5 or -8.49999999999999996e-64 < t1 < -3.7999999999999999e-85 or 6.19999999999999993e-89 < t1 Initial program 72.7%
*-commutative72.7%
times-frac99.9%
neg-mul-199.9%
associate-/l*99.9%
associate-*r/99.9%
associate-/l*99.9%
associate-/l/99.9%
neg-mul-199.9%
*-lft-identity99.9%
metadata-eval99.9%
times-frac99.9%
neg-mul-199.9%
remove-double-neg99.9%
neg-mul-199.9%
sub0-neg99.9%
associate--r+99.9%
neg-sub099.9%
div-sub99.9%
distribute-frac-neg99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in v around 0 97.0%
associate-*r/97.0%
neg-mul-197.0%
+-commutative97.0%
Simplified97.0%
frac-2neg97.0%
div-inv96.8%
remove-double-neg96.8%
Applied egg-rr96.8%
associate-*r/97.0%
*-rgt-identity97.0%
distribute-rgt-neg-in97.0%
+-commutative97.0%
distribute-neg-in97.0%
metadata-eval97.0%
sub-neg97.0%
Simplified97.0%
Taylor expanded in t1 around inf 81.3%
+-commutative81.3%
mul-1-neg81.3%
unsub-neg81.3%
*-commutative81.3%
Simplified81.3%
if -1.1e5 < t1 < -8.49999999999999996e-64Initial program 92.3%
*-commutative92.3%
times-frac99.8%
neg-mul-199.8%
associate-/l*99.8%
associate-*r/99.8%
associate-/l*99.8%
associate-/l/99.8%
neg-mul-199.8%
*-lft-identity99.8%
metadata-eval99.8%
times-frac99.8%
neg-mul-199.8%
remove-double-neg99.8%
neg-mul-199.8%
sub0-neg99.8%
associate--r+99.8%
neg-sub099.8%
div-sub99.8%
distribute-frac-neg99.8%
*-inverses99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in v around 0 92.7%
associate-*r/92.7%
neg-mul-192.7%
+-commutative92.7%
Simplified92.7%
frac-2neg92.7%
div-inv92.3%
remove-double-neg92.3%
Applied egg-rr92.3%
associate-*r/92.7%
*-rgt-identity92.7%
distribute-rgt-neg-in92.7%
+-commutative92.7%
distribute-neg-in92.7%
metadata-eval92.7%
sub-neg92.7%
Simplified92.7%
Taylor expanded in t1 around 0 63.7%
mul-1-neg63.7%
*-commutative63.7%
unpow263.7%
times-frac70.8%
Simplified70.8%
if -3.7999999999999999e-85 < t1 < 6.19999999999999993e-89Initial program 79.4%
*-commutative79.4%
times-frac91.4%
neg-mul-191.4%
associate-/l*91.4%
associate-*r/91.4%
associate-/l*91.4%
associate-/l/91.4%
neg-mul-191.4%
*-lft-identity91.4%
metadata-eval91.4%
times-frac91.4%
neg-mul-191.4%
remove-double-neg91.4%
neg-mul-191.4%
sub0-neg91.4%
associate--r+91.4%
neg-sub091.4%
div-sub91.4%
distribute-frac-neg91.4%
*-inverses91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in v around 0 95.9%
associate-*r/95.9%
neg-mul-195.9%
+-commutative95.9%
Simplified95.9%
Taylor expanded in t1 around 0 75.0%
mul-1-neg75.0%
unpow275.0%
associate-*l/80.3%
*-commutative80.3%
distribute-rgt-neg-in80.3%
associate-/r*84.8%
Simplified84.8%
Final simplification82.1%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (- (* u -2.0) t1))))
(if (<= t1 -850000.0)
t_1
(if (<= t1 -2.2e-63)
(/ (/ (- t1) (/ u v)) u)
(if (or (<= t1 -6.5e-85) (not (<= t1 2.8e-90)))
t_1
(* (- v) (/ (/ t1 u) u)))))))
double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -850000.0) {
tmp = t_1;
} else if (t1 <= -2.2e-63) {
tmp = (-t1 / (u / v)) / u;
} else if ((t1 <= -6.5e-85) || !(t1 <= 2.8e-90)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = v / ((u * (-2.0d0)) - t1)
if (t1 <= (-850000.0d0)) then
tmp = t_1
else if (t1 <= (-2.2d-63)) then
tmp = (-t1 / (u / v)) / u
else if ((t1 <= (-6.5d-85)) .or. (.not. (t1 <= 2.8d-90))) then
tmp = t_1
else
tmp = -v * ((t1 / u) / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -850000.0) {
tmp = t_1;
} else if (t1 <= -2.2e-63) {
tmp = (-t1 / (u / v)) / u;
} else if ((t1 <= -6.5e-85) || !(t1 <= 2.8e-90)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
def code(u, v, t1): t_1 = v / ((u * -2.0) - t1) tmp = 0 if t1 <= -850000.0: tmp = t_1 elif t1 <= -2.2e-63: tmp = (-t1 / (u / v)) / u elif (t1 <= -6.5e-85) or not (t1 <= 2.8e-90): tmp = t_1 else: tmp = -v * ((t1 / u) / u) return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(Float64(u * -2.0) - t1)) tmp = 0.0 if (t1 <= -850000.0) tmp = t_1; elseif (t1 <= -2.2e-63) tmp = Float64(Float64(Float64(-t1) / Float64(u / v)) / u); elseif ((t1 <= -6.5e-85) || !(t1 <= 2.8e-90)) tmp = t_1; else tmp = Float64(Float64(-v) * Float64(Float64(t1 / u) / u)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / ((u * -2.0) - t1); tmp = 0.0; if (t1 <= -850000.0) tmp = t_1; elseif (t1 <= -2.2e-63) tmp = (-t1 / (u / v)) / u; elseif ((t1 <= -6.5e-85) || ~((t1 <= 2.8e-90))) tmp = t_1; else tmp = -v * ((t1 / u) / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -850000.0], t$95$1, If[LessEqual[t1, -2.2e-63], N[(N[((-t1) / N[(u / v), $MachinePrecision]), $MachinePrecision] / u), $MachinePrecision], If[Or[LessEqual[t1, -6.5e-85], N[Not[LessEqual[t1, 2.8e-90]], $MachinePrecision]], t$95$1, N[((-v) * N[(N[(t1 / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{u \cdot -2 - t1}\\
\mathbf{if}\;t1 \leq -850000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -2.2 \cdot 10^{-63}:\\
\;\;\;\;\frac{\frac{-t1}{\frac{u}{v}}}{u}\\
\mathbf{elif}\;t1 \leq -6.5 \cdot 10^{-85} \lor \neg \left(t1 \leq 2.8 \cdot 10^{-90}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\
\end{array}
\end{array}
if t1 < -8.5e5 or -2.2e-63 < t1 < -6.5e-85 or 2.7999999999999999e-90 < t1 Initial program 72.7%
*-commutative72.7%
times-frac99.9%
neg-mul-199.9%
associate-/l*99.9%
associate-*r/99.9%
associate-/l*99.9%
associate-/l/99.9%
neg-mul-199.9%
*-lft-identity99.9%
metadata-eval99.9%
times-frac99.9%
neg-mul-199.9%
remove-double-neg99.9%
neg-mul-199.9%
sub0-neg99.9%
associate--r+99.9%
neg-sub099.9%
div-sub99.9%
distribute-frac-neg99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in v around 0 97.0%
associate-*r/97.0%
neg-mul-197.0%
+-commutative97.0%
Simplified97.0%
frac-2neg97.0%
div-inv96.8%
remove-double-neg96.8%
Applied egg-rr96.8%
associate-*r/97.0%
*-rgt-identity97.0%
distribute-rgt-neg-in97.0%
+-commutative97.0%
distribute-neg-in97.0%
metadata-eval97.0%
sub-neg97.0%
Simplified97.0%
Taylor expanded in t1 around inf 81.3%
+-commutative81.3%
mul-1-neg81.3%
unsub-neg81.3%
*-commutative81.3%
Simplified81.3%
if -8.5e5 < t1 < -2.2e-63Initial program 92.3%
associate-/l*92.4%
Simplified92.4%
Taylor expanded in t1 around 0 63.6%
unpow263.6%
Simplified63.6%
div-inv63.7%
add-sqr-sqrt63.6%
sqrt-unprod63.7%
sqr-neg63.7%
sqrt-unprod0.0%
add-sqr-sqrt24.8%
clear-num24.8%
Applied egg-rr24.8%
*-commutative24.8%
associate-/r*24.7%
associate-*l/24.7%
add-sqr-sqrt0.8%
sqrt-prod41.3%
sqr-neg41.3%
sqrt-unprod40.3%
add-sqr-sqrt70.8%
associate-*l/71.0%
associate-/r/70.8%
div-inv70.8%
associate-/r*70.6%
add-sqr-sqrt40.2%
sqrt-unprod41.2%
sqr-neg41.2%
sqrt-prod0.8%
add-sqr-sqrt24.7%
associate-/r*24.8%
div-inv24.8%
pow224.8%
pow-flip24.8%
metadata-eval24.8%
frac-2neg24.8%
metadata-eval24.8%
add-sqr-sqrt24.8%
sqrt-unprod24.8%
sqr-neg24.8%
Applied egg-rr63.6%
sqr-pow63.5%
associate-*r*70.6%
/-rgt-identity70.6%
metadata-eval70.6%
unpow-170.6%
times-frac70.8%
*-rgt-identity70.8%
associate-/l/70.8%
metadata-eval70.8%
unpow-170.8%
times-frac70.6%
*-rgt-identity70.6%
*-commutative70.6%
rem-square-sqrt31.3%
times-frac31.2%
/-rgt-identity31.2%
associate-*r/31.3%
associate-*l/31.3%
Simplified71.1%
Taylor expanded in v around 0 71.0%
mul-1-neg71.0%
associate-/l*71.0%
Simplified71.0%
if -6.5e-85 < t1 < 2.7999999999999999e-90Initial program 79.4%
*-commutative79.4%
times-frac91.4%
neg-mul-191.4%
associate-/l*91.4%
associate-*r/91.4%
associate-/l*91.4%
associate-/l/91.4%
neg-mul-191.4%
*-lft-identity91.4%
metadata-eval91.4%
times-frac91.4%
neg-mul-191.4%
remove-double-neg91.4%
neg-mul-191.4%
sub0-neg91.4%
associate--r+91.4%
neg-sub091.4%
div-sub91.4%
distribute-frac-neg91.4%
*-inverses91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in v around 0 95.9%
associate-*r/95.9%
neg-mul-195.9%
+-commutative95.9%
Simplified95.9%
Taylor expanded in t1 around 0 75.0%
mul-1-neg75.0%
unpow275.0%
associate-*l/80.3%
*-commutative80.3%
distribute-rgt-neg-in80.3%
associate-/r*84.8%
Simplified84.8%
Final simplification82.1%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (- (* u -2.0) t1))))
(if (<= t1 -52000.0)
t_1
(if (<= t1 -3.5e-63)
(/ (/ v (- (/ u t1))) u)
(if (or (<= t1 -8.5e-86) (not (<= t1 8.5e-89)))
t_1
(* (- v) (/ (/ t1 u) u)))))))
double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -52000.0) {
tmp = t_1;
} else if (t1 <= -3.5e-63) {
tmp = (v / -(u / t1)) / u;
} else if ((t1 <= -8.5e-86) || !(t1 <= 8.5e-89)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = v / ((u * (-2.0d0)) - t1)
if (t1 <= (-52000.0d0)) then
tmp = t_1
else if (t1 <= (-3.5d-63)) then
tmp = (v / -(u / t1)) / u
else if ((t1 <= (-8.5d-86)) .or. (.not. (t1 <= 8.5d-89))) then
tmp = t_1
else
tmp = -v * ((t1 / u) / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -52000.0) {
tmp = t_1;
} else if (t1 <= -3.5e-63) {
tmp = (v / -(u / t1)) / u;
} else if ((t1 <= -8.5e-86) || !(t1 <= 8.5e-89)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
def code(u, v, t1): t_1 = v / ((u * -2.0) - t1) tmp = 0 if t1 <= -52000.0: tmp = t_1 elif t1 <= -3.5e-63: tmp = (v / -(u / t1)) / u elif (t1 <= -8.5e-86) or not (t1 <= 8.5e-89): tmp = t_1 else: tmp = -v * ((t1 / u) / u) return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(Float64(u * -2.0) - t1)) tmp = 0.0 if (t1 <= -52000.0) tmp = t_1; elseif (t1 <= -3.5e-63) tmp = Float64(Float64(v / Float64(-Float64(u / t1))) / u); elseif ((t1 <= -8.5e-86) || !(t1 <= 8.5e-89)) tmp = t_1; else tmp = Float64(Float64(-v) * Float64(Float64(t1 / u) / u)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / ((u * -2.0) - t1); tmp = 0.0; if (t1 <= -52000.0) tmp = t_1; elseif (t1 <= -3.5e-63) tmp = (v / -(u / t1)) / u; elseif ((t1 <= -8.5e-86) || ~((t1 <= 8.5e-89))) tmp = t_1; else tmp = -v * ((t1 / u) / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -52000.0], t$95$1, If[LessEqual[t1, -3.5e-63], N[(N[(v / (-N[(u / t1), $MachinePrecision])), $MachinePrecision] / u), $MachinePrecision], If[Or[LessEqual[t1, -8.5e-86], N[Not[LessEqual[t1, 8.5e-89]], $MachinePrecision]], t$95$1, N[((-v) * N[(N[(t1 / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{u \cdot -2 - t1}\\
\mathbf{if}\;t1 \leq -52000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -3.5 \cdot 10^{-63}:\\
\;\;\;\;\frac{\frac{v}{-\frac{u}{t1}}}{u}\\
\mathbf{elif}\;t1 \leq -8.5 \cdot 10^{-86} \lor \neg \left(t1 \leq 8.5 \cdot 10^{-89}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\
\end{array}
\end{array}
if t1 < -52000 or -3.50000000000000003e-63 < t1 < -8.499999999999999e-86 or 8.49999999999999937e-89 < t1 Initial program 72.7%
*-commutative72.7%
times-frac99.9%
neg-mul-199.9%
associate-/l*99.9%
associate-*r/99.9%
associate-/l*99.9%
associate-/l/99.9%
neg-mul-199.9%
*-lft-identity99.9%
metadata-eval99.9%
times-frac99.9%
neg-mul-199.9%
remove-double-neg99.9%
neg-mul-199.9%
sub0-neg99.9%
associate--r+99.9%
neg-sub099.9%
div-sub99.9%
distribute-frac-neg99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in v around 0 97.0%
associate-*r/97.0%
neg-mul-197.0%
+-commutative97.0%
Simplified97.0%
frac-2neg97.0%
div-inv96.8%
remove-double-neg96.8%
Applied egg-rr96.8%
associate-*r/97.0%
*-rgt-identity97.0%
distribute-rgt-neg-in97.0%
+-commutative97.0%
distribute-neg-in97.0%
metadata-eval97.0%
sub-neg97.0%
Simplified97.0%
Taylor expanded in t1 around inf 81.3%
+-commutative81.3%
mul-1-neg81.3%
unsub-neg81.3%
*-commutative81.3%
Simplified81.3%
if -52000 < t1 < -3.50000000000000003e-63Initial program 92.3%
associate-/l*92.4%
Simplified92.4%
Taylor expanded in t1 around 0 63.6%
unpow263.6%
Simplified63.6%
div-inv63.7%
add-sqr-sqrt63.6%
sqrt-unprod63.7%
sqr-neg63.7%
sqrt-unprod0.0%
add-sqr-sqrt24.8%
clear-num24.8%
Applied egg-rr24.8%
*-commutative24.8%
associate-/r*24.7%
associate-*l/24.7%
add-sqr-sqrt0.8%
sqrt-prod41.3%
sqr-neg41.3%
sqrt-unprod40.3%
add-sqr-sqrt70.8%
associate-*l/71.0%
associate-/r/70.8%
div-inv70.8%
associate-/r*70.6%
add-sqr-sqrt40.2%
sqrt-unprod41.2%
sqr-neg41.2%
sqrt-prod0.8%
add-sqr-sqrt24.7%
associate-/r*24.8%
div-inv24.8%
pow224.8%
pow-flip24.8%
metadata-eval24.8%
frac-2neg24.8%
metadata-eval24.8%
add-sqr-sqrt24.8%
sqrt-unprod24.8%
sqr-neg24.8%
Applied egg-rr63.6%
sqr-pow63.5%
associate-*r*70.6%
/-rgt-identity70.6%
metadata-eval70.6%
unpow-170.6%
times-frac70.8%
*-rgt-identity70.8%
associate-/l/70.8%
metadata-eval70.8%
unpow-170.8%
times-frac70.6%
*-rgt-identity70.6%
*-commutative70.6%
rem-square-sqrt31.3%
times-frac31.2%
/-rgt-identity31.2%
associate-*r/31.3%
associate-*l/31.3%
Simplified71.1%
if -8.499999999999999e-86 < t1 < 8.49999999999999937e-89Initial program 79.4%
*-commutative79.4%
times-frac91.4%
neg-mul-191.4%
associate-/l*91.4%
associate-*r/91.4%
associate-/l*91.4%
associate-/l/91.4%
neg-mul-191.4%
*-lft-identity91.4%
metadata-eval91.4%
times-frac91.4%
neg-mul-191.4%
remove-double-neg91.4%
neg-mul-191.4%
sub0-neg91.4%
associate--r+91.4%
neg-sub091.4%
div-sub91.4%
distribute-frac-neg91.4%
*-inverses91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in v around 0 95.9%
associate-*r/95.9%
neg-mul-195.9%
+-commutative95.9%
Simplified95.9%
Taylor expanded in t1 around 0 75.0%
mul-1-neg75.0%
unpow275.0%
associate-*l/80.3%
*-commutative80.3%
distribute-rgt-neg-in80.3%
associate-/r*84.8%
Simplified84.8%
Final simplification82.1%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (- (* u -2.0) t1))))
(if (<= t1 -850000.0)
t_1
(if (<= t1 -2e-62)
(/ (/ v u) (- -1.0 (/ u t1)))
(if (or (<= t1 -1.9e-85) (not (<= t1 7.8e-89)))
t_1
(* (- v) (/ (/ t1 u) u)))))))
double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -850000.0) {
tmp = t_1;
} else if (t1 <= -2e-62) {
tmp = (v / u) / (-1.0 - (u / t1));
} else if ((t1 <= -1.9e-85) || !(t1 <= 7.8e-89)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = v / ((u * (-2.0d0)) - t1)
if (t1 <= (-850000.0d0)) then
tmp = t_1
else if (t1 <= (-2d-62)) then
tmp = (v / u) / ((-1.0d0) - (u / t1))
else if ((t1 <= (-1.9d-85)) .or. (.not. (t1 <= 7.8d-89))) then
tmp = t_1
else
tmp = -v * ((t1 / u) / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / ((u * -2.0) - t1);
double tmp;
if (t1 <= -850000.0) {
tmp = t_1;
} else if (t1 <= -2e-62) {
tmp = (v / u) / (-1.0 - (u / t1));
} else if ((t1 <= -1.9e-85) || !(t1 <= 7.8e-89)) {
tmp = t_1;
} else {
tmp = -v * ((t1 / u) / u);
}
return tmp;
}
def code(u, v, t1): t_1 = v / ((u * -2.0) - t1) tmp = 0 if t1 <= -850000.0: tmp = t_1 elif t1 <= -2e-62: tmp = (v / u) / (-1.0 - (u / t1)) elif (t1 <= -1.9e-85) or not (t1 <= 7.8e-89): tmp = t_1 else: tmp = -v * ((t1 / u) / u) return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(Float64(u * -2.0) - t1)) tmp = 0.0 if (t1 <= -850000.0) tmp = t_1; elseif (t1 <= -2e-62) tmp = Float64(Float64(v / u) / Float64(-1.0 - Float64(u / t1))); elseif ((t1 <= -1.9e-85) || !(t1 <= 7.8e-89)) tmp = t_1; else tmp = Float64(Float64(-v) * Float64(Float64(t1 / u) / u)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / ((u * -2.0) - t1); tmp = 0.0; if (t1 <= -850000.0) tmp = t_1; elseif (t1 <= -2e-62) tmp = (v / u) / (-1.0 - (u / t1)); elseif ((t1 <= -1.9e-85) || ~((t1 <= 7.8e-89))) tmp = t_1; else tmp = -v * ((t1 / u) / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -850000.0], t$95$1, If[LessEqual[t1, -2e-62], N[(N[(v / u), $MachinePrecision] / N[(-1.0 - N[(u / t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t1, -1.9e-85], N[Not[LessEqual[t1, 7.8e-89]], $MachinePrecision]], t$95$1, N[((-v) * N[(N[(t1 / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{u \cdot -2 - t1}\\
\mathbf{if}\;t1 \leq -850000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -2 \cdot 10^{-62}:\\
\;\;\;\;\frac{\frac{v}{u}}{-1 - \frac{u}{t1}}\\
\mathbf{elif}\;t1 \leq -1.9 \cdot 10^{-85} \lor \neg \left(t1 \leq 7.8 \cdot 10^{-89}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\
\end{array}
\end{array}
if t1 < -8.5e5 or -2.0000000000000001e-62 < t1 < -1.8999999999999999e-85 or 7.79999999999999957e-89 < t1 Initial program 72.7%
*-commutative72.7%
times-frac99.9%
neg-mul-199.9%
associate-/l*99.9%
associate-*r/99.9%
associate-/l*99.9%
associate-/l/99.9%
neg-mul-199.9%
*-lft-identity99.9%
metadata-eval99.9%
times-frac99.9%
neg-mul-199.9%
remove-double-neg99.9%
neg-mul-199.9%
sub0-neg99.9%
associate--r+99.9%
neg-sub099.9%
div-sub99.9%
distribute-frac-neg99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in v around 0 97.0%
associate-*r/97.0%
neg-mul-197.0%
+-commutative97.0%
Simplified97.0%
frac-2neg97.0%
div-inv96.8%
remove-double-neg96.8%
Applied egg-rr96.8%
associate-*r/97.0%
*-rgt-identity97.0%
distribute-rgt-neg-in97.0%
+-commutative97.0%
distribute-neg-in97.0%
metadata-eval97.0%
sub-neg97.0%
Simplified97.0%
Taylor expanded in t1 around inf 81.3%
+-commutative81.3%
mul-1-neg81.3%
unsub-neg81.3%
*-commutative81.3%
Simplified81.3%
if -8.5e5 < t1 < -2.0000000000000001e-62Initial program 92.3%
*-commutative92.3%
times-frac99.8%
neg-mul-199.8%
associate-/l*99.8%
associate-*r/99.8%
associate-/l*99.8%
associate-/l/99.8%
neg-mul-199.8%
*-lft-identity99.8%
metadata-eval99.8%
times-frac99.8%
neg-mul-199.8%
remove-double-neg99.8%
neg-mul-199.8%
sub0-neg99.8%
associate--r+99.8%
neg-sub099.8%
div-sub99.8%
distribute-frac-neg99.8%
*-inverses99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t1 around 0 71.2%
if -1.8999999999999999e-85 < t1 < 7.79999999999999957e-89Initial program 79.4%
*-commutative79.4%
times-frac91.4%
neg-mul-191.4%
associate-/l*91.4%
associate-*r/91.4%
associate-/l*91.4%
associate-/l/91.4%
neg-mul-191.4%
*-lft-identity91.4%
metadata-eval91.4%
times-frac91.4%
neg-mul-191.4%
remove-double-neg91.4%
neg-mul-191.4%
sub0-neg91.4%
associate--r+91.4%
neg-sub091.4%
div-sub91.4%
distribute-frac-neg91.4%
*-inverses91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in v around 0 95.9%
associate-*r/95.9%
neg-mul-195.9%
+-commutative95.9%
Simplified95.9%
Taylor expanded in t1 around 0 75.0%
mul-1-neg75.0%
unpow275.0%
associate-*l/80.3%
*-commutative80.3%
distribute-rgt-neg-in80.3%
associate-/r*84.8%
Simplified84.8%
Final simplification82.1%
(FPCore (u v t1) :precision binary64 (if (<= u 5.8e+179) (/ v (* (+ t1 u) (- -1.0 (/ u t1)))) (/ (/ (- t1) (/ u v)) u)))
double code(double u, double v, double t1) {
double tmp;
if (u <= 5.8e+179) {
tmp = v / ((t1 + u) * (-1.0 - (u / t1)));
} else {
tmp = (-t1 / (u / v)) / u;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if (u <= 5.8d+179) then
tmp = v / ((t1 + u) * ((-1.0d0) - (u / t1)))
else
tmp = (-t1 / (u / v)) / u
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= 5.8e+179) {
tmp = v / ((t1 + u) * (-1.0 - (u / t1)));
} else {
tmp = (-t1 / (u / v)) / u;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= 5.8e+179: tmp = v / ((t1 + u) * (-1.0 - (u / t1))) else: tmp = (-t1 / (u / v)) / u return tmp
function code(u, v, t1) tmp = 0.0 if (u <= 5.8e+179) tmp = Float64(v / Float64(Float64(t1 + u) * Float64(-1.0 - Float64(u / t1)))); else tmp = Float64(Float64(Float64(-t1) / Float64(u / v)) / u); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= 5.8e+179) tmp = v / ((t1 + u) * (-1.0 - (u / t1))); else tmp = (-t1 / (u / v)) / u; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, 5.8e+179], N[(v / N[(N[(t1 + u), $MachinePrecision] * N[(-1.0 - N[(u / t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-t1) / N[(u / v), $MachinePrecision]), $MachinePrecision] / u), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq 5.8 \cdot 10^{+179}:\\
\;\;\;\;\frac{v}{\left(t1 + u\right) \cdot \left(-1 - \frac{u}{t1}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-t1}{\frac{u}{v}}}{u}\\
\end{array}
\end{array}
if u < 5.80000000000000038e179Initial program 77.7%
*-commutative77.7%
times-frac96.6%
neg-mul-196.6%
associate-/l*96.6%
associate-*r/96.6%
associate-/l*96.6%
associate-/l/96.6%
neg-mul-196.6%
*-lft-identity96.6%
metadata-eval96.6%
times-frac96.6%
neg-mul-196.6%
remove-double-neg96.6%
neg-mul-196.6%
sub0-neg96.6%
associate--r+96.6%
neg-sub096.6%
div-sub96.6%
distribute-frac-neg96.6%
*-inverses96.6%
metadata-eval96.6%
Simplified96.6%
Taylor expanded in v around 0 98.2%
associate-*r/98.2%
neg-mul-198.2%
+-commutative98.2%
Simplified98.2%
frac-2neg98.2%
div-inv98.0%
remove-double-neg98.0%
Applied egg-rr98.0%
associate-*r/98.2%
*-rgt-identity98.2%
distribute-rgt-neg-in98.2%
+-commutative98.2%
distribute-neg-in98.2%
metadata-eval98.2%
sub-neg98.2%
Simplified98.2%
if 5.80000000000000038e179 < u Initial program 65.3%
associate-/l*66.1%
Simplified66.1%
Taylor expanded in t1 around 0 66.1%
unpow266.1%
Simplified66.1%
div-inv66.1%
add-sqr-sqrt29.3%
sqrt-unprod61.2%
sqr-neg61.2%
sqrt-unprod36.8%
add-sqr-sqrt66.1%
clear-num66.1%
Applied egg-rr66.1%
*-commutative66.1%
associate-/r*65.8%
associate-*l/65.4%
add-sqr-sqrt65.4%
sqrt-prod66.1%
sqr-neg66.1%
sqrt-unprod0.0%
add-sqr-sqrt96.6%
associate-*l/82.3%
associate-/r/93.6%
div-inv93.5%
associate-/r*82.3%
add-sqr-sqrt0.0%
sqrt-unprod66.1%
sqr-neg66.1%
sqrt-prod65.8%
add-sqr-sqrt65.8%
associate-/r*66.1%
div-inv66.1%
pow266.1%
pow-flip66.1%
metadata-eval66.1%
frac-2neg66.1%
metadata-eval66.1%
add-sqr-sqrt29.3%
sqrt-unprod61.2%
sqr-neg61.2%
Applied egg-rr66.1%
sqr-pow66.1%
associate-*r*82.2%
/-rgt-identity82.2%
metadata-eval82.2%
unpow-182.2%
times-frac82.2%
*-rgt-identity82.2%
associate-/l/82.2%
metadata-eval82.2%
unpow-182.2%
times-frac82.3%
*-rgt-identity82.3%
*-commutative82.3%
rem-square-sqrt55.5%
times-frac55.5%
/-rgt-identity55.5%
associate-*r/57.4%
associate-*l/61.9%
Simplified91.4%
Taylor expanded in v around 0 77.8%
mul-1-neg77.8%
associate-/l*96.6%
Simplified96.6%
Final simplification98.0%
(FPCore (u v t1) :precision binary64 (let* ((t_1 (- -1.0 (/ u t1)))) (if (<= u 1.05e-34) (/ v (* (+ t1 u) t_1)) (/ (/ v (+ t1 u)) t_1))))
double code(double u, double v, double t1) {
double t_1 = -1.0 - (u / t1);
double tmp;
if (u <= 1.05e-34) {
tmp = v / ((t1 + u) * t_1);
} else {
tmp = (v / (t1 + u)) / t_1;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = (-1.0d0) - (u / t1)
if (u <= 1.05d-34) then
tmp = v / ((t1 + u) * t_1)
else
tmp = (v / (t1 + u)) / t_1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = -1.0 - (u / t1);
double tmp;
if (u <= 1.05e-34) {
tmp = v / ((t1 + u) * t_1);
} else {
tmp = (v / (t1 + u)) / t_1;
}
return tmp;
}
def code(u, v, t1): t_1 = -1.0 - (u / t1) tmp = 0 if u <= 1.05e-34: tmp = v / ((t1 + u) * t_1) else: tmp = (v / (t1 + u)) / t_1 return tmp
function code(u, v, t1) t_1 = Float64(-1.0 - Float64(u / t1)) tmp = 0.0 if (u <= 1.05e-34) tmp = Float64(v / Float64(Float64(t1 + u) * t_1)); else tmp = Float64(Float64(v / Float64(t1 + u)) / t_1); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = -1.0 - (u / t1); tmp = 0.0; if (u <= 1.05e-34) tmp = v / ((t1 + u) * t_1); else tmp = (v / (t1 + u)) / t_1; end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(-1.0 - N[(u / t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, 1.05e-34], N[(v / N[(N[(t1 + u), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 - \frac{u}{t1}\\
\mathbf{if}\;u \leq 1.05 \cdot 10^{-34}:\\
\;\;\;\;\frac{v}{\left(t1 + u\right) \cdot t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{v}{t1 + u}}{t_1}\\
\end{array}
\end{array}
if u < 1.05e-34Initial program 77.7%
*-commutative77.7%
times-frac96.5%
neg-mul-196.5%
associate-/l*96.5%
associate-*r/96.5%
associate-/l*96.5%
associate-/l/96.5%
neg-mul-196.5%
*-lft-identity96.5%
metadata-eval96.5%
times-frac96.5%
neg-mul-196.5%
remove-double-neg96.5%
neg-mul-196.5%
sub0-neg96.5%
associate--r+96.5%
neg-sub096.5%
div-sub96.5%
distribute-frac-neg96.5%
*-inverses96.5%
metadata-eval96.5%
Simplified96.5%
Taylor expanded in v around 0 98.9%
associate-*r/98.9%
neg-mul-198.9%
+-commutative98.9%
Simplified98.9%
frac-2neg98.9%
div-inv98.7%
remove-double-neg98.7%
Applied egg-rr98.7%
associate-*r/98.9%
*-rgt-identity98.9%
distribute-rgt-neg-in98.9%
+-commutative98.9%
distribute-neg-in98.9%
metadata-eval98.9%
sub-neg98.9%
Simplified98.9%
if 1.05e-34 < u Initial program 71.6%
*-commutative71.6%
times-frac96.9%
neg-mul-196.9%
associate-/l*96.8%
associate-*r/96.9%
associate-/l*96.9%
associate-/l/96.9%
neg-mul-196.9%
*-lft-identity96.9%
metadata-eval96.9%
times-frac96.9%
neg-mul-196.9%
remove-double-neg96.9%
neg-mul-196.9%
sub0-neg96.9%
associate--r+96.9%
neg-sub096.9%
div-sub96.9%
distribute-frac-neg96.9%
*-inverses96.9%
metadata-eval96.9%
Simplified96.9%
Final simplification98.4%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -55000.0) (not (<= t1 2.8e-89))) (/ v (- (* u -2.0) t1)) (* (/ (- v) u) (/ t1 u))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -55000.0) || !(t1 <= 2.8e-89)) {
tmp = v / ((u * -2.0) - t1);
} else {
tmp = (-v / u) * (t1 / u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((t1 <= (-55000.0d0)) .or. (.not. (t1 <= 2.8d-89))) then
tmp = v / ((u * (-2.0d0)) - t1)
else
tmp = (-v / u) * (t1 / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -55000.0) || !(t1 <= 2.8e-89)) {
tmp = v / ((u * -2.0) - t1);
} else {
tmp = (-v / u) * (t1 / u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -55000.0) or not (t1 <= 2.8e-89): tmp = v / ((u * -2.0) - t1) else: tmp = (-v / u) * (t1 / u) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -55000.0) || !(t1 <= 2.8e-89)) tmp = Float64(v / Float64(Float64(u * -2.0) - t1)); else tmp = Float64(Float64(Float64(-v) / u) * Float64(t1 / u)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -55000.0) || ~((t1 <= 2.8e-89))) tmp = v / ((u * -2.0) - t1); else tmp = (-v / u) * (t1 / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -55000.0], N[Not[LessEqual[t1, 2.8e-89]], $MachinePrecision]], N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision], N[(N[((-v) / u), $MachinePrecision] * N[(t1 / u), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -55000 \lor \neg \left(t1 \leq 2.8 \cdot 10^{-89}\right):\\
\;\;\;\;\frac{v}{u \cdot -2 - t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{u} \cdot \frac{t1}{u}\\
\end{array}
\end{array}
if t1 < -55000 or 2.7999999999999999e-89 < t1 Initial program 72.0%
*-commutative72.0%
times-frac99.9%
neg-mul-199.9%
associate-/l*99.9%
associate-*r/99.9%
associate-/l*99.9%
associate-/l/99.9%
neg-mul-199.9%
*-lft-identity99.9%
metadata-eval99.9%
times-frac99.9%
neg-mul-199.9%
remove-double-neg99.9%
neg-mul-199.9%
sub0-neg99.9%
associate--r+99.9%
neg-sub099.9%
div-sub99.9%
distribute-frac-neg99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in v around 0 96.9%
associate-*r/96.9%
neg-mul-196.9%
+-commutative96.9%
Simplified96.9%
frac-2neg96.9%
div-inv96.6%
remove-double-neg96.6%
Applied egg-rr96.6%
associate-*r/96.9%
*-rgt-identity96.9%
distribute-rgt-neg-in96.9%
+-commutative96.9%
distribute-neg-in96.9%
metadata-eval96.9%
sub-neg96.9%
Simplified96.9%
Taylor expanded in t1 around inf 80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
*-commutative80.7%
Simplified80.7%
if -55000 < t1 < 2.7999999999999999e-89Initial program 81.2%
*-commutative81.2%
times-frac92.8%
neg-mul-192.8%
associate-/l*92.8%
associate-*r/92.8%
associate-/l*92.8%
associate-/l/92.8%
neg-mul-192.8%
*-lft-identity92.8%
metadata-eval92.8%
times-frac92.8%
neg-mul-192.8%
remove-double-neg92.8%
neg-mul-192.8%
sub0-neg92.8%
associate--r+92.8%
neg-sub092.8%
div-sub92.8%
distribute-frac-neg92.8%
*-inverses92.8%
metadata-eval92.8%
Simplified92.8%
Taylor expanded in v around 0 95.8%
associate-*r/95.8%
neg-mul-195.8%
+-commutative95.8%
Simplified95.8%
frac-2neg95.8%
div-inv95.6%
remove-double-neg95.6%
Applied egg-rr95.6%
associate-*r/95.8%
*-rgt-identity95.8%
distribute-rgt-neg-in95.8%
+-commutative95.8%
distribute-neg-in95.8%
metadata-eval95.8%
sub-neg95.8%
Simplified95.8%
Taylor expanded in t1 around 0 72.1%
mul-1-neg72.1%
*-commutative72.1%
unpow272.1%
times-frac76.8%
Simplified76.8%
Final simplification78.9%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -52000.0) (not (<= t1 6.2e-89))) (/ v (- (* u -2.0) t1)) (/ (/ (- t1) u) (/ u v))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -52000.0) || !(t1 <= 6.2e-89)) {
tmp = v / ((u * -2.0) - t1);
} else {
tmp = (-t1 / u) / (u / v);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((t1 <= (-52000.0d0)) .or. (.not. (t1 <= 6.2d-89))) then
tmp = v / ((u * (-2.0d0)) - t1)
else
tmp = (-t1 / u) / (u / v)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -52000.0) || !(t1 <= 6.2e-89)) {
tmp = v / ((u * -2.0) - t1);
} else {
tmp = (-t1 / u) / (u / v);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -52000.0) or not (t1 <= 6.2e-89): tmp = v / ((u * -2.0) - t1) else: tmp = (-t1 / u) / (u / v) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -52000.0) || !(t1 <= 6.2e-89)) tmp = Float64(v / Float64(Float64(u * -2.0) - t1)); else tmp = Float64(Float64(Float64(-t1) / u) / Float64(u / v)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -52000.0) || ~((t1 <= 6.2e-89))) tmp = v / ((u * -2.0) - t1); else tmp = (-t1 / u) / (u / v); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -52000.0], N[Not[LessEqual[t1, 6.2e-89]], $MachinePrecision]], N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision], N[(N[((-t1) / u), $MachinePrecision] / N[(u / v), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -52000 \lor \neg \left(t1 \leq 6.2 \cdot 10^{-89}\right):\\
\;\;\;\;\frac{v}{u \cdot -2 - t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-t1}{u}}{\frac{u}{v}}\\
\end{array}
\end{array}
if t1 < -52000 or 6.19999999999999993e-89 < t1 Initial program 72.0%
*-commutative72.0%
times-frac99.9%
neg-mul-199.9%
associate-/l*99.9%
associate-*r/99.9%
associate-/l*99.9%
associate-/l/99.9%
neg-mul-199.9%
*-lft-identity99.9%
metadata-eval99.9%
times-frac99.9%
neg-mul-199.9%
remove-double-neg99.9%
neg-mul-199.9%
sub0-neg99.9%
associate--r+99.9%
neg-sub099.9%
div-sub99.9%
distribute-frac-neg99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in v around 0 96.9%
associate-*r/96.9%
neg-mul-196.9%
+-commutative96.9%
Simplified96.9%
frac-2neg96.9%
div-inv96.6%
remove-double-neg96.6%
Applied egg-rr96.6%
associate-*r/96.9%
*-rgt-identity96.9%
distribute-rgt-neg-in96.9%
+-commutative96.9%
distribute-neg-in96.9%
metadata-eval96.9%
sub-neg96.9%
Simplified96.9%
Taylor expanded in t1 around inf 80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
*-commutative80.7%
Simplified80.7%
if -52000 < t1 < 6.19999999999999993e-89Initial program 81.2%
*-commutative81.2%
times-frac92.8%
neg-mul-192.8%
associate-/l*92.8%
associate-*r/92.8%
associate-/l*92.8%
associate-/l/92.8%
neg-mul-192.8%
*-lft-identity92.8%
metadata-eval92.8%
times-frac92.8%
neg-mul-192.8%
remove-double-neg92.8%
neg-mul-192.8%
sub0-neg92.8%
associate--r+92.8%
neg-sub092.8%
div-sub92.8%
distribute-frac-neg92.8%
*-inverses92.8%
metadata-eval92.8%
Simplified92.8%
Taylor expanded in v around 0 95.8%
associate-*r/95.8%
neg-mul-195.8%
+-commutative95.8%
Simplified95.8%
frac-2neg95.8%
div-inv95.6%
remove-double-neg95.6%
Applied egg-rr95.6%
associate-*r/95.8%
*-rgt-identity95.8%
distribute-rgt-neg-in95.8%
+-commutative95.8%
distribute-neg-in95.8%
metadata-eval95.8%
sub-neg95.8%
Simplified95.8%
Taylor expanded in t1 around 0 72.1%
mul-1-neg72.1%
*-commutative72.1%
unpow272.1%
times-frac76.8%
Simplified76.8%
*-commutative76.8%
clear-num76.7%
un-div-inv77.8%
Applied egg-rr77.8%
Final simplification79.4%
(FPCore (u v t1) :precision binary64 (if (<= u -2.3e-47) (* t1 (/ (/ (- v) u) (+ t1 u))) (if (<= u 4.2e-63) (/ (- v) t1) (/ (/ (- t1) (/ u v)) u))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -2.3e-47) {
tmp = t1 * ((-v / u) / (t1 + u));
} else if (u <= 4.2e-63) {
tmp = -v / t1;
} else {
tmp = (-t1 / (u / v)) / u;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if (u <= (-2.3d-47)) then
tmp = t1 * ((-v / u) / (t1 + u))
else if (u <= 4.2d-63) then
tmp = -v / t1
else
tmp = (-t1 / (u / v)) / u
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -2.3e-47) {
tmp = t1 * ((-v / u) / (t1 + u));
} else if (u <= 4.2e-63) {
tmp = -v / t1;
} else {
tmp = (-t1 / (u / v)) / u;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -2.3e-47: tmp = t1 * ((-v / u) / (t1 + u)) elif u <= 4.2e-63: tmp = -v / t1 else: tmp = (-t1 / (u / v)) / u return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -2.3e-47) tmp = Float64(t1 * Float64(Float64(Float64(-v) / u) / Float64(t1 + u))); elseif (u <= 4.2e-63) tmp = Float64(Float64(-v) / t1); else tmp = Float64(Float64(Float64(-t1) / Float64(u / v)) / u); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -2.3e-47) tmp = t1 * ((-v / u) / (t1 + u)); elseif (u <= 4.2e-63) tmp = -v / t1; else tmp = (-t1 / (u / v)) / u; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -2.3e-47], N[(t1 * N[(N[((-v) / u), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 4.2e-63], N[((-v) / t1), $MachinePrecision], N[(N[((-t1) / N[(u / v), $MachinePrecision]), $MachinePrecision] / u), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -2.3 \cdot 10^{-47}:\\
\;\;\;\;t1 \cdot \frac{\frac{-v}{u}}{t1 + u}\\
\mathbf{elif}\;u \leq 4.2 \cdot 10^{-63}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-t1}{\frac{u}{v}}}{u}\\
\end{array}
\end{array}
if u < -2.29999999999999982e-47Initial program 89.8%
associate-/l*87.0%
neg-mul-187.0%
*-commutative87.0%
associate-*r/87.0%
associate-/l*87.5%
neg-mul-187.5%
associate-/r*91.6%
Simplified91.6%
Taylor expanded in t1 around 0 82.4%
associate-*r/82.4%
neg-mul-182.4%
Simplified82.4%
if -2.29999999999999982e-47 < u < 4.2e-63Initial program 71.5%
times-frac95.7%
Simplified95.7%
Taylor expanded in t1 around inf 80.1%
associate-*r/80.1%
neg-mul-180.1%
Simplified80.1%
if 4.2e-63 < u Initial program 70.2%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in t1 around 0 64.1%
unpow264.1%
Simplified64.1%
div-inv63.4%
add-sqr-sqrt24.9%
sqrt-unprod42.8%
sqr-neg42.8%
sqrt-unprod22.7%
add-sqr-sqrt39.4%
clear-num38.1%
Applied egg-rr38.1%
*-commutative38.1%
associate-/r*37.9%
associate-*l/37.8%
add-sqr-sqrt37.8%
sqrt-prod38.1%
sqr-neg38.1%
sqrt-unprod0.0%
add-sqr-sqrt75.0%
associate-*l/68.6%
associate-/r/73.9%
div-inv73.8%
associate-/r*68.5%
add-sqr-sqrt0.0%
sqrt-unprod38.1%
sqr-neg38.1%
sqrt-prod37.9%
add-sqr-sqrt37.9%
associate-/r*38.1%
div-inv38.1%
pow238.1%
pow-flip38.1%
metadata-eval38.1%
frac-2neg38.1%
metadata-eval38.1%
add-sqr-sqrt15.4%
sqrt-unprod46.9%
sqr-neg46.9%
Applied egg-rr62.1%
sqr-pow62.0%
associate-*r*68.4%
/-rgt-identity68.4%
metadata-eval68.4%
unpow-168.4%
times-frac68.5%
*-rgt-identity68.5%
associate-/l/68.5%
metadata-eval68.5%
unpow-168.5%
times-frac68.5%
*-rgt-identity68.5%
*-commutative68.5%
rem-square-sqrt37.6%
times-frac37.6%
/-rgt-identity37.6%
associate-*r/39.7%
associate-*l/41.4%
Simplified73.0%
Taylor expanded in v around 0 68.0%
mul-1-neg68.0%
associate-/l*75.0%
Simplified75.0%
Final simplification79.3%
(FPCore (u v t1) :precision binary64 (if (or (<= u -1.7e+23) (not (<= u 2.3e+181))) (* t1 (/ v (* u u))) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.7e+23) || !(u <= 2.3e+181)) {
tmp = t1 * (v / (u * u));
} else {
tmp = -v / t1;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((u <= (-1.7d+23)) .or. (.not. (u <= 2.3d+181))) then
tmp = t1 * (v / (u * u))
else
tmp = -v / t1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.7e+23) || !(u <= 2.3e+181)) {
tmp = t1 * (v / (u * u));
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -1.7e+23) or not (u <= 2.3e+181): tmp = t1 * (v / (u * u)) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -1.7e+23) || !(u <= 2.3e+181)) tmp = Float64(t1 * Float64(v / Float64(u * u))); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -1.7e+23) || ~((u <= 2.3e+181))) tmp = t1 * (v / (u * u)); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -1.7e+23], N[Not[LessEqual[u, 2.3e+181]], $MachinePrecision]], N[(t1 * N[(v / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.7 \cdot 10^{+23} \lor \neg \left(u \leq 2.3 \cdot 10^{+181}\right):\\
\;\;\;\;t1 \cdot \frac{v}{u \cdot u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -1.69999999999999996e23 or 2.2999999999999999e181 < u Initial program 82.3%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in t1 around 0 76.9%
unpow276.9%
Simplified76.9%
div-inv76.9%
add-sqr-sqrt38.1%
sqrt-unprod61.9%
sqr-neg61.9%
sqrt-unprod37.6%
add-sqr-sqrt72.2%
clear-num72.2%
Applied egg-rr72.2%
if -1.69999999999999996e23 < u < 2.2999999999999999e181Initial program 73.4%
times-frac96.1%
Simplified96.1%
Taylor expanded in t1 around inf 65.8%
associate-*r/65.8%
neg-mul-165.8%
Simplified65.8%
Final simplification67.8%
(FPCore (u v t1) :precision binary64 (if (or (<= u -2.6e+152) (not (<= u 7.5e+181))) (/ (- v) u) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -2.6e+152) || !(u <= 7.5e+181)) {
tmp = -v / u;
} else {
tmp = -v / t1;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((u <= (-2.6d+152)) .or. (.not. (u <= 7.5d+181))) then
tmp = -v / u
else
tmp = -v / t1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((u <= -2.6e+152) || !(u <= 7.5e+181)) {
tmp = -v / u;
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -2.6e+152) or not (u <= 7.5e+181): tmp = -v / u else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -2.6e+152) || !(u <= 7.5e+181)) tmp = Float64(Float64(-v) / u); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -2.6e+152) || ~((u <= 7.5e+181))) tmp = -v / u; else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -2.6e+152], N[Not[LessEqual[u, 7.5e+181]], $MachinePrecision]], N[((-v) / u), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -2.6 \cdot 10^{+152} \lor \neg \left(u \leq 7.5 \cdot 10^{+181}\right):\\
\;\;\;\;\frac{-v}{u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -2.6000000000000001e152 or 7.5000000000000005e181 < u Initial program 76.8%
*-commutative76.8%
times-frac98.3%
neg-mul-198.3%
associate-/l*98.3%
associate-*r/98.3%
associate-/l*98.3%
associate-/l/98.3%
neg-mul-198.3%
*-lft-identity98.3%
metadata-eval98.3%
times-frac98.3%
neg-mul-198.3%
remove-double-neg98.3%
neg-mul-198.3%
sub0-neg98.3%
associate--r+98.3%
neg-sub098.3%
div-sub98.3%
distribute-frac-neg98.3%
*-inverses98.3%
metadata-eval98.3%
Simplified98.3%
Taylor expanded in t1 around 0 96.6%
Taylor expanded in u around 0 47.8%
neg-mul-147.8%
distribute-neg-frac47.8%
Simplified47.8%
if -2.6000000000000001e152 < u < 7.5000000000000005e181Initial program 76.1%
times-frac96.2%
Simplified96.2%
Taylor expanded in t1 around inf 62.7%
associate-*r/62.7%
neg-mul-162.7%
Simplified62.7%
Final simplification59.5%
(FPCore (u v t1) :precision binary64 (/ (- v) (+ t1 u)))
double code(double u, double v, double t1) {
return -v / (t1 + u);
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
code = -v / (t1 + u)
end function
public static double code(double u, double v, double t1) {
return -v / (t1 + u);
}
def code(u, v, t1): return -v / (t1 + u)
function code(u, v, t1) return Float64(Float64(-v) / Float64(t1 + u)) end
function tmp = code(u, v, t1) tmp = -v / (t1 + u); end
code[u_, v_, t1_] := N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-v}{t1 + u}
\end{array}
Initial program 76.3%
times-frac96.6%
Simplified96.6%
Taylor expanded in t1 around inf 60.6%
Final simplification60.6%
(FPCore (u v t1) :precision binary64 (/ (- v) t1))
double code(double u, double v, double t1) {
return -v / t1;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
code = -v / t1
end function
public static double code(double u, double v, double t1) {
return -v / t1;
}
def code(u, v, t1): return -v / t1
function code(u, v, t1) return Float64(Float64(-v) / t1) end
function tmp = code(u, v, t1) tmp = -v / t1; end
code[u_, v_, t1_] := N[((-v) / t1), $MachinePrecision]
\begin{array}{l}
\\
\frac{-v}{t1}
\end{array}
Initial program 76.3%
times-frac96.6%
Simplified96.6%
Taylor expanded in t1 around inf 52.9%
associate-*r/52.9%
neg-mul-152.9%
Simplified52.9%
Final simplification52.9%
(FPCore (u v t1) :precision binary64 (/ v t1))
double code(double u, double v, double t1) {
return v / t1;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
code = v / t1
end function
public static double code(double u, double v, double t1) {
return v / t1;
}
def code(u, v, t1): return v / t1
function code(u, v, t1) return Float64(v / t1) end
function tmp = code(u, v, t1) tmp = v / t1; end
code[u_, v_, t1_] := N[(v / t1), $MachinePrecision]
\begin{array}{l}
\\
\frac{v}{t1}
\end{array}
Initial program 76.3%
times-frac96.6%
Simplified96.6%
clear-num96.6%
frac-times96.3%
*-un-lft-identity96.3%
frac-2neg96.3%
distribute-neg-in96.3%
add-sqr-sqrt44.8%
sqrt-unprod71.2%
sqr-neg71.2%
sqrt-unprod31.1%
add-sqr-sqrt60.4%
sub-neg60.4%
remove-double-neg60.4%
Applied egg-rr60.4%
Taylor expanded in t1 around inf 16.4%
Final simplification16.4%
herbie shell --seed 2023208
(FPCore (u v t1)
:name "Rosa's DopplerBench"
:precision binary64
(/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))