
(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 19 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) (+ t1 u)) (/ v (+ t1 u))))
double code(double u, double v, double t1) {
return (-t1 / (t1 + u)) * (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 = (-t1 / (t1 + u)) * (v / (t1 + u))
end function
public static double code(double u, double v, double t1) {
return (-t1 / (t1 + u)) * (v / (t1 + u));
}
def code(u, v, t1): return (-t1 / (t1 + u)) * (v / (t1 + u))
function code(u, v, t1) return Float64(Float64(Float64(-t1) / Float64(t1 + u)) * Float64(v / Float64(t1 + u))) end
function tmp = code(u, v, t1) tmp = (-t1 / (t1 + u)) * (v / (t1 + u)); end
code[u_, v_, t1_] := N[(N[((-t1) / N[(t1 + u), $MachinePrecision]), $MachinePrecision] * N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}
\end{array}
Initial program 73.1%
times-frac98.4%
Simplified98.4%
Final simplification98.4%
(FPCore (u v t1)
:precision binary64
(if (<= u -7.2e+15)
(/ (/ t1 (/ u v)) (- u))
(if (<= u -1.6e-71)
(/ (- v) (+ t1 u))
(if (or (<= u -6.2e-99) (not (<= u 4e-79)))
(* (/ v (+ t1 u)) (/ (- t1) u))
(/ (- v) t1)))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -7.2e+15) {
tmp = (t1 / (u / v)) / -u;
} else if (u <= -1.6e-71) {
tmp = -v / (t1 + u);
} else if ((u <= -6.2e-99) || !(u <= 4e-79)) {
tmp = (v / (t1 + u)) * (-t1 / 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 <= (-7.2d+15)) then
tmp = (t1 / (u / v)) / -u
else if (u <= (-1.6d-71)) then
tmp = -v / (t1 + u)
else if ((u <= (-6.2d-99)) .or. (.not. (u <= 4d-79))) then
tmp = (v / (t1 + u)) * (-t1 / 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 <= -7.2e+15) {
tmp = (t1 / (u / v)) / -u;
} else if (u <= -1.6e-71) {
tmp = -v / (t1 + u);
} else if ((u <= -6.2e-99) || !(u <= 4e-79)) {
tmp = (v / (t1 + u)) * (-t1 / u);
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -7.2e+15: tmp = (t1 / (u / v)) / -u elif u <= -1.6e-71: tmp = -v / (t1 + u) elif (u <= -6.2e-99) or not (u <= 4e-79): tmp = (v / (t1 + u)) * (-t1 / u) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -7.2e+15) tmp = Float64(Float64(t1 / Float64(u / v)) / Float64(-u)); elseif (u <= -1.6e-71) tmp = Float64(Float64(-v) / Float64(t1 + u)); elseif ((u <= -6.2e-99) || !(u <= 4e-79)) tmp = Float64(Float64(v / Float64(t1 + u)) * Float64(Float64(-t1) / u)); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -7.2e+15) tmp = (t1 / (u / v)) / -u; elseif (u <= -1.6e-71) tmp = -v / (t1 + u); elseif ((u <= -6.2e-99) || ~((u <= 4e-79))) tmp = (v / (t1 + u)) * (-t1 / u); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -7.2e+15], N[(N[(t1 / N[(u / v), $MachinePrecision]), $MachinePrecision] / (-u)), $MachinePrecision], If[LessEqual[u, -1.6e-71], N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[u, -6.2e-99], N[Not[LessEqual[u, 4e-79]], $MachinePrecision]], N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] * N[((-t1) / u), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -7.2 \cdot 10^{+15}:\\
\;\;\;\;\frac{\frac{t1}{\frac{u}{v}}}{-u}\\
\mathbf{elif}\;u \leq -1.6 \cdot 10^{-71}:\\
\;\;\;\;\frac{-v}{t1 + u}\\
\mathbf{elif}\;u \leq -6.2 \cdot 10^{-99} \lor \neg \left(u \leq 4 \cdot 10^{-79}\right):\\
\;\;\;\;\frac{v}{t1 + u} \cdot \frac{-t1}{u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -7.2e15Initial program 77.1%
times-frac96.4%
Simplified96.4%
Taylor expanded in t1 around 0 80.7%
mul-1-neg80.7%
Simplified80.7%
distribute-neg-frac80.7%
associate-*l/84.1%
add-sqr-sqrt37.6%
sqrt-unprod55.8%
sqr-neg55.8%
sqrt-unprod32.0%
add-sqr-sqrt58.0%
associate-*l/58.1%
frac-2neg58.1%
associate-*l/58.0%
add-sqr-sqrt26.0%
sqrt-unprod58.6%
sqr-neg58.6%
sqrt-unprod46.3%
add-sqr-sqrt84.1%
+-commutative84.1%
Applied egg-rr84.1%
associate-*r/78.6%
associate-/l*85.4%
+-commutative85.4%
Applied egg-rr85.4%
Taylor expanded in t1 around 0 82.9%
if -7.2e15 < u < -1.5999999999999999e-71Initial program 88.9%
times-frac99.8%
Simplified99.8%
Taylor expanded in t1 around inf 75.7%
if -1.5999999999999999e-71 < u < -6.1999999999999997e-99 or 4e-79 < u Initial program 75.6%
times-frac99.4%
Simplified99.4%
Taylor expanded in t1 around 0 81.1%
mul-1-neg81.1%
Simplified81.1%
if -6.1999999999999997e-99 < u < 4e-79Initial program 65.1%
times-frac98.9%
Simplified98.9%
Taylor expanded in t1 around inf 84.5%
associate-*r/84.5%
neg-mul-184.5%
Simplified84.5%
Final simplification82.5%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (+ t1 u))))
(if (<= u -8.1e+15)
(/ (/ t1 (/ u v)) (- u))
(if (<= u -6.5e-72)
(/ (- v) (+ t1 u))
(if (<= u -6.2e-99)
(/ t1 (/ (- u) t_1))
(if (<= u 4.3e-79) (/ (- v) t1) (* t_1 (/ (- t1) u))))))))
double code(double u, double v, double t1) {
double t_1 = v / (t1 + u);
double tmp;
if (u <= -8.1e+15) {
tmp = (t1 / (u / v)) / -u;
} else if (u <= -6.5e-72) {
tmp = -v / (t1 + u);
} else if (u <= -6.2e-99) {
tmp = t1 / (-u / t_1);
} else if (u <= 4.3e-79) {
tmp = -v / t1;
} else {
tmp = t_1 * (-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) :: t_1
real(8) :: tmp
t_1 = v / (t1 + u)
if (u <= (-8.1d+15)) then
tmp = (t1 / (u / v)) / -u
else if (u <= (-6.5d-72)) then
tmp = -v / (t1 + u)
else if (u <= (-6.2d-99)) then
tmp = t1 / (-u / t_1)
else if (u <= 4.3d-79) then
tmp = -v / t1
else
tmp = t_1 * (-t1 / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / (t1 + u);
double tmp;
if (u <= -8.1e+15) {
tmp = (t1 / (u / v)) / -u;
} else if (u <= -6.5e-72) {
tmp = -v / (t1 + u);
} else if (u <= -6.2e-99) {
tmp = t1 / (-u / t_1);
} else if (u <= 4.3e-79) {
tmp = -v / t1;
} else {
tmp = t_1 * (-t1 / u);
}
return tmp;
}
def code(u, v, t1): t_1 = v / (t1 + u) tmp = 0 if u <= -8.1e+15: tmp = (t1 / (u / v)) / -u elif u <= -6.5e-72: tmp = -v / (t1 + u) elif u <= -6.2e-99: tmp = t1 / (-u / t_1) elif u <= 4.3e-79: tmp = -v / t1 else: tmp = t_1 * (-t1 / u) return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(t1 + u)) tmp = 0.0 if (u <= -8.1e+15) tmp = Float64(Float64(t1 / Float64(u / v)) / Float64(-u)); elseif (u <= -6.5e-72) tmp = Float64(Float64(-v) / Float64(t1 + u)); elseif (u <= -6.2e-99) tmp = Float64(t1 / Float64(Float64(-u) / t_1)); elseif (u <= 4.3e-79) tmp = Float64(Float64(-v) / t1); else tmp = Float64(t_1 * Float64(Float64(-t1) / u)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / (t1 + u); tmp = 0.0; if (u <= -8.1e+15) tmp = (t1 / (u / v)) / -u; elseif (u <= -6.5e-72) tmp = -v / (t1 + u); elseif (u <= -6.2e-99) tmp = t1 / (-u / t_1); elseif (u <= 4.3e-79) tmp = -v / t1; else tmp = t_1 * (-t1 / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -8.1e+15], N[(N[(t1 / N[(u / v), $MachinePrecision]), $MachinePrecision] / (-u)), $MachinePrecision], If[LessEqual[u, -6.5e-72], N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, -6.2e-99], N[(t1 / N[((-u) / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 4.3e-79], N[((-v) / t1), $MachinePrecision], N[(t$95$1 * N[((-t1) / u), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{t1 + u}\\
\mathbf{if}\;u \leq -8.1 \cdot 10^{+15}:\\
\;\;\;\;\frac{\frac{t1}{\frac{u}{v}}}{-u}\\
\mathbf{elif}\;u \leq -6.5 \cdot 10^{-72}:\\
\;\;\;\;\frac{-v}{t1 + u}\\
\mathbf{elif}\;u \leq -6.2 \cdot 10^{-99}:\\
\;\;\;\;\frac{t1}{\frac{-u}{t_1}}\\
\mathbf{elif}\;u \leq 4.3 \cdot 10^{-79}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot \frac{-t1}{u}\\
\end{array}
\end{array}
if u < -8.1e15Initial program 77.1%
times-frac96.4%
Simplified96.4%
Taylor expanded in t1 around 0 80.7%
mul-1-neg80.7%
Simplified80.7%
distribute-neg-frac80.7%
associate-*l/84.1%
add-sqr-sqrt37.6%
sqrt-unprod55.8%
sqr-neg55.8%
sqrt-unprod32.0%
add-sqr-sqrt58.0%
associate-*l/58.1%
frac-2neg58.1%
associate-*l/58.0%
add-sqr-sqrt26.0%
sqrt-unprod58.6%
sqr-neg58.6%
sqrt-unprod46.3%
add-sqr-sqrt84.1%
+-commutative84.1%
Applied egg-rr84.1%
associate-*r/78.6%
associate-/l*85.4%
+-commutative85.4%
Applied egg-rr85.4%
Taylor expanded in t1 around 0 82.9%
if -8.1e15 < u < -6.4999999999999997e-72Initial program 88.9%
times-frac99.8%
Simplified99.8%
Taylor expanded in t1 around inf 75.7%
if -6.4999999999999997e-72 < u < -6.1999999999999997e-99Initial program 84.2%
times-frac99.5%
Simplified99.5%
Taylor expanded in t1 around 0 99.2%
mul-1-neg99.2%
Simplified99.2%
distribute-neg-frac99.2%
associate-*l/92.3%
add-sqr-sqrt42.1%
sqrt-unprod34.5%
sqr-neg34.5%
sqrt-unprod17.2%
add-sqr-sqrt18.6%
associate-*l/18.6%
frac-2neg18.6%
associate-*l/18.6%
add-sqr-sqrt1.3%
sqrt-unprod34.9%
sqr-neg34.9%
sqrt-unprod49.7%
add-sqr-sqrt92.3%
+-commutative92.3%
Applied egg-rr92.3%
associate-/l*99.7%
Simplified99.7%
if -6.1999999999999997e-99 < u < 4.29999999999999982e-79Initial program 65.1%
times-frac98.9%
Simplified98.9%
Taylor expanded in t1 around inf 84.5%
associate-*r/84.5%
neg-mul-184.5%
Simplified84.5%
if 4.29999999999999982e-79 < u Initial program 74.8%
times-frac99.4%
Simplified99.4%
Taylor expanded in t1 around 0 79.4%
mul-1-neg79.4%
Simplified79.4%
Final simplification82.5%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (+ t1 u))) (t_2 (/ (* t1 t_1) (- u))))
(if (<= u -3.2e+15)
t_2
(if (<= u -1.5e-68)
(/ (- v) (+ t1 u))
(if (<= u -1.22e-114)
(/ t1 (/ (- u) t_1))
(if (<= u 3.6e-79) (/ (- v) t1) t_2))))))
double code(double u, double v, double t1) {
double t_1 = v / (t1 + u);
double t_2 = (t1 * t_1) / -u;
double tmp;
if (u <= -3.2e+15) {
tmp = t_2;
} else if (u <= -1.5e-68) {
tmp = -v / (t1 + u);
} else if (u <= -1.22e-114) {
tmp = t1 / (-u / t_1);
} else if (u <= 3.6e-79) {
tmp = -v / t1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = v / (t1 + u)
t_2 = (t1 * t_1) / -u
if (u <= (-3.2d+15)) then
tmp = t_2
else if (u <= (-1.5d-68)) then
tmp = -v / (t1 + u)
else if (u <= (-1.22d-114)) then
tmp = t1 / (-u / t_1)
else if (u <= 3.6d-79) then
tmp = -v / t1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / (t1 + u);
double t_2 = (t1 * t_1) / -u;
double tmp;
if (u <= -3.2e+15) {
tmp = t_2;
} else if (u <= -1.5e-68) {
tmp = -v / (t1 + u);
} else if (u <= -1.22e-114) {
tmp = t1 / (-u / t_1);
} else if (u <= 3.6e-79) {
tmp = -v / t1;
} else {
tmp = t_2;
}
return tmp;
}
def code(u, v, t1): t_1 = v / (t1 + u) t_2 = (t1 * t_1) / -u tmp = 0 if u <= -3.2e+15: tmp = t_2 elif u <= -1.5e-68: tmp = -v / (t1 + u) elif u <= -1.22e-114: tmp = t1 / (-u / t_1) elif u <= 3.6e-79: tmp = -v / t1 else: tmp = t_2 return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(t1 + u)) t_2 = Float64(Float64(t1 * t_1) / Float64(-u)) tmp = 0.0 if (u <= -3.2e+15) tmp = t_2; elseif (u <= -1.5e-68) tmp = Float64(Float64(-v) / Float64(t1 + u)); elseif (u <= -1.22e-114) tmp = Float64(t1 / Float64(Float64(-u) / t_1)); elseif (u <= 3.6e-79) tmp = Float64(Float64(-v) / t1); else tmp = t_2; end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / (t1 + u); t_2 = (t1 * t_1) / -u; tmp = 0.0; if (u <= -3.2e+15) tmp = t_2; elseif (u <= -1.5e-68) tmp = -v / (t1 + u); elseif (u <= -1.22e-114) tmp = t1 / (-u / t_1); elseif (u <= 3.6e-79) tmp = -v / t1; else tmp = t_2; end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t1 * t$95$1), $MachinePrecision] / (-u)), $MachinePrecision]}, If[LessEqual[u, -3.2e+15], t$95$2, If[LessEqual[u, -1.5e-68], N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, -1.22e-114], N[(t1 / N[((-u) / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 3.6e-79], N[((-v) / t1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{t1 + u}\\
t_2 := \frac{t1 \cdot t_1}{-u}\\
\mathbf{if}\;u \leq -3.2 \cdot 10^{+15}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;u \leq -1.5 \cdot 10^{-68}:\\
\;\;\;\;\frac{-v}{t1 + u}\\
\mathbf{elif}\;u \leq -1.22 \cdot 10^{-114}:\\
\;\;\;\;\frac{t1}{\frac{-u}{t_1}}\\
\mathbf{elif}\;u \leq 3.6 \cdot 10^{-79}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if u < -3.2e15 or 3.6000000000000002e-79 < u Initial program 76.0%
times-frac97.8%
Simplified97.8%
Taylor expanded in t1 around 0 80.1%
mul-1-neg80.1%
Simplified80.1%
distribute-neg-frac80.1%
associate-*l/82.1%
add-sqr-sqrt44.4%
sqrt-unprod56.4%
sqr-neg56.4%
sqrt-unprod25.1%
add-sqr-sqrt55.5%
associate-*l/55.5%
frac-2neg55.5%
associate-*l/55.5%
add-sqr-sqrt30.4%
sqrt-unprod55.7%
sqr-neg55.7%
sqrt-unprod37.6%
add-sqr-sqrt82.1%
+-commutative82.1%
Applied egg-rr82.1%
if -3.2e15 < u < -1.5e-68Initial program 88.9%
times-frac99.8%
Simplified99.8%
Taylor expanded in t1 around inf 75.7%
if -1.5e-68 < u < -1.22e-114Initial program 76.2%
times-frac99.6%
Simplified99.6%
Taylor expanded in t1 around 0 86.9%
mul-1-neg86.9%
Simplified86.9%
distribute-neg-frac86.9%
associate-*l/94.0%
add-sqr-sqrt44.1%
sqrt-unprod26.5%
sqr-neg26.5%
sqrt-unprod13.4%
add-sqr-sqrt26.9%
associate-*l/14.4%
frac-2neg14.4%
associate-*l/26.9%
add-sqr-sqrt13.5%
sqrt-unprod26.8%
sqr-neg26.8%
sqrt-unprod49.6%
add-sqr-sqrt94.0%
+-commutative94.0%
Applied egg-rr94.0%
associate-/l*99.8%
Simplified99.8%
if -1.22e-114 < u < 3.6000000000000002e-79Initial program 65.4%
times-frac98.9%
Simplified98.9%
Taylor expanded in t1 around inf 85.2%
associate-*r/85.2%
neg-mul-185.2%
Simplified85.2%
Final simplification83.3%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ v (+ t1 u))))
(if (<= u -3.85e+15)
(/ (* t1 t_1) (- u))
(if (<= u -4.3e-72)
(/ (- v) (+ t1 u))
(if (<= u -1.25e-114)
(/ t1 (/ (- u) t_1))
(if (<= u 4.3e-79) (/ (- v) t1) (/ (/ t1 (- u)) (/ (+ t1 u) v))))))))
double code(double u, double v, double t1) {
double t_1 = v / (t1 + u);
double tmp;
if (u <= -3.85e+15) {
tmp = (t1 * t_1) / -u;
} else if (u <= -4.3e-72) {
tmp = -v / (t1 + u);
} else if (u <= -1.25e-114) {
tmp = t1 / (-u / t_1);
} else if (u <= 4.3e-79) {
tmp = -v / t1;
} else {
tmp = (t1 / -u) / ((t1 + 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) :: t_1
real(8) :: tmp
t_1 = v / (t1 + u)
if (u <= (-3.85d+15)) then
tmp = (t1 * t_1) / -u
else if (u <= (-4.3d-72)) then
tmp = -v / (t1 + u)
else if (u <= (-1.25d-114)) then
tmp = t1 / (-u / t_1)
else if (u <= 4.3d-79) then
tmp = -v / t1
else
tmp = (t1 / -u) / ((t1 + u) / v)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v / (t1 + u);
double tmp;
if (u <= -3.85e+15) {
tmp = (t1 * t_1) / -u;
} else if (u <= -4.3e-72) {
tmp = -v / (t1 + u);
} else if (u <= -1.25e-114) {
tmp = t1 / (-u / t_1);
} else if (u <= 4.3e-79) {
tmp = -v / t1;
} else {
tmp = (t1 / -u) / ((t1 + u) / v);
}
return tmp;
}
def code(u, v, t1): t_1 = v / (t1 + u) tmp = 0 if u <= -3.85e+15: tmp = (t1 * t_1) / -u elif u <= -4.3e-72: tmp = -v / (t1 + u) elif u <= -1.25e-114: tmp = t1 / (-u / t_1) elif u <= 4.3e-79: tmp = -v / t1 else: tmp = (t1 / -u) / ((t1 + u) / v) return tmp
function code(u, v, t1) t_1 = Float64(v / Float64(t1 + u)) tmp = 0.0 if (u <= -3.85e+15) tmp = Float64(Float64(t1 * t_1) / Float64(-u)); elseif (u <= -4.3e-72) tmp = Float64(Float64(-v) / Float64(t1 + u)); elseif (u <= -1.25e-114) tmp = Float64(t1 / Float64(Float64(-u) / t_1)); elseif (u <= 4.3e-79) tmp = Float64(Float64(-v) / t1); else tmp = Float64(Float64(t1 / Float64(-u)) / Float64(Float64(t1 + u) / v)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v / (t1 + u); tmp = 0.0; if (u <= -3.85e+15) tmp = (t1 * t_1) / -u; elseif (u <= -4.3e-72) tmp = -v / (t1 + u); elseif (u <= -1.25e-114) tmp = t1 / (-u / t_1); elseif (u <= 4.3e-79) tmp = -v / t1; else tmp = (t1 / -u) / ((t1 + u) / v); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -3.85e+15], N[(N[(t1 * t$95$1), $MachinePrecision] / (-u)), $MachinePrecision], If[LessEqual[u, -4.3e-72], N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, -1.25e-114], N[(t1 / N[((-u) / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 4.3e-79], N[((-v) / t1), $MachinePrecision], N[(N[(t1 / (-u)), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] / v), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{v}{t1 + u}\\
\mathbf{if}\;u \leq -3.85 \cdot 10^{+15}:\\
\;\;\;\;\frac{t1 \cdot t_1}{-u}\\
\mathbf{elif}\;u \leq -4.3 \cdot 10^{-72}:\\
\;\;\;\;\frac{-v}{t1 + u}\\
\mathbf{elif}\;u \leq -1.25 \cdot 10^{-114}:\\
\;\;\;\;\frac{t1}{\frac{-u}{t_1}}\\
\mathbf{elif}\;u \leq 4.3 \cdot 10^{-79}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{t1}{-u}}{\frac{t1 + u}{v}}\\
\end{array}
\end{array}
if u < -3.85e15Initial program 77.1%
times-frac96.4%
Simplified96.4%
Taylor expanded in t1 around 0 80.7%
mul-1-neg80.7%
Simplified80.7%
distribute-neg-frac80.7%
associate-*l/84.1%
add-sqr-sqrt37.6%
sqrt-unprod55.8%
sqr-neg55.8%
sqrt-unprod32.0%
add-sqr-sqrt58.0%
associate-*l/58.1%
frac-2neg58.1%
associate-*l/58.0%
add-sqr-sqrt26.0%
sqrt-unprod58.6%
sqr-neg58.6%
sqrt-unprod46.3%
add-sqr-sqrt84.1%
+-commutative84.1%
Applied egg-rr84.1%
if -3.85e15 < u < -4.2999999999999999e-72Initial program 88.9%
times-frac99.8%
Simplified99.8%
Taylor expanded in t1 around inf 75.7%
if -4.2999999999999999e-72 < u < -1.24999999999999997e-114Initial program 76.2%
times-frac99.6%
Simplified99.6%
Taylor expanded in t1 around 0 86.9%
mul-1-neg86.9%
Simplified86.9%
distribute-neg-frac86.9%
associate-*l/94.0%
add-sqr-sqrt44.1%
sqrt-unprod26.5%
sqr-neg26.5%
sqrt-unprod13.4%
add-sqr-sqrt26.9%
associate-*l/14.4%
frac-2neg14.4%
associate-*l/26.9%
add-sqr-sqrt13.5%
sqrt-unprod26.8%
sqr-neg26.8%
sqrt-unprod49.6%
add-sqr-sqrt94.0%
+-commutative94.0%
Applied egg-rr94.0%
associate-/l*99.8%
Simplified99.8%
if -1.24999999999999997e-114 < u < 4.29999999999999982e-79Initial program 65.4%
times-frac98.9%
Simplified98.9%
Taylor expanded in t1 around inf 85.2%
associate-*r/85.2%
neg-mul-185.2%
Simplified85.2%
if 4.29999999999999982e-79 < u Initial program 74.8%
times-frac99.4%
Simplified99.4%
Taylor expanded in t1 around 0 79.4%
mul-1-neg79.4%
Simplified79.4%
distribute-neg-frac79.4%
associate-*l/79.9%
add-sqr-sqrt51.8%
sqrt-unprod57.0%
sqr-neg57.0%
sqrt-unprod17.3%
add-sqr-sqrt52.7%
associate-*l/52.7%
frac-2neg52.7%
clear-num53.4%
frac-times53.5%
*-commutative53.5%
*-un-lft-identity53.5%
add-sqr-sqrt36.1%
sqrt-unprod50.8%
sqr-neg50.8%
sqrt-unprod26.5%
add-sqr-sqrt79.2%
+-commutative79.2%
Applied egg-rr79.2%
associate-/r*80.2%
Simplified80.2%
Final simplification83.4%
(FPCore (u v t1)
:precision binary64
(if (or (<= t1 -8.6e-76)
(and (not (<= t1 1.05e-131))
(or (<= t1 2e-40) (not (<= t1 1.06e+18)))))
(/ (- v) (+ t1 u))
(* t1 (/ (- v) (* u u)))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -8.6e-76) || (!(t1 <= 1.05e-131) && ((t1 <= 2e-40) || !(t1 <= 1.06e+18)))) {
tmp = -v / (t1 + u);
} else {
tmp = t1 * (-v / (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) :: tmp
if ((t1 <= (-8.6d-76)) .or. (.not. (t1 <= 1.05d-131)) .and. (t1 <= 2d-40) .or. (.not. (t1 <= 1.06d+18))) then
tmp = -v / (t1 + u)
else
tmp = t1 * (-v / (u * u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -8.6e-76) || (!(t1 <= 1.05e-131) && ((t1 <= 2e-40) || !(t1 <= 1.06e+18)))) {
tmp = -v / (t1 + u);
} else {
tmp = t1 * (-v / (u * u));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -8.6e-76) or (not (t1 <= 1.05e-131) and ((t1 <= 2e-40) or not (t1 <= 1.06e+18))): tmp = -v / (t1 + u) else: tmp = t1 * (-v / (u * u)) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -8.6e-76) || (!(t1 <= 1.05e-131) && ((t1 <= 2e-40) || !(t1 <= 1.06e+18)))) tmp = Float64(Float64(-v) / Float64(t1 + u)); else tmp = Float64(t1 * Float64(Float64(-v) / Float64(u * u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -8.6e-76) || (~((t1 <= 1.05e-131)) && ((t1 <= 2e-40) || ~((t1 <= 1.06e+18))))) tmp = -v / (t1 + u); else tmp = t1 * (-v / (u * u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -8.6e-76], And[N[Not[LessEqual[t1, 1.05e-131]], $MachinePrecision], Or[LessEqual[t1, 2e-40], N[Not[LessEqual[t1, 1.06e+18]], $MachinePrecision]]]], N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision], N[(t1 * N[((-v) / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -8.6 \cdot 10^{-76} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-131}\right) \land \left(t1 \leq 2 \cdot 10^{-40} \lor \neg \left(t1 \leq 1.06 \cdot 10^{+18}\right)\right):\\
\;\;\;\;\frac{-v}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;t1 \cdot \frac{-v}{u \cdot u}\\
\end{array}
\end{array}
if t1 < -8.5999999999999998e-76 or 1.04999999999999999e-131 < t1 < 1.9999999999999999e-40 or 1.06e18 < t1 Initial program 67.4%
times-frac99.9%
Simplified99.9%
Taylor expanded in t1 around inf 81.2%
if -8.5999999999999998e-76 < t1 < 1.04999999999999999e-131 or 1.9999999999999999e-40 < t1 < 1.06e18Initial program 82.2%
associate-/l*85.2%
neg-mul-185.2%
*-commutative85.2%
associate-*r/85.2%
associate-/l*85.3%
neg-mul-185.3%
associate-/r*90.3%
Simplified90.3%
Taylor expanded in t1 around 0 81.7%
associate-*r/81.7%
neg-mul-181.7%
unpow281.7%
Simplified81.7%
Final simplification81.4%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (/ (- v) (+ t1 u))))
(if (<= t1 -1.15e-77)
t_1
(if (<= t1 1.25e-127)
(* v (/ (/ (- t1) u) u))
(if (or (<= t1 6.7e-40) (not (<= t1 62000000000000.0)))
t_1
(* t1 (/ (- v) (* u u))))))))
double code(double u, double v, double t1) {
double t_1 = -v / (t1 + u);
double tmp;
if (t1 <= -1.15e-77) {
tmp = t_1;
} else if (t1 <= 1.25e-127) {
tmp = v * ((-t1 / u) / u);
} else if ((t1 <= 6.7e-40) || !(t1 <= 62000000000000.0)) {
tmp = t_1;
} else {
tmp = t1 * (-v / (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 / (t1 + u)
if (t1 <= (-1.15d-77)) then
tmp = t_1
else if (t1 <= 1.25d-127) then
tmp = v * ((-t1 / u) / u)
else if ((t1 <= 6.7d-40) .or. (.not. (t1 <= 62000000000000.0d0))) then
tmp = t_1
else
tmp = t1 * (-v / (u * u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = -v / (t1 + u);
double tmp;
if (t1 <= -1.15e-77) {
tmp = t_1;
} else if (t1 <= 1.25e-127) {
tmp = v * ((-t1 / u) / u);
} else if ((t1 <= 6.7e-40) || !(t1 <= 62000000000000.0)) {
tmp = t_1;
} else {
tmp = t1 * (-v / (u * u));
}
return tmp;
}
def code(u, v, t1): t_1 = -v / (t1 + u) tmp = 0 if t1 <= -1.15e-77: tmp = t_1 elif t1 <= 1.25e-127: tmp = v * ((-t1 / u) / u) elif (t1 <= 6.7e-40) or not (t1 <= 62000000000000.0): tmp = t_1 else: tmp = t1 * (-v / (u * u)) return tmp
function code(u, v, t1) t_1 = Float64(Float64(-v) / Float64(t1 + u)) tmp = 0.0 if (t1 <= -1.15e-77) tmp = t_1; elseif (t1 <= 1.25e-127) tmp = Float64(v * Float64(Float64(Float64(-t1) / u) / u)); elseif ((t1 <= 6.7e-40) || !(t1 <= 62000000000000.0)) tmp = t_1; else tmp = Float64(t1 * Float64(Float64(-v) / Float64(u * u))); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = -v / (t1 + u); tmp = 0.0; if (t1 <= -1.15e-77) tmp = t_1; elseif (t1 <= 1.25e-127) tmp = v * ((-t1 / u) / u); elseif ((t1 <= 6.7e-40) || ~((t1 <= 62000000000000.0))) tmp = t_1; else tmp = t1 * (-v / (u * u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -1.15e-77], t$95$1, If[LessEqual[t1, 1.25e-127], N[(v * N[(N[((-t1) / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t1, 6.7e-40], N[Not[LessEqual[t1, 62000000000000.0]], $MachinePrecision]], t$95$1, N[(t1 * N[((-v) / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-v}{t1 + u}\\
\mathbf{if}\;t1 \leq -1.15 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq 1.25 \cdot 10^{-127}:\\
\;\;\;\;v \cdot \frac{\frac{-t1}{u}}{u}\\
\mathbf{elif}\;t1 \leq 6.7 \cdot 10^{-40} \lor \neg \left(t1 \leq 62000000000000\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t1 \cdot \frac{-v}{u \cdot u}\\
\end{array}
\end{array}
if t1 < -1.14999999999999999e-77 or 1.2499999999999999e-127 < t1 < 6.6999999999999998e-40 or 6.2e13 < t1 Initial program 67.4%
times-frac99.9%
Simplified99.9%
Taylor expanded in t1 around inf 81.2%
if -1.14999999999999999e-77 < t1 < 1.2499999999999999e-127Initial program 80.2%
associate-/l*83.6%
associate-/l*89.1%
Simplified89.1%
Taylor expanded in t1 around 0 80.7%
unpow280.7%
Simplified80.7%
add-sqr-sqrt50.2%
sqrt-unprod51.7%
sqr-neg51.7%
sqrt-unprod15.3%
add-sqr-sqrt42.4%
associate-/r/42.5%
Applied egg-rr42.5%
clear-num42.5%
associate-*l/42.5%
*-un-lft-identity42.5%
associate-/l*42.5%
Applied egg-rr42.5%
frac-2neg42.5%
div-inv42.5%
distribute-neg-frac42.5%
add-sqr-sqrt22.6%
sqrt-unprod59.4%
sqr-neg59.4%
sqrt-unprod37.8%
add-sqr-sqrt81.2%
clear-num81.2%
Applied egg-rr81.2%
if 6.6999999999999998e-40 < t1 < 6.2e13Initial program 99.8%
associate-/l*99.8%
neg-mul-199.8%
*-commutative99.8%
associate-*r/99.8%
associate-/l*99.8%
neg-mul-199.8%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in t1 around 0 90.5%
associate-*r/90.5%
neg-mul-190.5%
unpow290.5%
Simplified90.5%
Final simplification81.5%
(FPCore (u v t1) :precision binary64 (if (or (<= u -7.6e-115) (not (<= u 3.9e-79))) (/ (/ t1 (/ (+ t1 u) v)) (- u)) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -7.6e-115) || !(u <= 3.9e-79)) {
tmp = (t1 / ((t1 + u) / 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 <= (-7.6d-115)) .or. (.not. (u <= 3.9d-79))) then
tmp = (t1 / ((t1 + u) / 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 <= -7.6e-115) || !(u <= 3.9e-79)) {
tmp = (t1 / ((t1 + u) / v)) / -u;
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -7.6e-115) or not (u <= 3.9e-79): tmp = (t1 / ((t1 + u) / v)) / -u else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -7.6e-115) || !(u <= 3.9e-79)) tmp = Float64(Float64(t1 / Float64(Float64(t1 + u) / v)) / Float64(-u)); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -7.6e-115) || ~((u <= 3.9e-79))) tmp = (t1 / ((t1 + u) / v)) / -u; else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -7.6e-115], N[Not[LessEqual[u, 3.9e-79]], $MachinePrecision]], N[(N[(t1 / N[(N[(t1 + u), $MachinePrecision] / v), $MachinePrecision]), $MachinePrecision] / (-u)), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -7.6 \cdot 10^{-115} \lor \neg \left(u \leq 3.9 \cdot 10^{-79}\right):\\
\;\;\;\;\frac{\frac{t1}{\frac{t1 + u}{v}}}{-u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -7.59999999999999984e-115 or 3.90000000000000006e-79 < u Initial program 77.4%
times-frac98.1%
Simplified98.1%
Taylor expanded in t1 around 0 76.8%
mul-1-neg76.8%
Simplified76.8%
distribute-neg-frac76.8%
associate-*l/79.4%
add-sqr-sqrt44.0%
sqrt-unprod51.5%
sqr-neg51.5%
sqrt-unprod23.0%
add-sqr-sqrt51.8%
associate-*l/50.6%
frac-2neg50.6%
associate-*l/51.8%
add-sqr-sqrt28.8%
sqrt-unprod50.1%
sqr-neg50.1%
sqrt-unprod35.3%
add-sqr-sqrt79.4%
+-commutative79.4%
Applied egg-rr79.4%
associate-*r/69.3%
associate-/l*80.7%
+-commutative80.7%
Applied egg-rr80.7%
if -7.59999999999999984e-115 < u < 3.90000000000000006e-79Initial program 65.4%
times-frac98.9%
Simplified98.9%
Taylor expanded in t1 around inf 85.2%
associate-*r/85.2%
neg-mul-185.2%
Simplified85.2%
Final simplification82.3%
(FPCore (u v t1) :precision binary64 (if (or (<= u -4e+15) (not (<= u 4e-79))) (* (/ v u) (/ (- t1) u)) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -4e+15) || !(u <= 4e-79)) {
tmp = (v / u) * (-t1 / 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 <= (-4d+15)) .or. (.not. (u <= 4d-79))) then
tmp = (v / u) * (-t1 / 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 <= -4e+15) || !(u <= 4e-79)) {
tmp = (v / u) * (-t1 / u);
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -4e+15) or not (u <= 4e-79): tmp = (v / u) * (-t1 / u) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -4e+15) || !(u <= 4e-79)) tmp = Float64(Float64(v / u) * Float64(Float64(-t1) / u)); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -4e+15) || ~((u <= 4e-79))) tmp = (v / u) * (-t1 / u); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -4e+15], N[Not[LessEqual[u, 4e-79]], $MachinePrecision]], N[(N[(v / u), $MachinePrecision] * N[((-t1) / u), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -4 \cdot 10^{+15} \lor \neg \left(u \leq 4 \cdot 10^{-79}\right):\\
\;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -4e15 or 4e-79 < u Initial program 76.0%
times-frac97.8%
Simplified97.8%
Taylor expanded in t1 around 0 80.1%
mul-1-neg80.1%
Simplified80.1%
distribute-neg-frac80.1%
associate-*l/82.1%
add-sqr-sqrt44.4%
sqrt-unprod56.4%
sqr-neg56.4%
sqrt-unprod25.1%
add-sqr-sqrt55.5%
associate-*l/55.5%
frac-2neg55.5%
associate-*l/55.5%
add-sqr-sqrt30.4%
sqrt-unprod55.7%
sqr-neg55.7%
sqrt-unprod37.6%
add-sqr-sqrt82.1%
+-commutative82.1%
Applied egg-rr82.1%
Taylor expanded in t1 around 0 71.0%
mul-1-neg71.0%
*-commutative71.0%
unpow271.0%
times-frac78.0%
distribute-rgt-neg-in78.0%
distribute-neg-frac78.0%
Simplified78.0%
if -4e15 < u < 4e-79Initial program 69.7%
times-frac99.1%
Simplified99.1%
Taylor expanded in t1 around inf 79.9%
associate-*r/79.9%
neg-mul-179.9%
Simplified79.9%
Final simplification78.9%
(FPCore (u v t1) :precision binary64 (if (or (<= u -5.2e+15) (not (<= u 4.3e-79))) (/ (* t1 (/ v u)) (- u)) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -5.2e+15) || !(u <= 4.3e-79)) {
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 <= (-5.2d+15)) .or. (.not. (u <= 4.3d-79))) 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 <= -5.2e+15) || !(u <= 4.3e-79)) {
tmp = (t1 * (v / u)) / -u;
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -5.2e+15) or not (u <= 4.3e-79): tmp = (t1 * (v / u)) / -u else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -5.2e+15) || !(u <= 4.3e-79)) tmp = Float64(Float64(t1 * Float64(v / u)) / Float64(-u)); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -5.2e+15) || ~((u <= 4.3e-79))) tmp = (t1 * (v / u)) / -u; else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -5.2e+15], N[Not[LessEqual[u, 4.3e-79]], $MachinePrecision]], N[(N[(t1 * N[(v / u), $MachinePrecision]), $MachinePrecision] / (-u)), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -5.2 \cdot 10^{+15} \lor \neg \left(u \leq 4.3 \cdot 10^{-79}\right):\\
\;\;\;\;\frac{t1 \cdot \frac{v}{u}}{-u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -5.2e15 or 4.29999999999999982e-79 < u Initial program 76.0%
times-frac97.8%
Simplified97.8%
Taylor expanded in t1 around 0 80.1%
mul-1-neg80.1%
Simplified80.1%
distribute-neg-frac80.1%
associate-*l/82.1%
add-sqr-sqrt44.4%
sqrt-unprod56.4%
sqr-neg56.4%
sqrt-unprod25.1%
add-sqr-sqrt55.5%
associate-*l/55.5%
frac-2neg55.5%
associate-*l/55.5%
add-sqr-sqrt30.4%
sqrt-unprod55.7%
sqr-neg55.7%
sqrt-unprod37.6%
add-sqr-sqrt82.1%
+-commutative82.1%
Applied egg-rr82.1%
Taylor expanded in t1 around 0 75.5%
associate-*r/80.0%
Simplified80.0%
if -5.2e15 < u < 4.29999999999999982e-79Initial program 69.7%
times-frac99.1%
Simplified99.1%
Taylor expanded in t1 around inf 79.9%
associate-*r/79.9%
neg-mul-179.9%
Simplified79.9%
Final simplification80.0%
(FPCore (u v t1) :precision binary64 (if (<= u -7.5e+15) (/ (/ t1 (/ u v)) (- u)) (if (<= u 4.3e-79) (/ (- v) t1) (/ (* t1 (/ v u)) (- u)))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -7.5e+15) {
tmp = (t1 / (u / v)) / -u;
} else if (u <= 4.3e-79) {
tmp = -v / t1;
} else {
tmp = (t1 * (v / 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) :: tmp
if (u <= (-7.5d+15)) then
tmp = (t1 / (u / v)) / -u
else if (u <= 4.3d-79) then
tmp = -v / t1
else
tmp = (t1 * (v / u)) / -u
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -7.5e+15) {
tmp = (t1 / (u / v)) / -u;
} else if (u <= 4.3e-79) {
tmp = -v / t1;
} else {
tmp = (t1 * (v / u)) / -u;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -7.5e+15: tmp = (t1 / (u / v)) / -u elif u <= 4.3e-79: tmp = -v / t1 else: tmp = (t1 * (v / u)) / -u return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -7.5e+15) tmp = Float64(Float64(t1 / Float64(u / v)) / Float64(-u)); elseif (u <= 4.3e-79) tmp = Float64(Float64(-v) / t1); else tmp = Float64(Float64(t1 * Float64(v / u)) / Float64(-u)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -7.5e+15) tmp = (t1 / (u / v)) / -u; elseif (u <= 4.3e-79) tmp = -v / t1; else tmp = (t1 * (v / u)) / -u; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -7.5e+15], N[(N[(t1 / N[(u / v), $MachinePrecision]), $MachinePrecision] / (-u)), $MachinePrecision], If[LessEqual[u, 4.3e-79], N[((-v) / t1), $MachinePrecision], N[(N[(t1 * N[(v / u), $MachinePrecision]), $MachinePrecision] / (-u)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -7.5 \cdot 10^{+15}:\\
\;\;\;\;\frac{\frac{t1}{\frac{u}{v}}}{-u}\\
\mathbf{elif}\;u \leq 4.3 \cdot 10^{-79}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t1 \cdot \frac{v}{u}}{-u}\\
\end{array}
\end{array}
if u < -7.5e15Initial program 77.1%
times-frac96.4%
Simplified96.4%
Taylor expanded in t1 around 0 80.7%
mul-1-neg80.7%
Simplified80.7%
distribute-neg-frac80.7%
associate-*l/84.1%
add-sqr-sqrt37.6%
sqrt-unprod55.8%
sqr-neg55.8%
sqrt-unprod32.0%
add-sqr-sqrt58.0%
associate-*l/58.1%
frac-2neg58.1%
associate-*l/58.0%
add-sqr-sqrt26.0%
sqrt-unprod58.6%
sqr-neg58.6%
sqrt-unprod46.3%
add-sqr-sqrt84.1%
+-commutative84.1%
Applied egg-rr84.1%
associate-*r/78.6%
associate-/l*85.4%
+-commutative85.4%
Applied egg-rr85.4%
Taylor expanded in t1 around 0 82.9%
if -7.5e15 < u < 4.29999999999999982e-79Initial program 69.7%
times-frac99.1%
Simplified99.1%
Taylor expanded in t1 around inf 79.9%
associate-*r/79.9%
neg-mul-179.9%
Simplified79.9%
if 4.29999999999999982e-79 < u Initial program 74.8%
times-frac99.4%
Simplified99.4%
Taylor expanded in t1 around 0 79.4%
mul-1-neg79.4%
Simplified79.4%
distribute-neg-frac79.4%
associate-*l/79.9%
add-sqr-sqrt51.8%
sqrt-unprod57.0%
sqr-neg57.0%
sqrt-unprod17.3%
add-sqr-sqrt52.7%
associate-*l/52.7%
frac-2neg52.7%
associate-*l/52.7%
add-sqr-sqrt35.3%
sqrt-unprod52.4%
sqr-neg52.4%
sqrt-unprod28.0%
add-sqr-sqrt79.9%
+-commutative79.9%
Applied egg-rr79.9%
Taylor expanded in t1 around 0 73.1%
associate-*r/76.9%
Simplified76.9%
Final simplification80.0%
(FPCore (u v t1) :precision binary64 (if (or (<= u -3.2e+89) (not (<= u 3.2e+22))) (* v (/ (/ t1 u) u)) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -3.2e+89) || !(u <= 3.2e+22)) {
tmp = v * ((t1 / 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 <= (-3.2d+89)) .or. (.not. (u <= 3.2d+22))) then
tmp = v * ((t1 / 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 <= -3.2e+89) || !(u <= 3.2e+22)) {
tmp = v * ((t1 / u) / u);
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -3.2e+89) or not (u <= 3.2e+22): tmp = v * ((t1 / u) / u) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -3.2e+89) || !(u <= 3.2e+22)) tmp = Float64(v * Float64(Float64(t1 / u) / u)); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -3.2e+89) || ~((u <= 3.2e+22))) tmp = v * ((t1 / u) / u); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -3.2e+89], N[Not[LessEqual[u, 3.2e+22]], $MachinePrecision]], N[(v * N[(N[(t1 / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -3.2 \cdot 10^{+89} \lor \neg \left(u \leq 3.2 \cdot 10^{+22}\right):\\
\;\;\;\;v \cdot \frac{\frac{t1}{u}}{u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -3.19999999999999987e89 or 3.2e22 < u Initial program 75.9%
associate-/l*76.5%
associate-/l*86.4%
Simplified86.4%
Taylor expanded in t1 around 0 75.0%
unpow275.0%
Simplified75.0%
expm1-log1p-u73.9%
expm1-udef66.4%
associate-/r/66.4%
*-commutative66.4%
add-sqr-sqrt37.1%
sqrt-unprod56.8%
sqr-neg56.8%
sqrt-unprod29.2%
add-sqr-sqrt65.6%
Applied egg-rr65.6%
expm1-def65.5%
expm1-log1p65.5%
associate-/r*63.3%
Simplified63.3%
if -3.19999999999999987e89 < u < 3.2e22Initial program 71.0%
times-frac98.2%
Simplified98.2%
Taylor expanded in t1 around inf 71.2%
associate-*r/71.2%
neg-mul-171.2%
Simplified71.2%
Final simplification68.0%
(FPCore (u v t1) :precision binary64 (if (or (<= u -5.1e+88) (not (<= u 4.6e+22))) (* v (/ t1 (* u u))) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -5.1e+88) || !(u <= 4.6e+22)) {
tmp = v * (t1 / (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 <= (-5.1d+88)) .or. (.not. (u <= 4.6d+22))) then
tmp = v * (t1 / (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 <= -5.1e+88) || !(u <= 4.6e+22)) {
tmp = v * (t1 / (u * u));
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -5.1e+88) or not (u <= 4.6e+22): tmp = v * (t1 / (u * u)) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -5.1e+88) || !(u <= 4.6e+22)) tmp = Float64(v * Float64(t1 / 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 <= -5.1e+88) || ~((u <= 4.6e+22))) tmp = v * (t1 / (u * u)); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -5.1e+88], N[Not[LessEqual[u, 4.6e+22]], $MachinePrecision]], N[(v * N[(t1 / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -5.1 \cdot 10^{+88} \lor \neg \left(u \leq 4.6 \cdot 10^{+22}\right):\\
\;\;\;\;v \cdot \frac{t1}{u \cdot u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -5.0999999999999997e88 or 4.6000000000000004e22 < u Initial program 75.9%
associate-/l*76.5%
associate-/l*86.4%
Simplified86.4%
Taylor expanded in t1 around 0 75.0%
unpow275.0%
Simplified75.0%
add-sqr-sqrt40.7%
sqrt-unprod59.6%
sqr-neg59.6%
sqrt-unprod29.2%
add-sqr-sqrt65.5%
associate-/r/65.5%
Applied egg-rr65.5%
if -5.0999999999999997e88 < u < 4.6000000000000004e22Initial program 71.0%
times-frac98.2%
Simplified98.2%
Taylor expanded in t1 around inf 71.2%
associate-*r/71.2%
neg-mul-171.2%
Simplified71.2%
Final simplification68.9%
(FPCore (u v t1) :precision binary64 (/ (/ v (+ t1 u)) (- -1.0 (/ u t1))))
double code(double u, double v, double t1) {
return (v / (t1 + u)) / (-1.0 - (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)) / ((-1.0d0) - (u / t1))
end function
public static double code(double u, double v, double t1) {
return (v / (t1 + u)) / (-1.0 - (u / t1));
}
def code(u, v, t1): return (v / (t1 + u)) / (-1.0 - (u / t1))
function code(u, v, t1) return Float64(Float64(v / Float64(t1 + u)) / Float64(-1.0 - Float64(u / t1))) end
function tmp = code(u, v, t1) tmp = (v / (t1 + u)) / (-1.0 - (u / t1)); end
code[u_, v_, t1_] := N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[(-1.0 - N[(u / t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{v}{t1 + u}}{-1 - \frac{u}{t1}}
\end{array}
Initial program 73.1%
*-commutative73.1%
times-frac98.4%
neg-mul-198.4%
associate-/l*98.0%
associate-*r/98.1%
associate-/l*98.1%
associate-/l/98.1%
neg-mul-198.1%
*-lft-identity98.1%
metadata-eval98.1%
times-frac98.1%
neg-mul-198.1%
remove-double-neg98.1%
neg-mul-198.1%
sub0-neg98.1%
associate--r+98.1%
neg-sub098.1%
div-sub98.1%
distribute-frac-neg98.1%
*-inverses98.1%
metadata-eval98.1%
Simplified98.1%
Final simplification98.1%
(FPCore (u v t1) :precision binary64 (if (or (<= u -7.4e+184) (not (<= u 2.05e+189))) (/ v (+ t1 u)) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -7.4e+184) || !(u <= 2.05e+189)) {
tmp = v / (t1 + 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 <= (-7.4d+184)) .or. (.not. (u <= 2.05d+189))) then
tmp = v / (t1 + 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 <= -7.4e+184) || !(u <= 2.05e+189)) {
tmp = v / (t1 + u);
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -7.4e+184) or not (u <= 2.05e+189): tmp = v / (t1 + u) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -7.4e+184) || !(u <= 2.05e+189)) tmp = Float64(v / Float64(t1 + u)); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -7.4e+184) || ~((u <= 2.05e+189))) tmp = v / (t1 + u); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -7.4e+184], N[Not[LessEqual[u, 2.05e+189]], $MachinePrecision]], N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -7.4 \cdot 10^{+184} \lor \neg \left(u \leq 2.05 \cdot 10^{+189}\right):\\
\;\;\;\;\frac{v}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -7.3999999999999995e184 or 2.0500000000000001e189 < u Initial program 79.4%
times-frac99.9%
Simplified99.9%
associate-*r/100.0%
add-sqr-sqrt49.9%
sqrt-unprod70.0%
sqr-neg70.0%
sqrt-unprod38.7%
add-sqr-sqrt79.6%
frac-2neg79.6%
add-sqr-sqrt40.9%
sqrt-unprod70.0%
sqr-neg70.0%
sqrt-unprod49.9%
add-sqr-sqrt100.0%
distribute-neg-in100.0%
add-sqr-sqrt50.0%
sqrt-unprod94.2%
sqr-neg94.2%
sqrt-unprod47.7%
add-sqr-sqrt97.7%
sub-neg97.7%
Applied egg-rr97.7%
Taylor expanded in t1 around inf 50.4%
if -7.3999999999999995e184 < u < 2.0500000000000001e189Initial program 71.4%
times-frac98.0%
Simplified98.0%
Taylor expanded in t1 around inf 60.7%
associate-*r/60.7%
neg-mul-160.7%
Simplified60.7%
Final simplification58.6%
(FPCore (u v t1) :precision binary64 (if (or (<= u -6.6e+184) (not (<= u 1.18e+188))) (/ (- v) u) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -6.6e+184) || !(u <= 1.18e+188)) {
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 <= (-6.6d+184)) .or. (.not. (u <= 1.18d+188))) 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 <= -6.6e+184) || !(u <= 1.18e+188)) {
tmp = -v / u;
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -6.6e+184) or not (u <= 1.18e+188): tmp = -v / u else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -6.6e+184) || !(u <= 1.18e+188)) 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 <= -6.6e+184) || ~((u <= 1.18e+188))) tmp = -v / u; else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -6.6e+184], N[Not[LessEqual[u, 1.18e+188]], $MachinePrecision]], N[((-v) / u), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -6.6 \cdot 10^{+184} \lor \neg \left(u \leq 1.18 \cdot 10^{+188}\right):\\
\;\;\;\;\frac{-v}{u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -6.5999999999999996e184 or 1.18e188 < u Initial program 79.4%
times-frac99.9%
Simplified99.9%
Taylor expanded in t1 around 0 96.3%
mul-1-neg96.3%
Simplified96.3%
Taylor expanded in t1 around inf 49.0%
associate-*r/49.0%
neg-mul-149.0%
Simplified49.0%
if -6.5999999999999996e184 < u < 1.18e188Initial program 71.4%
times-frac98.0%
Simplified98.0%
Taylor expanded in t1 around inf 60.7%
associate-*r/60.7%
neg-mul-160.7%
Simplified60.7%
Final simplification58.3%
(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 73.1%
times-frac98.4%
Simplified98.4%
Taylor expanded in t1 around inf 61.6%
Final simplification61.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 73.1%
times-frac98.4%
Simplified98.4%
Taylor expanded in t1 around inf 52.8%
associate-*r/52.8%
neg-mul-152.8%
Simplified52.8%
Final simplification52.8%
(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 73.1%
times-frac98.4%
Simplified98.4%
associate-*r/98.2%
add-sqr-sqrt54.7%
sqrt-unprod46.0%
sqr-neg46.0%
sqrt-unprod17.1%
add-sqr-sqrt39.1%
frac-2neg39.1%
add-sqr-sqrt22.0%
sqrt-unprod44.5%
sqr-neg44.5%
sqrt-unprod43.1%
add-sqr-sqrt98.2%
distribute-neg-in98.2%
add-sqr-sqrt54.8%
sqrt-unprod71.4%
sqr-neg71.4%
sqrt-unprod26.7%
add-sqr-sqrt60.3%
sub-neg60.3%
Applied egg-rr60.3%
Taylor expanded in t1 around inf 15.4%
Final simplification15.4%
herbie shell --seed 2023260
(FPCore (u v t1)
:name "Rosa's DopplerBench"
:precision binary64
(/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))