
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t): return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) - (t / (1.0 - z))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t): return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) - (t / (1.0 - z))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}
(FPCore (x y z t) :precision binary64 (* x (+ (/ y z) (/ t (+ z -1.0)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) + (t / (z + -1.0)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * ((y / z) + (t / (z + (-1.0d0))))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) + (t / (z + -1.0)));
}
def code(x, y, z, t): return x * ((y / z) + (t / (z + -1.0)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) + Float64(t / Float64(z + -1.0)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) + (t / (z + -1.0))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] + N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} + \frac{t}{z + -1}\right)
\end{array}
Initial program 94.5%
Final simplification94.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (/ x (+ z -1.0)))))
(if (<= y -34000000000000.0)
(* y (/ x z))
(if (<= y 3e-80)
t_1
(if (<= y 9e-61)
(* x (/ y z))
(if (<= y 2.6e-25) t_1 (/ (* x y) z)))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (x / (z + -1.0));
double tmp;
if (y <= -34000000000000.0) {
tmp = y * (x / z);
} else if (y <= 3e-80) {
tmp = t_1;
} else if (y <= 9e-61) {
tmp = x * (y / z);
} else if (y <= 2.6e-25) {
tmp = t_1;
} else {
tmp = (x * y) / z;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * (x / (z + (-1.0d0)))
if (y <= (-34000000000000.0d0)) then
tmp = y * (x / z)
else if (y <= 3d-80) then
tmp = t_1
else if (y <= 9d-61) then
tmp = x * (y / z)
else if (y <= 2.6d-25) then
tmp = t_1
else
tmp = (x * y) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = t * (x / (z + -1.0));
double tmp;
if (y <= -34000000000000.0) {
tmp = y * (x / z);
} else if (y <= 3e-80) {
tmp = t_1;
} else if (y <= 9e-61) {
tmp = x * (y / z);
} else if (y <= 2.6e-25) {
tmp = t_1;
} else {
tmp = (x * y) / z;
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (x / (z + -1.0)) tmp = 0 if y <= -34000000000000.0: tmp = y * (x / z) elif y <= 3e-80: tmp = t_1 elif y <= 9e-61: tmp = x * (y / z) elif y <= 2.6e-25: tmp = t_1 else: tmp = (x * y) / z return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(x / Float64(z + -1.0))) tmp = 0.0 if (y <= -34000000000000.0) tmp = Float64(y * Float64(x / z)); elseif (y <= 3e-80) tmp = t_1; elseif (y <= 9e-61) tmp = Float64(x * Float64(y / z)); elseif (y <= 2.6e-25) tmp = t_1; else tmp = Float64(Float64(x * y) / z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (x / (z + -1.0)); tmp = 0.0; if (y <= -34000000000000.0) tmp = y * (x / z); elseif (y <= 3e-80) tmp = t_1; elseif (y <= 9e-61) tmp = x * (y / z); elseif (y <= 2.6e-25) tmp = t_1; else tmp = (x * y) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(x / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -34000000000000.0], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e-80], t$95$1, If[LessEqual[y, 9e-61], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-25], t$95$1, N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{x}{z + -1}\\
\mathbf{if}\;y \leq -34000000000000:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-61}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\end{array}
\end{array}
if y < -3.4e13Initial program 90.4%
Taylor expanded in y around inf 86.2%
mul-1-neg86.2%
distribute-neg-frac286.2%
distribute-rgt-neg-in86.2%
neg-sub086.2%
associate--r-86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in t around 0 80.6%
if -3.4e13 < y < 3.00000000000000007e-80 or 9e-61 < y < 2.6e-25Initial program 96.3%
Taylor expanded in y around 0 71.3%
mul-1-neg71.3%
associate-/l*69.9%
distribute-rgt-neg-in69.9%
distribute-neg-frac269.9%
neg-sub069.9%
associate--r-69.9%
metadata-eval69.9%
Simplified69.9%
if 3.00000000000000007e-80 < y < 9e-61Initial program 99.6%
Taylor expanded in y around inf 87.1%
associate-*r/87.1%
Simplified87.1%
if 2.6e-25 < y Initial program 94.0%
Taylor expanded in y around inf 83.6%
Final simplification76.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ t z))))
(if (<= t -5.6e+206)
t_1
(if (<= t -1.65e+140)
(* y (/ x z))
(if (or (<= t -2.7e+90) (not (<= t 4e+28))) t_1 (* x (/ y z)))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (t / z);
double tmp;
if (t <= -5.6e+206) {
tmp = t_1;
} else if (t <= -1.65e+140) {
tmp = y * (x / z);
} else if ((t <= -2.7e+90) || !(t <= 4e+28)) {
tmp = t_1;
} else {
tmp = x * (y / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * (t / z)
if (t <= (-5.6d+206)) then
tmp = t_1
else if (t <= (-1.65d+140)) then
tmp = y * (x / z)
else if ((t <= (-2.7d+90)) .or. (.not. (t <= 4d+28))) then
tmp = t_1
else
tmp = x * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (t / z);
double tmp;
if (t <= -5.6e+206) {
tmp = t_1;
} else if (t <= -1.65e+140) {
tmp = y * (x / z);
} else if ((t <= -2.7e+90) || !(t <= 4e+28)) {
tmp = t_1;
} else {
tmp = x * (y / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (t / z) tmp = 0 if t <= -5.6e+206: tmp = t_1 elif t <= -1.65e+140: tmp = y * (x / z) elif (t <= -2.7e+90) or not (t <= 4e+28): tmp = t_1 else: tmp = x * (y / z) return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(t / z)) tmp = 0.0 if (t <= -5.6e+206) tmp = t_1; elseif (t <= -1.65e+140) tmp = Float64(y * Float64(x / z)); elseif ((t <= -2.7e+90) || !(t <= 4e+28)) tmp = t_1; else tmp = Float64(x * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (t / z); tmp = 0.0; if (t <= -5.6e+206) tmp = t_1; elseif (t <= -1.65e+140) tmp = y * (x / z); elseif ((t <= -2.7e+90) || ~((t <= 4e+28))) tmp = t_1; else tmp = x * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.6e+206], t$95$1, If[LessEqual[t, -1.65e+140], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -2.7e+90], N[Not[LessEqual[t, 4e+28]], $MachinePrecision]], t$95$1, N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{t}{z}\\
\mathbf{if}\;t \leq -5.6 \cdot 10^{+206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{+140}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{+90} \lor \neg \left(t \leq 4 \cdot 10^{+28}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if t < -5.5999999999999996e206 or -1.6500000000000001e140 < t < -2.7e90 or 3.99999999999999983e28 < t Initial program 94.2%
Taylor expanded in y around 0 65.6%
mul-1-neg65.6%
*-commutative65.6%
associate-/l*73.4%
distribute-rgt-neg-out73.4%
distribute-neg-frac273.4%
neg-sub073.4%
associate--r-73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in z around inf 60.4%
if -5.5999999999999996e206 < t < -1.6500000000000001e140Initial program 95.0%
Taylor expanded in y around inf 61.5%
mul-1-neg61.5%
distribute-neg-frac261.5%
distribute-rgt-neg-in61.5%
neg-sub061.5%
associate--r-61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in t around 0 52.3%
if -2.7e90 < t < 3.99999999999999983e28Initial program 94.6%
Taylor expanded in y around inf 80.6%
associate-*r/83.4%
Simplified83.4%
Final simplification73.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ t z))))
(if (<= t -2.3e+206)
t_1
(if (<= t -1.2e+140)
(* y (/ x z))
(if (<= t -3.7e+90)
t_1
(if (<= t 2e+28) (* x (/ y z)) (/ x (/ z t))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (t / z);
double tmp;
if (t <= -2.3e+206) {
tmp = t_1;
} else if (t <= -1.2e+140) {
tmp = y * (x / z);
} else if (t <= -3.7e+90) {
tmp = t_1;
} else if (t <= 2e+28) {
tmp = x * (y / z);
} else {
tmp = x / (z / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * (t / z)
if (t <= (-2.3d+206)) then
tmp = t_1
else if (t <= (-1.2d+140)) then
tmp = y * (x / z)
else if (t <= (-3.7d+90)) then
tmp = t_1
else if (t <= 2d+28) then
tmp = x * (y / z)
else
tmp = x / (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (t / z);
double tmp;
if (t <= -2.3e+206) {
tmp = t_1;
} else if (t <= -1.2e+140) {
tmp = y * (x / z);
} else if (t <= -3.7e+90) {
tmp = t_1;
} else if (t <= 2e+28) {
tmp = x * (y / z);
} else {
tmp = x / (z / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (t / z) tmp = 0 if t <= -2.3e+206: tmp = t_1 elif t <= -1.2e+140: tmp = y * (x / z) elif t <= -3.7e+90: tmp = t_1 elif t <= 2e+28: tmp = x * (y / z) else: tmp = x / (z / t) return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(t / z)) tmp = 0.0 if (t <= -2.3e+206) tmp = t_1; elseif (t <= -1.2e+140) tmp = Float64(y * Float64(x / z)); elseif (t <= -3.7e+90) tmp = t_1; elseif (t <= 2e+28) tmp = Float64(x * Float64(y / z)); else tmp = Float64(x / Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (t / z); tmp = 0.0; if (t <= -2.3e+206) tmp = t_1; elseif (t <= -1.2e+140) tmp = y * (x / z); elseif (t <= -3.7e+90) tmp = t_1; elseif (t <= 2e+28) tmp = x * (y / z); else tmp = x / (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.3e+206], t$95$1, If[LessEqual[t, -1.2e+140], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.7e+90], t$95$1, If[LessEqual[t, 2e+28], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(x / N[(z / t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{t}{z}\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{+206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{+140}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+28}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{z}{t}}\\
\end{array}
\end{array}
if t < -2.30000000000000016e206 or -1.2e140 < t < -3.7e90Initial program 99.9%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
*-commutative71.2%
associate-/l*78.3%
distribute-rgt-neg-out78.3%
distribute-neg-frac278.3%
neg-sub078.3%
associate--r-78.3%
metadata-eval78.3%
Simplified78.3%
Taylor expanded in z around inf 67.4%
if -2.30000000000000016e206 < t < -1.2e140Initial program 95.0%
Taylor expanded in y around inf 61.5%
mul-1-neg61.5%
distribute-neg-frac261.5%
distribute-rgt-neg-in61.5%
neg-sub061.5%
associate--r-61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in t around 0 52.3%
if -3.7e90 < t < 1.99999999999999992e28Initial program 94.6%
Taylor expanded in y around inf 80.6%
associate-*r/83.4%
Simplified83.4%
if 1.99999999999999992e28 < t Initial program 91.6%
Taylor expanded in y around 0 62.9%
mul-1-neg62.9%
*-commutative62.9%
associate-/l*71.1%
distribute-rgt-neg-out71.1%
distribute-neg-frac271.1%
neg-sub071.1%
associate--r-71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in z around inf 57.1%
clear-num57.1%
un-div-inv57.1%
Applied egg-rr57.1%
Final simplification73.5%
(FPCore (x y z t) :precision binary64 (if (or (<= t -2.2e+50) (not (<= t 3.8e+28))) (* x (/ t (+ z -1.0))) (* x (/ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -2.2e+50) || !(t <= 3.8e+28)) {
tmp = x * (t / (z + -1.0));
} else {
tmp = x * (y / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((t <= (-2.2d+50)) .or. (.not. (t <= 3.8d+28))) then
tmp = x * (t / (z + (-1.0d0)))
else
tmp = x * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -2.2e+50) || !(t <= 3.8e+28)) {
tmp = x * (t / (z + -1.0));
} else {
tmp = x * (y / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -2.2e+50) or not (t <= 3.8e+28): tmp = x * (t / (z + -1.0)) else: tmp = x * (y / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -2.2e+50) || !(t <= 3.8e+28)) tmp = Float64(x * Float64(t / Float64(z + -1.0))); else tmp = Float64(x * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -2.2e+50) || ~((t <= 3.8e+28))) tmp = x * (t / (z + -1.0)); else tmp = x * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -2.2e+50], N[Not[LessEqual[t, 3.8e+28]], $MachinePrecision]], N[(x * N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+50} \lor \neg \left(t \leq 3.8 \cdot 10^{+28}\right):\\
\;\;\;\;x \cdot \frac{t}{z + -1}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if t < -2.20000000000000017e50 or 3.7999999999999999e28 < t Initial program 94.7%
Taylor expanded in y around 0 63.5%
mul-1-neg63.5%
*-commutative63.5%
associate-/l*70.3%
distribute-rgt-neg-out70.3%
distribute-neg-frac270.3%
neg-sub070.3%
associate--r-70.3%
metadata-eval70.3%
Simplified70.3%
if -2.20000000000000017e50 < t < 3.7999999999999999e28Initial program 94.3%
Taylor expanded in y around inf 82.3%
associate-*r/85.3%
Simplified85.3%
Final simplification78.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.05) (not (<= z 1.0))) (* (+ y t) (/ x z)) (* x (- (/ y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.05) || !(z <= 1.0)) {
tmp = (y + t) * (x / z);
} else {
tmp = x * ((y / z) - t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-1.05d0)) .or. (.not. (z <= 1.0d0))) then
tmp = (y + t) * (x / z)
else
tmp = x * ((y / z) - t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.05) || !(z <= 1.0)) {
tmp = (y + t) * (x / z);
} else {
tmp = x * ((y / z) - t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.05) or not (z <= 1.0): tmp = (y + t) * (x / z) else: tmp = x * ((y / z) - t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.05) || !(z <= 1.0)) tmp = Float64(Float64(y + t) * Float64(x / z)); else tmp = Float64(x * Float64(Float64(y / z) - t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.05) || ~((z <= 1.0))) tmp = (y + t) * (x / z); else tmp = x * ((y / z) - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.05], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(N[(y + t), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\end{array}
\end{array}
if z < -1.05000000000000004 or 1 < z Initial program 96.4%
Taylor expanded in z around inf 86.1%
*-commutative86.1%
associate-/l*82.8%
cancel-sign-sub-inv82.8%
metadata-eval82.8%
*-lft-identity82.8%
+-commutative82.8%
Simplified82.8%
if -1.05000000000000004 < z < 1Initial program 92.6%
Taylor expanded in z around 0 91.5%
Final simplification87.2%
(FPCore (x y z t) :precision binary64 (if (<= z -2.6e+128) (* x (/ y z)) (if (<= z 1.6e+19) (* x (- (/ y z) t)) (/ x (/ z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.6e+128) {
tmp = x * (y / z);
} else if (z <= 1.6e+19) {
tmp = x * ((y / z) - t);
} else {
tmp = x / (z / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-2.6d+128)) then
tmp = x * (y / z)
else if (z <= 1.6d+19) then
tmp = x * ((y / z) - t)
else
tmp = x / (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.6e+128) {
tmp = x * (y / z);
} else if (z <= 1.6e+19) {
tmp = x * ((y / z) - t);
} else {
tmp = x / (z / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.6e+128: tmp = x * (y / z) elif z <= 1.6e+19: tmp = x * ((y / z) - t) else: tmp = x / (z / t) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.6e+128) tmp = Float64(x * Float64(y / z)); elseif (z <= 1.6e+19) tmp = Float64(x * Float64(Float64(y / z) - t)); else tmp = Float64(x / Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.6e+128) tmp = x * (y / z); elseif (z <= 1.6e+19) tmp = x * ((y / z) - t); else tmp = x / (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.6e+128], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+19], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], N[(x / N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+128}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+19}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{z}{t}}\\
\end{array}
\end{array}
if z < -2.6e128Initial program 97.0%
Taylor expanded in y around inf 49.1%
associate-*r/61.8%
Simplified61.8%
if -2.6e128 < z < 1.6e19Initial program 93.9%
Taylor expanded in z around 0 87.3%
if 1.6e19 < z Initial program 94.6%
Taylor expanded in y around 0 61.2%
mul-1-neg61.2%
*-commutative61.2%
associate-/l*65.4%
distribute-rgt-neg-out65.4%
distribute-neg-frac265.4%
neg-sub065.4%
associate--r-65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in z around inf 65.4%
clear-num65.4%
un-div-inv65.5%
Applied egg-rr65.5%
Final simplification78.5%
(FPCore (x y z t) :precision binary64 (if (<= z -0.88) (/ (* x (+ y t)) z) (if (<= z 1.0) (* x (- (/ y z) t)) (* (+ y t) (/ x z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -0.88) {
tmp = (x * (y + t)) / z;
} else if (z <= 1.0) {
tmp = x * ((y / z) - t);
} else {
tmp = (y + t) * (x / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-0.88d0)) then
tmp = (x * (y + t)) / z
else if (z <= 1.0d0) then
tmp = x * ((y / z) - t)
else
tmp = (y + t) * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -0.88) {
tmp = (x * (y + t)) / z;
} else if (z <= 1.0) {
tmp = x * ((y / z) - t);
} else {
tmp = (y + t) * (x / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -0.88: tmp = (x * (y + t)) / z elif z <= 1.0: tmp = x * ((y / z) - t) else: tmp = (y + t) * (x / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -0.88) tmp = Float64(Float64(x * Float64(y + t)) / z); elseif (z <= 1.0) tmp = Float64(x * Float64(Float64(y / z) - t)); else tmp = Float64(Float64(y + t) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -0.88) tmp = (x * (y + t)) / z; elseif (z <= 1.0) tmp = x * ((y / z) - t); else tmp = (y + t) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -0.88], N[(N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 1.0], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], N[(N[(y + t), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.88:\\
\;\;\;\;\frac{x \cdot \left(y + t\right)}{z}\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -0.880000000000000004Initial program 98.0%
clear-num97.9%
frac-sub57.9%
*-un-lft-identity57.9%
Applied egg-rr57.9%
div-sub57.9%
times-frac64.6%
*-inverses86.7%
*-lft-identity86.7%
remove-double-neg86.7%
distribute-frac-neg86.7%
*-rgt-identity86.7%
distribute-lft-neg-in86.7%
cancel-sign-sub86.7%
*-commutative86.7%
associate-/r*97.9%
*-inverses97.9%
*-rgt-identity97.9%
distribute-frac-neg97.9%
distribute-neg-frac297.9%
neg-sub097.9%
associate--r-97.9%
metadata-eval97.9%
Simplified97.9%
Taylor expanded in z around inf 83.5%
if -0.880000000000000004 < z < 1Initial program 92.6%
Taylor expanded in z around 0 91.5%
if 1 < z Initial program 95.0%
Taylor expanded in z around inf 88.4%
*-commutative88.4%
associate-/l*89.3%
cancel-sign-sub-inv89.3%
metadata-eval89.3%
*-lft-identity89.3%
+-commutative89.3%
Simplified89.3%
Final simplification89.1%
(FPCore (x y z t) :precision binary64 (if (<= z -1.06) (/ 1.0 (/ z (* x (+ y t)))) (if (<= z 1.0) (* x (- (/ y z) t)) (* (+ y t) (/ x z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.06) {
tmp = 1.0 / (z / (x * (y + t)));
} else if (z <= 1.0) {
tmp = x * ((y / z) - t);
} else {
tmp = (y + t) * (x / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-1.06d0)) then
tmp = 1.0d0 / (z / (x * (y + t)))
else if (z <= 1.0d0) then
tmp = x * ((y / z) - t)
else
tmp = (y + t) * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.06) {
tmp = 1.0 / (z / (x * (y + t)));
} else if (z <= 1.0) {
tmp = x * ((y / z) - t);
} else {
tmp = (y + t) * (x / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.06: tmp = 1.0 / (z / (x * (y + t))) elif z <= 1.0: tmp = x * ((y / z) - t) else: tmp = (y + t) * (x / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.06) tmp = Float64(1.0 / Float64(z / Float64(x * Float64(y + t)))); elseif (z <= 1.0) tmp = Float64(x * Float64(Float64(y / z) - t)); else tmp = Float64(Float64(y + t) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.06) tmp = 1.0 / (z / (x * (y + t))); elseif (z <= 1.0) tmp = x * ((y / z) - t); else tmp = (y + t) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.06], N[(1.0 / N[(z / N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.0], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], N[(N[(y + t), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.06:\\
\;\;\;\;\frac{1}{\frac{z}{x \cdot \left(y + t\right)}}\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -1.0600000000000001Initial program 98.0%
Taylor expanded in z around inf 83.5%
*-commutative83.5%
associate-/l*75.3%
cancel-sign-sub-inv75.3%
metadata-eval75.3%
*-lft-identity75.3%
+-commutative75.3%
Simplified75.3%
associate-*r/83.5%
clear-num83.5%
*-commutative83.5%
+-commutative83.5%
Applied egg-rr83.5%
if -1.0600000000000001 < z < 1Initial program 92.6%
Taylor expanded in z around 0 91.5%
if 1 < z Initial program 95.0%
Taylor expanded in z around inf 88.4%
*-commutative88.4%
associate-/l*89.3%
cancel-sign-sub-inv89.3%
metadata-eval89.3%
*-lft-identity89.3%
+-commutative89.3%
Simplified89.3%
Final simplification89.1%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.0) (not (<= z 1.0))) (* t (/ x z)) (* x (- t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
tmp = t * (x / z);
} else {
tmp = x * -t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-1.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = t * (x / z)
else
tmp = x * -t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
tmp = t * (x / z);
} else {
tmp = x * -t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.0) or not (z <= 1.0): tmp = t * (x / z) else: tmp = x * -t return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.0) || !(z <= 1.0)) tmp = Float64(t * Float64(x / z)); else tmp = Float64(x * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.0) || ~((z <= 1.0))) tmp = t * (x / z); else tmp = x * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * (-t)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\end{array}
\end{array}
if z < -1 or 1 < z Initial program 96.4%
Taylor expanded in y around 0 53.6%
mul-1-neg53.6%
*-commutative53.6%
associate-/l*57.8%
distribute-rgt-neg-out57.8%
distribute-neg-frac257.8%
neg-sub057.8%
associate--r-57.8%
metadata-eval57.8%
Simplified57.8%
Taylor expanded in z around inf 52.7%
associate-/l*49.3%
Simplified49.3%
if -1 < z < 1Initial program 92.6%
Taylor expanded in y around 0 33.5%
mul-1-neg33.5%
*-commutative33.5%
associate-/l*33.5%
distribute-rgt-neg-out33.5%
distribute-neg-frac233.5%
neg-sub033.5%
associate--r-33.5%
metadata-eval33.5%
Simplified33.5%
Taylor expanded in z around 0 32.4%
neg-mul-132.4%
Simplified32.4%
Final simplification40.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.0) (not (<= z 1.0))) (* x (/ t z)) (* x (- t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
tmp = x * (t / z);
} else {
tmp = x * -t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-1.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = x * (t / z)
else
tmp = x * -t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
tmp = x * (t / z);
} else {
tmp = x * -t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.0) or not (z <= 1.0): tmp = x * (t / z) else: tmp = x * -t return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.0) || !(z <= 1.0)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(x * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.0) || ~((z <= 1.0))) tmp = x * (t / z); else tmp = x * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(x * (-t)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\end{array}
\end{array}
if z < -1 or 1 < z Initial program 96.4%
Taylor expanded in y around 0 53.6%
mul-1-neg53.6%
*-commutative53.6%
associate-/l*57.8%
distribute-rgt-neg-out57.8%
distribute-neg-frac257.8%
neg-sub057.8%
associate--r-57.8%
metadata-eval57.8%
Simplified57.8%
Taylor expanded in z around inf 57.0%
if -1 < z < 1Initial program 92.6%
Taylor expanded in y around 0 33.5%
mul-1-neg33.5%
*-commutative33.5%
associate-/l*33.5%
distribute-rgt-neg-out33.5%
distribute-neg-frac233.5%
neg-sub033.5%
associate--r-33.5%
metadata-eval33.5%
Simplified33.5%
Taylor expanded in z around 0 32.4%
neg-mul-132.4%
Simplified32.4%
Final simplification44.5%
(FPCore (x y z t) :precision binary64 (if (or (<= t -7.2e+89) (not (<= t 1.5e+28))) (* x (/ t z)) (* x (/ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -7.2e+89) || !(t <= 1.5e+28)) {
tmp = x * (t / z);
} else {
tmp = x * (y / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((t <= (-7.2d+89)) .or. (.not. (t <= 1.5d+28))) then
tmp = x * (t / z)
else
tmp = x * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -7.2e+89) || !(t <= 1.5e+28)) {
tmp = x * (t / z);
} else {
tmp = x * (y / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -7.2e+89) or not (t <= 1.5e+28): tmp = x * (t / z) else: tmp = x * (y / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -7.2e+89) || !(t <= 1.5e+28)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(x * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -7.2e+89) || ~((t <= 1.5e+28))) tmp = x * (t / z); else tmp = x * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -7.2e+89], N[Not[LessEqual[t, 1.5e+28]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+89} \lor \neg \left(t \leq 1.5 \cdot 10^{+28}\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if t < -7.2e89 or 1.5e28 < t Initial program 94.4%
Taylor expanded in y around 0 63.8%
mul-1-neg63.8%
*-commutative63.8%
associate-/l*71.1%
distribute-rgt-neg-out71.1%
distribute-neg-frac271.1%
neg-sub071.1%
associate--r-71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in z around inf 54.7%
if -7.2e89 < t < 1.5e28Initial program 94.6%
Taylor expanded in y around inf 80.6%
associate-*r/83.4%
Simplified83.4%
Final simplification71.8%
(FPCore (x y z t) :precision binary64 (* x (- t)))
double code(double x, double y, double z, double t) {
return x * -t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * -t
end function
public static double code(double x, double y, double z, double t) {
return x * -t;
}
def code(x, y, z, t): return x * -t
function code(x, y, z, t) return Float64(x * Float64(-t)) end
function tmp = code(x, y, z, t) tmp = x * -t; end
code[x_, y_, z_, t_] := N[(x * (-t)), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(-t\right)
\end{array}
Initial program 94.5%
Taylor expanded in y around 0 43.4%
mul-1-neg43.4%
*-commutative43.4%
associate-/l*45.5%
distribute-rgt-neg-out45.5%
distribute-neg-frac245.5%
neg-sub045.5%
associate--r-45.5%
metadata-eval45.5%
Simplified45.5%
Taylor expanded in z around 0 21.9%
neg-mul-121.9%
Simplified21.9%
Final simplification21.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))))
(t_2 (* x (- (/ y z) (/ t (- 1.0 z))))))
(if (< t_2 -7.623226303312042e-196)
t_1
(if (< t_2 1.4133944927702302e-211)
(+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z))))
t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
double t_2 = x * ((y / z) - (t / (1.0 - z)));
double tmp;
if (t_2 < -7.623226303312042e-196) {
tmp = t_1;
} else if (t_2 < 1.4133944927702302e-211) {
tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y / z) - (t * (1.0d0 / (1.0d0 - z))))
t_2 = x * ((y / z) - (t / (1.0d0 - z)))
if (t_2 < (-7.623226303312042d-196)) then
tmp = t_1
else if (t_2 < 1.4133944927702302d-211) then
tmp = ((y * x) / z) + -((t * x) / (1.0d0 - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
double t_2 = x * ((y / z) - (t / (1.0 - z)));
double tmp;
if (t_2 < -7.623226303312042e-196) {
tmp = t_1;
} else if (t_2 < 1.4133944927702302e-211) {
tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z)))) t_2 = x * ((y / z) - (t / (1.0 - z))) tmp = 0 if t_2 < -7.623226303312042e-196: tmp = t_1 elif t_2 < 1.4133944927702302e-211: tmp = ((y * x) / z) + -((t * x) / (1.0 - z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(Float64(y / z) - Float64(t * Float64(1.0 / Float64(1.0 - z))))) t_2 = Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) tmp = 0.0 if (t_2 < -7.623226303312042e-196) tmp = t_1; elseif (t_2 < 1.4133944927702302e-211) tmp = Float64(Float64(Float64(y * x) / z) + Float64(-Float64(Float64(t * x) / Float64(1.0 - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z)))); t_2 = x * ((y / z) - (t / (1.0 - z))); tmp = 0.0; if (t_2 < -7.623226303312042e-196) tmp = t_1; elseif (t_2 < 1.4133944927702302e-211) tmp = ((y * x) / z) + -((t * x) / (1.0 - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t * N[(1.0 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -7.623226303312042e-196], t$95$1, If[Less[t$95$2, 1.4133944927702302e-211], N[(N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision] + (-N[(N[(t * x), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\
t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\
\mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\
\;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024067
(FPCore (x y z t)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< (* x (- (/ y z) (/ t (- 1.0 z)))) -7.623226303312042e-196) (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))) (if (< (* x (- (/ y z) (/ t (- 1.0 z)))) 1.4133944927702302e-211) (+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z)))) (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z)))))))
(* x (- (/ y z) (/ t (- 1.0 z)))))