
(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 17 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 (/ (/ (* t1 (/ v (+ t1 u))) -1.0) (+ t1 u)))
double code(double u, double v, double t1) {
return ((t1 * (v / (t1 + u))) / -1.0) / (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))) / (-1.0d0)) / (t1 + u)
end function
public static double code(double u, double v, double t1) {
return ((t1 * (v / (t1 + u))) / -1.0) / (t1 + u);
}
def code(u, v, t1): return ((t1 * (v / (t1 + u))) / -1.0) / (t1 + u)
function code(u, v, t1) return Float64(Float64(Float64(t1 * Float64(v / Float64(t1 + u))) / -1.0) / Float64(t1 + u)) end
function tmp = code(u, v, t1) tmp = ((t1 * (v / (t1 + u))) / -1.0) / (t1 + u); end
code[u_, v_, t1_] := N[(N[(N[(t1 * N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / -1.0), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{t1 \cdot \frac{v}{t1 + u}}{-1}}{t1 + u}
\end{array}
Initial program 74.5%
times-frac97.2%
distribute-frac-neg97.2%
distribute-neg-frac297.2%
+-commutative97.2%
distribute-neg-in97.2%
unsub-neg97.2%
Simplified97.2%
associate-*l/98.4%
sub-neg98.4%
distribute-neg-in98.4%
+-commutative98.4%
neg-mul-198.4%
associate-/r*98.4%
Applied egg-rr98.4%
Final simplification98.4%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (* t1 (/ (/ v (+ t1 u)) (- (- u) t1)))))
(if (<= t1 -3.3e+173)
(/ v (- (- t1) (* u 2.0)))
(if (<= t1 -5e-176)
t_1
(if (<= t1 2.9e-229)
(/ (* t1 (/ v (- u))) (+ t1 u))
(if (<= t1 2.1e+167) t_1 (/ v (- t1))))))))
double code(double u, double v, double t1) {
double t_1 = t1 * ((v / (t1 + u)) / (-u - t1));
double tmp;
if (t1 <= -3.3e+173) {
tmp = v / (-t1 - (u * 2.0));
} else if (t1 <= -5e-176) {
tmp = t_1;
} else if (t1 <= 2.9e-229) {
tmp = (t1 * (v / -u)) / (t1 + u);
} else if (t1 <= 2.1e+167) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t1 * ((v / (t1 + u)) / (-u - t1))
if (t1 <= (-3.3d+173)) then
tmp = v / (-t1 - (u * 2.0d0))
else if (t1 <= (-5d-176)) then
tmp = t_1
else if (t1 <= 2.9d-229) then
tmp = (t1 * (v / -u)) / (t1 + u)
else if (t1 <= 2.1d+167) then
tmp = t_1
else
tmp = v / -t1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = t1 * ((v / (t1 + u)) / (-u - t1));
double tmp;
if (t1 <= -3.3e+173) {
tmp = v / (-t1 - (u * 2.0));
} else if (t1 <= -5e-176) {
tmp = t_1;
} else if (t1 <= 2.9e-229) {
tmp = (t1 * (v / -u)) / (t1 + u);
} else if (t1 <= 2.1e+167) {
tmp = t_1;
} else {
tmp = v / -t1;
}
return tmp;
}
def code(u, v, t1): t_1 = t1 * ((v / (t1 + u)) / (-u - t1)) tmp = 0 if t1 <= -3.3e+173: tmp = v / (-t1 - (u * 2.0)) elif t1 <= -5e-176: tmp = t_1 elif t1 <= 2.9e-229: tmp = (t1 * (v / -u)) / (t1 + u) elif t1 <= 2.1e+167: tmp = t_1 else: tmp = v / -t1 return tmp
function code(u, v, t1) t_1 = Float64(t1 * Float64(Float64(v / Float64(t1 + u)) / Float64(Float64(-u) - t1))) tmp = 0.0 if (t1 <= -3.3e+173) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); elseif (t1 <= -5e-176) tmp = t_1; elseif (t1 <= 2.9e-229) tmp = Float64(Float64(t1 * Float64(v / Float64(-u))) / Float64(t1 + u)); elseif (t1 <= 2.1e+167) tmp = t_1; else tmp = Float64(v / Float64(-t1)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = t1 * ((v / (t1 + u)) / (-u - t1)); tmp = 0.0; if (t1 <= -3.3e+173) tmp = v / (-t1 - (u * 2.0)); elseif (t1 <= -5e-176) tmp = t_1; elseif (t1 <= 2.9e-229) tmp = (t1 * (v / -u)) / (t1 + u); elseif (t1 <= 2.1e+167) tmp = t_1; else tmp = v / -t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(t1 * N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[((-u) - t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -3.3e+173], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, -5e-176], t$95$1, If[LessEqual[t1, 2.9e-229], N[(N[(t1 * N[(v / (-u)), $MachinePrecision]), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 2.1e+167], t$95$1, N[(v / (-t1)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\
\mathbf{if}\;t1 \leq -3.3 \cdot 10^{+173}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{elif}\;t1 \leq -5 \cdot 10^{-176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-229}:\\
\;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\
\mathbf{elif}\;t1 \leq 2.1 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{-t1}\\
\end{array}
\end{array}
if t1 < -3.29999999999999996e173Initial program 41.6%
times-frac99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
Simplified99.9%
clear-num99.9%
frac-2neg99.9%
frac-times95.4%
*-un-lft-identity95.4%
+-commutative95.4%
distribute-neg-in95.4%
sub-neg95.4%
frac-2neg95.4%
sub-neg95.4%
distribute-neg-in95.4%
+-commutative95.4%
remove-double-neg95.4%
add-sqr-sqrt94.9%
sqrt-unprod1.9%
sqr-neg1.9%
sqrt-unprod0.0%
add-sqr-sqrt42.2%
sub-neg42.2%
distribute-neg-in42.2%
+-commutative42.2%
add-sqr-sqrt42.2%
sqrt-unprod43.1%
Applied egg-rr95.4%
Taylor expanded in t1 around inf 95.5%
*-commutative95.5%
Simplified95.5%
if -3.29999999999999996e173 < t1 < -5e-176 or 2.9e-229 < t1 < 2.0999999999999999e167Initial program 82.9%
associate-/l*87.1%
distribute-lft-neg-out87.1%
distribute-rgt-neg-in87.1%
associate-/r*95.3%
distribute-neg-frac295.3%
Simplified95.3%
if -5e-176 < t1 < 2.9e-229Initial program 75.2%
times-frac86.5%
distribute-frac-neg86.5%
distribute-neg-frac286.5%
+-commutative86.5%
distribute-neg-in86.5%
unsub-neg86.5%
Simplified86.5%
frac-2neg86.5%
associate-*l/93.8%
sub-neg93.8%
distribute-neg-in93.8%
+-commutative93.8%
remove-double-neg93.8%
associate-*l/86.5%
frac-2neg86.5%
associate-*r/88.3%
add-sqr-sqrt56.1%
sqrt-unprod49.3%
sqr-neg49.3%
sqrt-unprod13.2%
add-sqr-sqrt48.7%
add-sqr-sqrt28.2%
sqrt-unprod57.3%
sqr-neg57.3%
sqrt-prod35.1%
Applied egg-rr88.3%
Taylor expanded in t1 around 0 86.9%
mul-1-neg86.9%
associate-/l*91.2%
distribute-rgt-neg-in91.2%
distribute-neg-frac291.2%
Simplified91.2%
if 2.0999999999999999e167 < t1 Initial program 38.1%
times-frac100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in t1 around inf 100.0%
associate-*r/100.0%
neg-mul-1100.0%
Simplified100.0%
Final simplification95.0%
(FPCore (u v t1)
:precision binary64
(if (<= t1 -2.55e+154)
(/ v (- (- t1) (* u 2.0)))
(if (<= t1 -1.45e-158)
(* (- v) (/ t1 (* (+ t1 u) (+ t1 u))))
(if (<= t1 2.15e-211)
(/ (/ (/ t1 (/ u v)) -1.0) (+ t1 u))
(if (<= t1 1.45e+166)
(* t1 (/ (/ v (+ t1 u)) (- (- u) t1)))
(/ v (- t1)))))))
double code(double u, double v, double t1) {
double tmp;
if (t1 <= -2.55e+154) {
tmp = v / (-t1 - (u * 2.0));
} else if (t1 <= -1.45e-158) {
tmp = -v * (t1 / ((t1 + u) * (t1 + u)));
} else if (t1 <= 2.15e-211) {
tmp = ((t1 / (u / v)) / -1.0) / (t1 + u);
} else if (t1 <= 1.45e+166) {
tmp = t1 * ((v / (t1 + u)) / (-u - t1));
} 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 (t1 <= (-2.55d+154)) then
tmp = v / (-t1 - (u * 2.0d0))
else if (t1 <= (-1.45d-158)) then
tmp = -v * (t1 / ((t1 + u) * (t1 + u)))
else if (t1 <= 2.15d-211) then
tmp = ((t1 / (u / v)) / (-1.0d0)) / (t1 + u)
else if (t1 <= 1.45d+166) then
tmp = t1 * ((v / (t1 + u)) / (-u - t1))
else
tmp = v / -t1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (t1 <= -2.55e+154) {
tmp = v / (-t1 - (u * 2.0));
} else if (t1 <= -1.45e-158) {
tmp = -v * (t1 / ((t1 + u) * (t1 + u)));
} else if (t1 <= 2.15e-211) {
tmp = ((t1 / (u / v)) / -1.0) / (t1 + u);
} else if (t1 <= 1.45e+166) {
tmp = t1 * ((v / (t1 + u)) / (-u - t1));
} else {
tmp = v / -t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if t1 <= -2.55e+154: tmp = v / (-t1 - (u * 2.0)) elif t1 <= -1.45e-158: tmp = -v * (t1 / ((t1 + u) * (t1 + u))) elif t1 <= 2.15e-211: tmp = ((t1 / (u / v)) / -1.0) / (t1 + u) elif t1 <= 1.45e+166: tmp = t1 * ((v / (t1 + u)) / (-u - t1)) else: tmp = v / -t1 return tmp
function code(u, v, t1) tmp = 0.0 if (t1 <= -2.55e+154) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); elseif (t1 <= -1.45e-158) tmp = Float64(Float64(-v) * Float64(t1 / Float64(Float64(t1 + u) * Float64(t1 + u)))); elseif (t1 <= 2.15e-211) tmp = Float64(Float64(Float64(t1 / Float64(u / v)) / -1.0) / Float64(t1 + u)); elseif (t1 <= 1.45e+166) tmp = Float64(t1 * Float64(Float64(v / Float64(t1 + u)) / Float64(Float64(-u) - t1))); else tmp = Float64(v / Float64(-t1)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (t1 <= -2.55e+154) tmp = v / (-t1 - (u * 2.0)); elseif (t1 <= -1.45e-158) tmp = -v * (t1 / ((t1 + u) * (t1 + u))); elseif (t1 <= 2.15e-211) tmp = ((t1 / (u / v)) / -1.0) / (t1 + u); elseif (t1 <= 1.45e+166) tmp = t1 * ((v / (t1 + u)) / (-u - t1)); else tmp = v / -t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[t1, -2.55e+154], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, -1.45e-158], N[((-v) * N[(t1 / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 2.15e-211], N[(N[(N[(t1 / N[(u / v), $MachinePrecision]), $MachinePrecision] / -1.0), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 1.45e+166], N[(t1 * N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[((-u) - t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(v / (-t1)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -2.55 \cdot 10^{+154}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{elif}\;t1 \leq -1.45 \cdot 10^{-158}:\\
\;\;\;\;\left(-v\right) \cdot \frac{t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
\mathbf{elif}\;t1 \leq 2.15 \cdot 10^{-211}:\\
\;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\
\mathbf{elif}\;t1 \leq 1.45 \cdot 10^{+166}:\\
\;\;\;\;t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{-t1}\\
\end{array}
\end{array}
if t1 < -2.55e154Initial program 41.3%
times-frac99.8%
distribute-frac-neg99.8%
distribute-neg-frac299.8%
+-commutative99.8%
distribute-neg-in99.8%
unsub-neg99.8%
Simplified99.8%
clear-num99.8%
frac-2neg99.8%
frac-times96.3%
*-un-lft-identity96.3%
+-commutative96.3%
distribute-neg-in96.3%
sub-neg96.3%
frac-2neg96.3%
sub-neg96.3%
distribute-neg-in96.3%
+-commutative96.3%
remove-double-neg96.3%
add-sqr-sqrt95.8%
sqrt-unprod2.0%
sqr-neg2.0%
sqrt-unprod0.0%
add-sqr-sqrt42.0%
sub-neg42.0%
distribute-neg-in42.0%
+-commutative42.0%
add-sqr-sqrt38.2%
sqrt-unprod42.9%
Applied egg-rr96.3%
Taylor expanded in t1 around inf 89.2%
*-commutative89.2%
Simplified89.2%
if -2.55e154 < t1 < -1.4499999999999999e-158Initial program 89.4%
associate-*l/98.0%
*-commutative98.0%
Simplified98.0%
if -1.4499999999999999e-158 < t1 < 2.15e-211Initial program 79.1%
times-frac88.9%
distribute-frac-neg88.9%
distribute-neg-frac288.9%
+-commutative88.9%
distribute-neg-in88.9%
unsub-neg88.9%
Simplified88.9%
associate-*l/95.1%
sub-neg95.1%
distribute-neg-in95.1%
+-commutative95.1%
neg-mul-195.1%
associate-/r*95.1%
Applied egg-rr95.1%
clear-num95.0%
un-div-inv95.1%
Applied egg-rr95.1%
Taylor expanded in t1 around 0 91.6%
if 2.15e-211 < t1 < 1.4500000000000001e166Initial program 77.4%
associate-/l*81.8%
distribute-lft-neg-out81.8%
distribute-rgt-neg-in81.8%
associate-/r*96.0%
distribute-neg-frac296.0%
Simplified96.0%
if 1.4500000000000001e166 < t1 Initial program 38.1%
times-frac100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in t1 around inf 100.0%
associate-*r/100.0%
neg-mul-1100.0%
Simplified100.0%
Final simplification95.2%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -440000000.0) (not (<= t1 6.5e-30))) (/ v (- (- t1) (* u 2.0))) (/ (/ (/ t1 (/ u v)) -1.0) (+ t1 u))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -440000000.0) || !(t1 <= 6.5e-30)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = ((t1 / (u / v)) / -1.0) / (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 <= (-440000000.0d0)) .or. (.not. (t1 <= 6.5d-30))) then
tmp = v / (-t1 - (u * 2.0d0))
else
tmp = ((t1 / (u / v)) / (-1.0d0)) / (t1 + u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -440000000.0) || !(t1 <= 6.5e-30)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = ((t1 / (u / v)) / -1.0) / (t1 + u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -440000000.0) or not (t1 <= 6.5e-30): tmp = v / (-t1 - (u * 2.0)) else: tmp = ((t1 / (u / v)) / -1.0) / (t1 + u) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -440000000.0) || !(t1 <= 6.5e-30)) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); else tmp = Float64(Float64(Float64(t1 / Float64(u / v)) / -1.0) / Float64(t1 + u)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -440000000.0) || ~((t1 <= 6.5e-30))) tmp = v / (-t1 - (u * 2.0)); else tmp = ((t1 / (u / v)) / -1.0) / (t1 + u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -440000000.0], N[Not[LessEqual[t1, 6.5e-30]], $MachinePrecision]], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t1 / N[(u / v), $MachinePrecision]), $MachinePrecision] / -1.0), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -440000000 \lor \neg \left(t1 \leq 6.5 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\
\end{array}
\end{array}
if t1 < -4.4e8 or 6.5000000000000005e-30 < t1 Initial program 61.5%
times-frac99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
Simplified99.9%
clear-num99.9%
frac-2neg99.9%
frac-times95.8%
*-un-lft-identity95.8%
+-commutative95.8%
distribute-neg-in95.8%
sub-neg95.8%
frac-2neg95.8%
sub-neg95.8%
distribute-neg-in95.8%
+-commutative95.8%
remove-double-neg95.8%
add-sqr-sqrt51.5%
sqrt-unprod37.0%
sqr-neg37.0%
sqrt-unprod16.0%
add-sqr-sqrt31.7%
sub-neg31.7%
distribute-neg-in31.7%
+-commutative31.7%
add-sqr-sqrt15.8%
sqrt-unprod43.4%
Applied egg-rr95.8%
Taylor expanded in t1 around inf 85.4%
*-commutative85.4%
Simplified85.4%
if -4.4e8 < t1 < 6.5000000000000005e-30Initial program 84.5%
times-frac95.2%
distribute-frac-neg95.2%
distribute-neg-frac295.2%
+-commutative95.2%
distribute-neg-in95.2%
unsub-neg95.2%
Simplified95.2%
associate-*l/97.2%
sub-neg97.2%
distribute-neg-in97.2%
+-commutative97.2%
neg-mul-197.2%
associate-/r*97.2%
Applied egg-rr97.2%
clear-num97.1%
un-div-inv97.2%
Applied egg-rr97.2%
Taylor expanded in t1 around 0 83.3%
Final simplification84.2%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -88000000000.0) (not (<= t1 1.15e-30))) (/ v (- (- t1) (* u 2.0))) (* t1 (/ (/ v (- u)) (+ t1 u)))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -88000000000.0) || !(t1 <= 1.15e-30)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = t1 * ((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 <= (-88000000000.0d0)) .or. (.not. (t1 <= 1.15d-30))) then
tmp = v / (-t1 - (u * 2.0d0))
else
tmp = t1 * ((v / -u) / (t1 + u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -88000000000.0) || !(t1 <= 1.15e-30)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = t1 * ((v / -u) / (t1 + u));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -88000000000.0) or not (t1 <= 1.15e-30): tmp = v / (-t1 - (u * 2.0)) else: tmp = t1 * ((v / -u) / (t1 + u)) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -88000000000.0) || !(t1 <= 1.15e-30)) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); else tmp = Float64(t1 * Float64(Float64(v / Float64(-u)) / Float64(t1 + u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -88000000000.0) || ~((t1 <= 1.15e-30))) tmp = v / (-t1 - (u * 2.0)); else tmp = t1 * ((v / -u) / (t1 + u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -88000000000.0], N[Not[LessEqual[t1, 1.15e-30]], $MachinePrecision]], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t1 * N[(N[(v / (-u)), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -88000000000 \lor \neg \left(t1 \leq 1.15 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;t1 \cdot \frac{\frac{v}{-u}}{t1 + u}\\
\end{array}
\end{array}
if t1 < -8.8e10 or 1.14999999999999992e-30 < t1 Initial program 61.5%
times-frac99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
Simplified99.9%
clear-num99.9%
frac-2neg99.9%
frac-times95.8%
*-un-lft-identity95.8%
+-commutative95.8%
distribute-neg-in95.8%
sub-neg95.8%
frac-2neg95.8%
sub-neg95.8%
distribute-neg-in95.8%
+-commutative95.8%
remove-double-neg95.8%
add-sqr-sqrt51.5%
sqrt-unprod37.0%
sqr-neg37.0%
sqrt-unprod16.0%
add-sqr-sqrt31.7%
sub-neg31.7%
distribute-neg-in31.7%
+-commutative31.7%
add-sqr-sqrt15.8%
sqrt-unprod43.4%
Applied egg-rr95.8%
Taylor expanded in t1 around inf 85.4%
*-commutative85.4%
Simplified85.4%
if -8.8e10 < t1 < 1.14999999999999992e-30Initial program 84.5%
associate-/l*86.5%
distribute-lft-neg-out86.5%
distribute-rgt-neg-in86.5%
associate-/r*90.7%
distribute-neg-frac290.7%
Simplified90.7%
Taylor expanded in t1 around 0 79.5%
Final simplification82.1%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -1600000000.0) (not (<= t1 1.75e-29))) (/ v (- (- t1) (* u 2.0))) (* (/ v (+ t1 u)) (/ t1 (- u)))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -1600000000.0) || !(t1 <= 1.75e-29)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = (v / (t1 + 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 <= (-1600000000.0d0)) .or. (.not. (t1 <= 1.75d-29))) then
tmp = v / (-t1 - (u * 2.0d0))
else
tmp = (v / (t1 + u)) * (t1 / -u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -1600000000.0) || !(t1 <= 1.75e-29)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = (v / (t1 + u)) * (t1 / -u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -1600000000.0) or not (t1 <= 1.75e-29): tmp = v / (-t1 - (u * 2.0)) else: tmp = (v / (t1 + u)) * (t1 / -u) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -1600000000.0) || !(t1 <= 1.75e-29)) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); else tmp = Float64(Float64(v / Float64(t1 + u)) * Float64(t1 / Float64(-u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -1600000000.0) || ~((t1 <= 1.75e-29))) tmp = v / (-t1 - (u * 2.0)); else tmp = (v / (t1 + u)) * (t1 / -u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -1600000000.0], N[Not[LessEqual[t1, 1.75e-29]], $MachinePrecision]], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] * N[(t1 / (-u)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -1600000000 \lor \neg \left(t1 \leq 1.75 \cdot 10^{-29}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{t1 + u} \cdot \frac{t1}{-u}\\
\end{array}
\end{array}
if t1 < -1.6e9 or 1.7499999999999999e-29 < t1 Initial program 61.5%
times-frac99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
Simplified99.9%
clear-num99.9%
frac-2neg99.9%
frac-times95.8%
*-un-lft-identity95.8%
+-commutative95.8%
distribute-neg-in95.8%
sub-neg95.8%
frac-2neg95.8%
sub-neg95.8%
distribute-neg-in95.8%
+-commutative95.8%
remove-double-neg95.8%
add-sqr-sqrt51.5%
sqrt-unprod37.0%
sqr-neg37.0%
sqrt-unprod16.0%
add-sqr-sqrt31.7%
sub-neg31.7%
distribute-neg-in31.7%
+-commutative31.7%
add-sqr-sqrt15.8%
sqrt-unprod43.4%
Applied egg-rr95.8%
Taylor expanded in t1 around inf 85.4%
*-commutative85.4%
Simplified85.4%
if -1.6e9 < t1 < 1.7499999999999999e-29Initial program 84.5%
times-frac95.2%
distribute-frac-neg95.2%
distribute-neg-frac295.2%
+-commutative95.2%
distribute-neg-in95.2%
unsub-neg95.2%
Simplified95.2%
Taylor expanded in t1 around 0 81.4%
mul-1-neg81.4%
distribute-neg-frac281.4%
Simplified81.4%
Final simplification83.1%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -7800000000.0) (not (<= t1 3.2e-28))) (/ v (- (- t1) (* u 2.0))) (/ (* t1 (/ v (- u))) (+ t1 u))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -7800000000.0) || !(t1 <= 3.2e-28)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = (t1 * (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 <= (-7800000000.0d0)) .or. (.not. (t1 <= 3.2d-28))) then
tmp = v / (-t1 - (u * 2.0d0))
else
tmp = (t1 * (v / -u)) / (t1 + u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -7800000000.0) || !(t1 <= 3.2e-28)) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = (t1 * (v / -u)) / (t1 + u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -7800000000.0) or not (t1 <= 3.2e-28): tmp = v / (-t1 - (u * 2.0)) else: tmp = (t1 * (v / -u)) / (t1 + u) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -7800000000.0) || !(t1 <= 3.2e-28)) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); else tmp = Float64(Float64(t1 * Float64(v / Float64(-u))) / Float64(t1 + u)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -7800000000.0) || ~((t1 <= 3.2e-28))) tmp = v / (-t1 - (u * 2.0)); else tmp = (t1 * (v / -u)) / (t1 + u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -7800000000.0], N[Not[LessEqual[t1, 3.2e-28]], $MachinePrecision]], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t1 * N[(v / (-u)), $MachinePrecision]), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -7800000000 \lor \neg \left(t1 \leq 3.2 \cdot 10^{-28}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\
\end{array}
\end{array}
if t1 < -7.8e9 or 3.19999999999999982e-28 < t1 Initial program 61.5%
times-frac99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
Simplified99.9%
clear-num99.9%
frac-2neg99.9%
frac-times95.8%
*-un-lft-identity95.8%
+-commutative95.8%
distribute-neg-in95.8%
sub-neg95.8%
frac-2neg95.8%
sub-neg95.8%
distribute-neg-in95.8%
+-commutative95.8%
remove-double-neg95.8%
add-sqr-sqrt51.5%
sqrt-unprod37.0%
sqr-neg37.0%
sqrt-unprod16.0%
add-sqr-sqrt31.7%
sub-neg31.7%
distribute-neg-in31.7%
+-commutative31.7%
add-sqr-sqrt15.8%
sqrt-unprod43.4%
Applied egg-rr95.8%
Taylor expanded in t1 around inf 85.4%
*-commutative85.4%
Simplified85.4%
if -7.8e9 < t1 < 3.19999999999999982e-28Initial program 84.5%
times-frac95.2%
distribute-frac-neg95.2%
distribute-neg-frac295.2%
+-commutative95.2%
distribute-neg-in95.2%
unsub-neg95.2%
Simplified95.2%
frac-2neg95.2%
associate-*l/97.2%
sub-neg97.2%
distribute-neg-in97.2%
+-commutative97.2%
remove-double-neg97.2%
associate-*l/95.2%
frac-2neg95.2%
associate-*r/95.2%
add-sqr-sqrt54.8%
sqrt-unprod61.9%
sqr-neg61.9%
sqrt-unprod15.9%
add-sqr-sqrt43.3%
add-sqr-sqrt22.3%
sqrt-unprod61.7%
sqr-neg61.7%
sqrt-prod42.6%
Applied egg-rr95.2%
Taylor expanded in t1 around 0 81.1%
mul-1-neg81.1%
associate-/l*83.3%
distribute-rgt-neg-in83.3%
distribute-neg-frac283.3%
Simplified83.3%
Final simplification84.2%
(FPCore (u v t1) :precision binary64 (if (or (<= u -1.04e+68) (not (<= u 2.3e+165))) (* (/ v u) (/ t1 (+ t1 u))) (/ v (- (- t1) (* u 2.0)))))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.04e+68) || !(u <= 2.3e+165)) {
tmp = (v / u) * (t1 / (t1 + u));
} else {
tmp = v / (-t1 - (u * 2.0));
}
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.04d+68)) .or. (.not. (u <= 2.3d+165))) then
tmp = (v / u) * (t1 / (t1 + u))
else
tmp = v / (-t1 - (u * 2.0d0))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.04e+68) || !(u <= 2.3e+165)) {
tmp = (v / u) * (t1 / (t1 + u));
} else {
tmp = v / (-t1 - (u * 2.0));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -1.04e+68) or not (u <= 2.3e+165): tmp = (v / u) * (t1 / (t1 + u)) else: tmp = v / (-t1 - (u * 2.0)) return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -1.04e+68) || !(u <= 2.3e+165)) tmp = Float64(Float64(v / u) * Float64(t1 / Float64(t1 + u))); else tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -1.04e+68) || ~((u <= 2.3e+165))) tmp = (v / u) * (t1 / (t1 + u)); else tmp = v / (-t1 - (u * 2.0)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -1.04e+68], N[Not[LessEqual[u, 2.3e+165]], $MachinePrecision]], N[(N[(v / u), $MachinePrecision] * N[(t1 / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.04 \cdot 10^{+68} \lor \neg \left(u \leq 2.3 \cdot 10^{+165}\right):\\
\;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\end{array}
\end{array}
if u < -1.04e68 or 2.30000000000000016e165 < u Initial program 83.2%
times-frac97.3%
distribute-frac-neg97.3%
distribute-neg-frac297.3%
+-commutative97.3%
distribute-neg-in97.3%
unsub-neg97.3%
Simplified97.3%
frac-2neg97.3%
associate-*l/99.9%
sub-neg99.9%
distribute-neg-in99.9%
+-commutative99.9%
remove-double-neg99.9%
associate-*l/97.3%
frac-2neg97.3%
associate-*r/97.3%
add-sqr-sqrt58.3%
sqrt-unprod71.1%
sqr-neg71.1%
sqrt-unprod25.9%
add-sqr-sqrt71.3%
add-sqr-sqrt43.4%
sqrt-unprod71.6%
sqr-neg71.6%
sqrt-prod33.4%
Applied egg-rr97.3%
Taylor expanded in t1 around 0 86.5%
mul-1-neg86.5%
associate-/l*94.4%
distribute-rgt-neg-in94.4%
distribute-neg-frac294.4%
Simplified94.4%
associate-/l*92.2%
associate-/l/82.6%
add-sqr-sqrt53.3%
sqrt-unprod82.6%
sqr-neg82.6%
sqrt-unprod29.2%
add-sqr-sqrt71.5%
Applied egg-rr71.5%
associate-*r/71.1%
times-frac71.5%
*-commutative71.5%
Simplified71.5%
if -1.04e68 < u < 2.30000000000000016e165Initial program 70.0%
times-frac97.2%
distribute-frac-neg97.2%
distribute-neg-frac297.2%
+-commutative97.2%
distribute-neg-in97.2%
unsub-neg97.2%
Simplified97.2%
clear-num97.1%
frac-2neg97.1%
frac-times97.1%
*-un-lft-identity97.1%
+-commutative97.1%
distribute-neg-in97.1%
sub-neg97.1%
frac-2neg97.1%
sub-neg97.1%
distribute-neg-in97.1%
+-commutative97.1%
remove-double-neg97.1%
add-sqr-sqrt51.3%
sqrt-unprod40.6%
sqr-neg40.6%
sqrt-unprod10.8%
add-sqr-sqrt21.1%
sub-neg21.1%
distribute-neg-in21.1%
+-commutative21.1%
add-sqr-sqrt7.1%
sqrt-unprod44.0%
Applied egg-rr97.1%
Taylor expanded in t1 around inf 64.3%
*-commutative64.3%
Simplified64.3%
Final simplification66.8%
(FPCore (u v t1) :precision binary64 (if (<= u -3.1e+100) (* t1 (/ v (* u (+ t1 u)))) (if (<= u 4e+166) (/ v (- (- t1) (* u 2.0))) (* (/ v u) (/ t1 (+ t1 u))))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -3.1e+100) {
tmp = t1 * (v / (u * (t1 + u)));
} else if (u <= 4e+166) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = (v / u) * (t1 / (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 (u <= (-3.1d+100)) then
tmp = t1 * (v / (u * (t1 + u)))
else if (u <= 4d+166) then
tmp = v / (-t1 - (u * 2.0d0))
else
tmp = (v / u) * (t1 / (t1 + u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -3.1e+100) {
tmp = t1 * (v / (u * (t1 + u)));
} else if (u <= 4e+166) {
tmp = v / (-t1 - (u * 2.0));
} else {
tmp = (v / u) * (t1 / (t1 + u));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -3.1e+100: tmp = t1 * (v / (u * (t1 + u))) elif u <= 4e+166: tmp = v / (-t1 - (u * 2.0)) else: tmp = (v / u) * (t1 / (t1 + u)) return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -3.1e+100) tmp = Float64(t1 * Float64(v / Float64(u * Float64(t1 + u)))); elseif (u <= 4e+166) tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); else tmp = Float64(Float64(v / u) * Float64(t1 / Float64(t1 + u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -3.1e+100) tmp = t1 * (v / (u * (t1 + u))); elseif (u <= 4e+166) tmp = v / (-t1 - (u * 2.0)); else tmp = (v / u) * (t1 / (t1 + u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -3.1e+100], N[(t1 * N[(v / N[(u * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 4e+166], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(v / u), $MachinePrecision] * N[(t1 / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -3.1 \cdot 10^{+100}:\\
\;\;\;\;t1 \cdot \frac{v}{u \cdot \left(t1 + u\right)}\\
\mathbf{elif}\;u \leq 4 \cdot 10^{+166}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\
\end{array}
\end{array}
if u < -3.10000000000000007e100Initial program 85.7%
times-frac99.2%
distribute-frac-neg99.2%
distribute-neg-frac299.2%
+-commutative99.2%
distribute-neg-in99.2%
unsub-neg99.2%
Simplified99.2%
frac-2neg99.2%
associate-*l/99.8%
sub-neg99.8%
distribute-neg-in99.8%
+-commutative99.8%
remove-double-neg99.8%
associate-*l/99.2%
frac-2neg99.2%
associate-*r/99.1%
add-sqr-sqrt68.0%
sqrt-unprod75.7%
sqr-neg75.7%
sqrt-unprod21.3%
add-sqr-sqrt72.0%
add-sqr-sqrt72.0%
sqrt-unprod72.2%
sqr-neg72.2%
sqrt-prod0.0%
Applied egg-rr99.1%
Taylor expanded in t1 around 0 89.8%
mul-1-neg89.8%
associate-/l*97.9%
distribute-rgt-neg-in97.9%
distribute-neg-frac297.9%
Simplified97.9%
associate-/l*94.0%
*-commutative94.0%
associate-/l/86.2%
add-sqr-sqrt86.0%
sqrt-unprod86.2%
sqr-neg86.2%
sqrt-unprod0.0%
add-sqr-sqrt72.2%
Applied egg-rr72.2%
if -3.10000000000000007e100 < u < 3.99999999999999976e166Initial program 70.6%
times-frac96.7%
distribute-frac-neg96.7%
distribute-neg-frac296.7%
+-commutative96.7%
distribute-neg-in96.7%
unsub-neg96.7%
Simplified96.7%
clear-num96.7%
frac-2neg96.7%
frac-times96.7%
*-un-lft-identity96.7%
+-commutative96.7%
distribute-neg-in96.7%
sub-neg96.7%
frac-2neg96.7%
sub-neg96.7%
distribute-neg-in96.7%
+-commutative96.7%
remove-double-neg96.7%
add-sqr-sqrt49.8%
sqrt-unprod40.8%
sqr-neg40.8%
sqrt-unprod11.6%
add-sqr-sqrt21.5%
sub-neg21.5%
distribute-neg-in21.5%
+-commutative21.5%
add-sqr-sqrt8.1%
sqrt-unprod43.5%
Applied egg-rr96.7%
Taylor expanded in t1 around inf 63.0%
*-commutative63.0%
Simplified63.0%
if 3.99999999999999976e166 < u Initial program 78.9%
times-frac96.9%
distribute-frac-neg96.9%
distribute-neg-frac296.9%
+-commutative96.9%
distribute-neg-in96.9%
unsub-neg96.9%
Simplified96.9%
frac-2neg96.9%
associate-*l/99.9%
sub-neg99.9%
distribute-neg-in99.9%
+-commutative99.9%
remove-double-neg99.9%
associate-*l/96.9%
frac-2neg96.9%
associate-*r/97.0%
add-sqr-sqrt53.3%
sqrt-unprod69.9%
sqr-neg69.9%
sqrt-unprod31.8%
add-sqr-sqrt79.1%
add-sqr-sqrt3.3%
sqrt-unprod79.4%
sqr-neg79.4%
sqrt-prod87.7%
Applied egg-rr97.0%
Taylor expanded in t1 around 0 84.8%
mul-1-neg84.8%
associate-/l*93.9%
distribute-rgt-neg-in93.9%
distribute-neg-frac293.9%
Simplified93.9%
associate-/l*93.8%
associate-/l/79.4%
add-sqr-sqrt0.0%
sqrt-unprod79.4%
sqr-neg79.4%
sqrt-unprod79.4%
add-sqr-sqrt79.4%
Applied egg-rr79.4%
associate-*r/78.9%
times-frac79.6%
*-commutative79.6%
Simplified79.6%
Final simplification66.8%
(FPCore (u v t1) :precision binary64 (if (or (<= u -1.4e+111) (not (<= u 2.9e+165))) (/ (* v (/ t1 u)) t1) (/ v (- u t1))))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.4e+111) || !(u <= 2.9e+165)) {
tmp = (v * (t1 / u)) / t1;
} else {
tmp = v / (u - 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.4d+111)) .or. (.not. (u <= 2.9d+165))) then
tmp = (v * (t1 / u)) / t1
else
tmp = v / (u - t1)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.4e+111) || !(u <= 2.9e+165)) {
tmp = (v * (t1 / u)) / t1;
} else {
tmp = v / (u - t1);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -1.4e+111) or not (u <= 2.9e+165): tmp = (v * (t1 / u)) / t1 else: tmp = v / (u - t1) return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -1.4e+111) || !(u <= 2.9e+165)) tmp = Float64(Float64(v * Float64(t1 / u)) / t1); else tmp = Float64(v / Float64(u - t1)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -1.4e+111) || ~((u <= 2.9e+165))) tmp = (v * (t1 / u)) / t1; else tmp = v / (u - t1); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -1.4e+111], N[Not[LessEqual[u, 2.9e+165]], $MachinePrecision]], N[(N[(v * N[(t1 / u), $MachinePrecision]), $MachinePrecision] / t1), $MachinePrecision], N[(v / N[(u - t1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.4 \cdot 10^{+111} \lor \neg \left(u \leq 2.9 \cdot 10^{+165}\right):\\
\;\;\;\;\frac{v \cdot \frac{t1}{u}}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{u - t1}\\
\end{array}
\end{array}
if u < -1.4e111 or 2.90000000000000006e165 < u Initial program 82.6%
associate-/l*83.1%
distribute-lft-neg-out83.1%
distribute-rgt-neg-in83.1%
associate-/r*95.0%
distribute-neg-frac295.0%
Simplified95.0%
Taylor expanded in t1 around inf 47.0%
Taylor expanded in t1 around 0 46.1%
associate-*r/46.1%
mul-1-neg46.1%
Simplified46.1%
associate-*r/45.7%
*-commutative45.7%
distribute-rgt-neg-in45.7%
associate-/r*52.2%
remove-double-neg52.2%
frac-2neg52.2%
*-commutative52.2%
associate-/l*68.6%
add-sqr-sqrt40.8%
sqrt-unprod77.0%
sqr-neg77.0%
sqrt-unprod27.8%
add-sqr-sqrt68.5%
Applied egg-rr68.5%
if -1.4e111 < u < 2.90000000000000006e165Initial program 70.9%
associate-/l*74.0%
distribute-lft-neg-out74.0%
distribute-rgt-neg-in74.0%
associate-/r*83.0%
distribute-neg-frac283.0%
Simplified83.0%
Taylor expanded in t1 around inf 50.3%
associate-/l/43.6%
associate-*r/43.5%
*-commutative43.5%
+-commutative43.5%
distribute-neg-in43.5%
sub-neg43.5%
sub-neg43.5%
distribute-neg-in43.5%
+-commutative43.5%
add-sqr-sqrt22.1%
sqrt-unprod34.4%
sqr-neg34.4%
sqrt-unprod12.2%
add-sqr-sqrt18.8%
Applied egg-rr18.8%
frac-2neg18.8%
div-inv18.8%
distribute-rgt-neg-in18.8%
add-sqr-sqrt10.4%
sqrt-unprod29.8%
sqr-neg29.8%
sqrt-unprod20.4%
add-sqr-sqrt43.2%
*-commutative43.2%
distribute-rgt-neg-in43.2%
+-commutative43.2%
distribute-neg-in43.2%
add-sqr-sqrt21.1%
sqrt-unprod44.0%
sqr-neg44.0%
sqrt-unprod22.3%
add-sqr-sqrt43.6%
Applied egg-rr43.6%
associate-*r/43.9%
*-rgt-identity43.9%
associate-/r*51.1%
associate-/l*62.1%
*-inverses62.1%
*-rgt-identity62.1%
sub-neg62.1%
Simplified62.1%
Final simplification64.1%
(FPCore (u v t1) :precision binary64 (if (<= u -1.08e+111) (/ v (- u)) (if (<= u 1.35e+91) (/ v (- t1)) (/ v (+ t1 u)))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -1.08e+111) {
tmp = v / -u;
} else if (u <= 1.35e+91) {
tmp = v / -t1;
} else {
tmp = 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 (u <= (-1.08d+111)) then
tmp = v / -u
else if (u <= 1.35d+91) then
tmp = v / -t1
else
tmp = v / (t1 + u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -1.08e+111) {
tmp = v / -u;
} else if (u <= 1.35e+91) {
tmp = v / -t1;
} else {
tmp = v / (t1 + u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -1.08e+111: tmp = v / -u elif u <= 1.35e+91: tmp = v / -t1 else: tmp = v / (t1 + u) return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -1.08e+111) tmp = Float64(v / Float64(-u)); elseif (u <= 1.35e+91) tmp = Float64(v / Float64(-t1)); else tmp = Float64(v / Float64(t1 + u)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -1.08e+111) tmp = v / -u; elseif (u <= 1.35e+91) tmp = v / -t1; else tmp = v / (t1 + u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -1.08e+111], N[(v / (-u)), $MachinePrecision], If[LessEqual[u, 1.35e+91], N[(v / (-t1)), $MachinePrecision], N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.08 \cdot 10^{+111}:\\
\;\;\;\;\frac{v}{-u}\\
\mathbf{elif}\;u \leq 1.35 \cdot 10^{+91}:\\
\;\;\;\;\frac{v}{-t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{t1 + u}\\
\end{array}
\end{array}
if u < -1.08000000000000004e111Initial program 85.5%
associate-/l*85.9%
distribute-lft-neg-out85.9%
distribute-rgt-neg-in85.9%
associate-/r*93.9%
distribute-neg-frac293.9%
Simplified93.9%
Taylor expanded in t1 around inf 38.8%
Taylor expanded in t1 around 0 35.5%
mul-1-neg35.5%
distribute-neg-frac235.5%
Simplified35.5%
if -1.08000000000000004e111 < u < 1.35e91Initial program 70.7%
times-frac96.4%
distribute-frac-neg96.4%
distribute-neg-frac296.4%
+-commutative96.4%
distribute-neg-in96.4%
unsub-neg96.4%
Simplified96.4%
Taylor expanded in t1 around inf 63.7%
associate-*r/63.7%
neg-mul-163.7%
Simplified63.7%
if 1.35e91 < u Initial program 76.2%
associate-/l*78.7%
distribute-lft-neg-out78.7%
distribute-rgt-neg-in78.7%
associate-/r*95.8%
distribute-neg-frac295.8%
Simplified95.8%
Taylor expanded in t1 around inf 53.3%
clear-num51.6%
un-div-inv51.7%
div-inv51.7%
add-sqr-sqrt4.4%
sqrt-unprod58.6%
sqr-neg58.6%
sqrt-unprod46.3%
add-sqr-sqrt48.6%
clear-num48.6%
Applied egg-rr48.6%
associate-/l/44.9%
associate-/r/45.0%
*-inverses45.0%
*-lft-identity45.0%
Simplified45.0%
Final simplification54.9%
(FPCore (u v t1) :precision binary64 (if (or (<= u -9e+110) (not (<= u 2.5e+91))) (/ v (- u)) (/ v (- t1))))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -9e+110) || !(u <= 2.5e+91)) {
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 <= (-9d+110)) .or. (.not. (u <= 2.5d+91))) 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 <= -9e+110) || !(u <= 2.5e+91)) {
tmp = v / -u;
} else {
tmp = v / -t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -9e+110) or not (u <= 2.5e+91): tmp = v / -u else: tmp = v / -t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -9e+110) || !(u <= 2.5e+91)) tmp = Float64(v / Float64(-u)); else tmp = Float64(v / Float64(-t1)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -9e+110) || ~((u <= 2.5e+91))) tmp = v / -u; else tmp = v / -t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -9e+110], N[Not[LessEqual[u, 2.5e+91]], $MachinePrecision]], N[(v / (-u)), $MachinePrecision], N[(v / (-t1)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -9 \cdot 10^{+110} \lor \neg \left(u \leq 2.5 \cdot 10^{+91}\right):\\
\;\;\;\;\frac{v}{-u}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{-t1}\\
\end{array}
\end{array}
if u < -9.0000000000000005e110 or 2.5000000000000001e91 < u Initial program 80.8%
associate-/l*82.2%
distribute-lft-neg-out82.2%
distribute-rgt-neg-in82.2%
associate-/r*94.8%
distribute-neg-frac294.8%
Simplified94.8%
Taylor expanded in t1 around inf 46.2%
Taylor expanded in t1 around 0 39.7%
mul-1-neg39.7%
distribute-neg-frac239.7%
Simplified39.7%
if -9.0000000000000005e110 < u < 2.5000000000000001e91Initial program 70.7%
times-frac96.4%
distribute-frac-neg96.4%
distribute-neg-frac296.4%
+-commutative96.4%
distribute-neg-in96.4%
unsub-neg96.4%
Simplified96.4%
Taylor expanded in t1 around inf 63.7%
associate-*r/63.7%
neg-mul-163.7%
Simplified63.7%
Final simplification54.7%
(FPCore (u v t1) :precision binary64 (if (or (<= t1 -3e+173) (not (<= t1 7.5e+35))) (/ v t1) (/ v u)))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -3e+173) || !(t1 <= 7.5e+35)) {
tmp = v / t1;
} else {
tmp = 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 ((t1 <= (-3d+173)) .or. (.not. (t1 <= 7.5d+35))) then
tmp = v / t1
else
tmp = v / u
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -3e+173) || !(t1 <= 7.5e+35)) {
tmp = v / t1;
} else {
tmp = v / u;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -3e+173) or not (t1 <= 7.5e+35): tmp = v / t1 else: tmp = v / u return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -3e+173) || !(t1 <= 7.5e+35)) tmp = Float64(v / t1); else tmp = Float64(v / u); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -3e+173) || ~((t1 <= 7.5e+35))) tmp = v / t1; else tmp = v / u; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -3e+173], N[Not[LessEqual[t1, 7.5e+35]], $MachinePrecision]], N[(v / t1), $MachinePrecision], N[(v / u), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -3 \cdot 10^{+173} \lor \neg \left(t1 \leq 7.5 \cdot 10^{+35}\right):\\
\;\;\;\;\frac{v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{u}\\
\end{array}
\end{array}
if t1 < -2.9999999999999998e173 or 7.4999999999999999e35 < t1 Initial program 44.8%
associate-/l*47.9%
distribute-lft-neg-out47.9%
distribute-rgt-neg-in47.9%
associate-/r*71.0%
distribute-neg-frac271.0%
Simplified71.0%
Taylor expanded in t1 around inf 63.8%
associate-*r/89.5%
+-commutative89.5%
distribute-neg-in89.5%
sub-neg89.5%
associate-*l/89.5%
clear-num89.5%
associate-*l/89.5%
*-un-lft-identity89.5%
sub-neg89.5%
distribute-neg-in89.5%
+-commutative89.5%
add-sqr-sqrt33.6%
sqrt-unprod38.5%
sqr-neg38.5%
sqrt-unprod21.6%
add-sqr-sqrt37.8%
Applied egg-rr37.8%
Taylor expanded in t1 around inf 37.6%
if -2.9999999999999998e173 < t1 < 7.4999999999999999e35Initial program 83.9%
associate-/l*86.0%
distribute-lft-neg-out86.0%
distribute-rgt-neg-in86.0%
associate-/r*91.6%
distribute-neg-frac291.6%
Simplified91.6%
Taylor expanded in t1 around inf 44.6%
associate-*r/46.2%
+-commutative46.2%
distribute-neg-in46.2%
sub-neg46.2%
associate-*l/51.3%
clear-num51.8%
associate-*l/51.8%
*-un-lft-identity51.8%
sub-neg51.8%
distribute-neg-in51.8%
+-commutative51.8%
add-sqr-sqrt31.9%
sqrt-unprod47.2%
sqr-neg47.2%
sqrt-unprod12.8%
add-sqr-sqrt25.6%
Applied egg-rr25.6%
Taylor expanded in t1 around 0 20.5%
Final simplification24.6%
(FPCore (u v t1) :precision binary64 (if (<= u -5.7e+68) (/ (* v (/ t1 u)) t1) (/ v (- (- t1) (* u 2.0)))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -5.7e+68) {
tmp = (v * (t1 / u)) / t1;
} else {
tmp = v / (-t1 - (u * 2.0));
}
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.7d+68)) then
tmp = (v * (t1 / u)) / t1
else
tmp = v / (-t1 - (u * 2.0d0))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -5.7e+68) {
tmp = (v * (t1 / u)) / t1;
} else {
tmp = v / (-t1 - (u * 2.0));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -5.7e+68: tmp = (v * (t1 / u)) / t1 else: tmp = v / (-t1 - (u * 2.0)) return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -5.7e+68) tmp = Float64(Float64(v * Float64(t1 / u)) / t1); else tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -5.7e+68) tmp = (v * (t1 / u)) / t1; else tmp = v / (-t1 - (u * 2.0)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -5.7e+68], N[(N[(v * N[(t1 / u), $MachinePrecision]), $MachinePrecision] / t1), $MachinePrecision], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -5.7 \cdot 10^{+68}:\\
\;\;\;\;\frac{v \cdot \frac{t1}{u}}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\
\end{array}
\end{array}
if u < -5.6999999999999996e68Initial program 85.7%
associate-/l*86.1%
distribute-lft-neg-out86.1%
distribute-rgt-neg-in86.1%
associate-/r*94.7%
distribute-neg-frac294.7%
Simplified94.7%
Taylor expanded in t1 around inf 37.1%
Taylor expanded in t1 around 0 33.9%
associate-*r/33.9%
mul-1-neg33.9%
Simplified33.9%
associate-*r/35.2%
*-commutative35.2%
distribute-rgt-neg-in35.2%
associate-/r*42.4%
remove-double-neg42.4%
frac-2neg42.4%
*-commutative42.4%
associate-/l*62.0%
add-sqr-sqrt62.0%
sqrt-unprod67.0%
sqr-neg67.0%
sqrt-unprod0.0%
add-sqr-sqrt61.8%
Applied egg-rr61.8%
if -5.6999999999999996e68 < u Initial program 71.4%
times-frac97.1%
distribute-frac-neg97.1%
distribute-neg-frac297.1%
+-commutative97.1%
distribute-neg-in97.1%
unsub-neg97.1%
Simplified97.1%
clear-num97.1%
frac-2neg97.1%
frac-times95.7%
*-un-lft-identity95.7%
+-commutative95.7%
distribute-neg-in95.7%
sub-neg95.7%
frac-2neg95.7%
sub-neg95.7%
distribute-neg-in95.7%
+-commutative95.7%
remove-double-neg95.7%
add-sqr-sqrt51.6%
sqrt-unprod45.3%
sqr-neg45.3%
sqrt-unprod14.2%
add-sqr-sqrt30.4%
sub-neg30.4%
distribute-neg-in30.4%
+-commutative30.4%
add-sqr-sqrt6.5%
sqrt-unprod49.6%
Applied egg-rr95.7%
Taylor expanded in t1 around inf 62.9%
*-commutative62.9%
Simplified62.9%
Final simplification62.7%
(FPCore (u v t1) :precision binary64 (* (/ v (+ t1 u)) (/ t1 (- (- u) t1))))
double code(double u, double v, double t1) {
return (v / (t1 + u)) * (t1 / (-u - 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 + u)) * (t1 / (-u - t1))
end function
public static double code(double u, double v, double t1) {
return (v / (t1 + u)) * (t1 / (-u - t1));
}
def code(u, v, t1): return (v / (t1 + u)) * (t1 / (-u - t1))
function code(u, v, t1) return Float64(Float64(v / Float64(t1 + u)) * Float64(t1 / Float64(Float64(-u) - t1))) end
function tmp = code(u, v, t1) tmp = (v / (t1 + u)) * (t1 / (-u - t1)); end
code[u_, v_, t1_] := N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] * N[(t1 / N[((-u) - t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{v}{t1 + u} \cdot \frac{t1}{\left(-u\right) - t1}
\end{array}
Initial program 74.5%
times-frac97.2%
distribute-frac-neg97.2%
distribute-neg-frac297.2%
+-commutative97.2%
distribute-neg-in97.2%
unsub-neg97.2%
Simplified97.2%
Final simplification97.2%
(FPCore (u v t1) :precision binary64 (/ v (- u t1)))
double code(double u, double v, double t1) {
return v / (u - 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 / (u - t1)
end function
public static double code(double u, double v, double t1) {
return v / (u - t1);
}
def code(u, v, t1): return v / (u - t1)
function code(u, v, t1) return Float64(v / Float64(u - t1)) end
function tmp = code(u, v, t1) tmp = v / (u - t1); end
code[u_, v_, t1_] := N[(v / N[(u - t1), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{v}{u - t1}
\end{array}
Initial program 74.5%
associate-/l*76.8%
distribute-lft-neg-out76.8%
distribute-rgt-neg-in76.8%
associate-/r*86.6%
distribute-neg-frac286.6%
Simplified86.6%
Taylor expanded in t1 around inf 49.3%
associate-/l/44.4%
associate-*r/44.2%
*-commutative44.2%
+-commutative44.2%
distribute-neg-in44.2%
sub-neg44.2%
sub-neg44.2%
distribute-neg-in44.2%
+-commutative44.2%
add-sqr-sqrt22.9%
sqrt-unprod46.5%
sqr-neg46.5%
sqrt-unprod14.9%
add-sqr-sqrt27.0%
Applied egg-rr27.0%
frac-2neg27.0%
div-inv27.0%
distribute-rgt-neg-in27.0%
add-sqr-sqrt13.0%
sqrt-unprod34.5%
sqr-neg34.5%
sqrt-unprod22.3%
add-sqr-sqrt44.0%
*-commutative44.0%
distribute-rgt-neg-in44.0%
+-commutative44.0%
distribute-neg-in44.0%
add-sqr-sqrt21.8%
sqrt-unprod53.2%
sqr-neg53.2%
sqrt-unprod22.3%
add-sqr-sqrt44.2%
Applied egg-rr44.2%
associate-*r/44.4%
*-rgt-identity44.4%
associate-/r*48.8%
associate-/l*56.9%
*-inverses56.9%
*-rgt-identity56.9%
sub-neg56.9%
Simplified56.9%
Final simplification56.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 74.5%
associate-/l*76.8%
distribute-lft-neg-out76.8%
distribute-rgt-neg-in76.8%
associate-/r*86.6%
distribute-neg-frac286.6%
Simplified86.6%
Taylor expanded in t1 around inf 49.3%
associate-*r/56.6%
+-commutative56.6%
distribute-neg-in56.6%
sub-neg56.6%
associate-*l/60.6%
clear-num60.9%
associate-*l/60.9%
*-un-lft-identity60.9%
sub-neg60.9%
distribute-neg-in60.9%
+-commutative60.9%
add-sqr-sqrt32.3%
sqrt-unprod45.1%
sqr-neg45.1%
sqrt-unprod15.0%
add-sqr-sqrt28.5%
Applied egg-rr28.5%
Taylor expanded in t1 around inf 11.9%
Final simplification11.9%
herbie shell --seed 2024044
(FPCore (u v t1)
:name "Rosa's DopplerBench"
:precision binary64
(/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))