
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - 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 - z)
end function
public static double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
def code(x, y, z, t): return (x * (y - z)) / (t - z)
function code(x, y, z, t) return Float64(Float64(x * Float64(y - z)) / Float64(t - z)) end
function tmp = code(x, y, z, t) tmp = (x * (y - z)) / (t - z); end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{t - z}
\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 z)))
double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - 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 - z)
end function
public static double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
def code(x, y, z, t): return (x * (y - z)) / (t - z)
function code(x, y, z, t) return Float64(Float64(x * Float64(y - z)) / Float64(t - z)) end
function tmp = code(x, y, z, t) tmp = (x * (y - z)) / (t - z); end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}
(FPCore (x y z t) :precision binary64 (/ x (/ (- t z) (- y z))))
double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - 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 / ((t - z) / (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
def code(x, y, z, t): return x / ((t - z) / (y - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(t - z) / Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x / ((t - z) / (y - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{t - z}{y - z}}
\end{array}
Initial program 83.2%
associate-/l*96.4%
Simplified96.4%
clear-num96.3%
un-div-inv96.7%
Applied egg-rr96.7%
Final simplification96.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ (- y z) t))))
(if (<= t -6.2e-66)
t_1
(if (<= t 2.15e-17)
(* x (- 1.0 (/ y z)))
(if (or (<= t 3.2e+81) (not (<= t 9.4e+162)))
t_1
(* x (/ z (- z t))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * ((y - z) / t);
double tmp;
if (t <= -6.2e-66) {
tmp = t_1;
} else if (t <= 2.15e-17) {
tmp = x * (1.0 - (y / z));
} else if ((t <= 3.2e+81) || !(t <= 9.4e+162)) {
tmp = t_1;
} else {
tmp = x * (z / (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 * ((y - z) / t)
if (t <= (-6.2d-66)) then
tmp = t_1
else if (t <= 2.15d-17) then
tmp = x * (1.0d0 - (y / z))
else if ((t <= 3.2d+81) .or. (.not. (t <= 9.4d+162))) then
tmp = t_1
else
tmp = x * (z / (z - t))
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);
double tmp;
if (t <= -6.2e-66) {
tmp = t_1;
} else if (t <= 2.15e-17) {
tmp = x * (1.0 - (y / z));
} else if ((t <= 3.2e+81) || !(t <= 9.4e+162)) {
tmp = t_1;
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): t_1 = x * ((y - z) / t) tmp = 0 if t <= -6.2e-66: tmp = t_1 elif t <= 2.15e-17: tmp = x * (1.0 - (y / z)) elif (t <= 3.2e+81) or not (t <= 9.4e+162): tmp = t_1 else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(Float64(y - z) / t)) tmp = 0.0 if (t <= -6.2e-66) tmp = t_1; elseif (t <= 2.15e-17) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif ((t <= 3.2e+81) || !(t <= 9.4e+162)) tmp = t_1; else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * ((y - z) / t); tmp = 0.0; if (t <= -6.2e-66) tmp = t_1; elseif (t <= 2.15e-17) tmp = x * (1.0 - (y / z)); elseif ((t <= 3.2e+81) || ~((t <= 9.4e+162))) tmp = t_1; else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e-66], t$95$1, If[LessEqual[t, 2.15e-17], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 3.2e+81], N[Not[LessEqual[t, 9.4e+162]], $MachinePrecision]], t$95$1, N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y - z}{t}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-17}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+81} \lor \neg \left(t \leq 9.4 \cdot 10^{+162}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if t < -6.1999999999999995e-66 or 2.15000000000000012e-17 < t < 3.2e81 or 9.40000000000000006e162 < t Initial program 86.2%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in t around inf 73.3%
associate-/l*78.2%
Simplified78.2%
if -6.1999999999999995e-66 < t < 2.15000000000000012e-17Initial program 79.7%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t around 0 64.7%
mul-1-neg64.7%
associate-/l*81.1%
distribute-rgt-neg-in81.1%
distribute-frac-neg81.1%
neg-sub081.1%
associate--r-81.1%
neg-sub081.1%
+-commutative81.1%
sub-neg81.1%
div-sub81.2%
*-inverses81.2%
Simplified81.2%
if 3.2e81 < t < 9.40000000000000006e162Initial program 81.2%
associate-/l*93.5%
Simplified93.5%
Taylor expanded in y around 0 49.3%
mul-1-neg49.3%
distribute-neg-frac249.3%
neg-sub049.3%
associate--r-49.3%
neg-sub049.3%
+-commutative49.3%
sub-neg49.3%
associate-/l*68.0%
Simplified68.0%
Final simplification78.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y z)))))
(if (<= z -1.28e+54)
t_1
(if (<= z -1.56)
(/ (* x (- z)) t)
(if (<= z -6.6e-35)
(/ (* x (- y)) z)
(if (<= z 10.5) (/ x (/ t y)) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - (y / z));
double tmp;
if (z <= -1.28e+54) {
tmp = t_1;
} else if (z <= -1.56) {
tmp = (x * -z) / t;
} else if (z <= -6.6e-35) {
tmp = (x * -y) / z;
} else if (z <= 10.5) {
tmp = x / (t / y);
} 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) :: tmp
t_1 = x * (1.0d0 - (y / z))
if (z <= (-1.28d+54)) then
tmp = t_1
else if (z <= (-1.56d0)) then
tmp = (x * -z) / t
else if (z <= (-6.6d-35)) then
tmp = (x * -y) / z
else if (z <= 10.5d0) then
tmp = x / (t / y)
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 * (1.0 - (y / z));
double tmp;
if (z <= -1.28e+54) {
tmp = t_1;
} else if (z <= -1.56) {
tmp = (x * -z) / t;
} else if (z <= -6.6e-35) {
tmp = (x * -y) / z;
} else if (z <= 10.5) {
tmp = x / (t / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - (y / z)) tmp = 0 if z <= -1.28e+54: tmp = t_1 elif z <= -1.56: tmp = (x * -z) / t elif z <= -6.6e-35: tmp = (x * -y) / z elif z <= 10.5: tmp = x / (t / y) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (z <= -1.28e+54) tmp = t_1; elseif (z <= -1.56) tmp = Float64(Float64(x * Float64(-z)) / t); elseif (z <= -6.6e-35) tmp = Float64(Float64(x * Float64(-y)) / z); elseif (z <= 10.5) tmp = Float64(x / Float64(t / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - (y / z)); tmp = 0.0; if (z <= -1.28e+54) tmp = t_1; elseif (z <= -1.56) tmp = (x * -z) / t; elseif (z <= -6.6e-35) tmp = (x * -y) / z; elseif (z <= 10.5) tmp = x / (t / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.28e+54], t$95$1, If[LessEqual[z, -1.56], N[(N[(x * (-z)), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, -6.6e-35], N[(N[(x * (-y)), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 10.5], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;z \leq -1.28 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.56:\\
\;\;\;\;\frac{x \cdot \left(-z\right)}{t}\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-35}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{z}\\
\mathbf{elif}\;z \leq 10.5:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.28e54 or 10.5 < z Initial program 74.5%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in t around 0 56.9%
mul-1-neg56.9%
associate-/l*79.8%
distribute-rgt-neg-in79.8%
distribute-frac-neg79.8%
neg-sub079.8%
associate--r-79.8%
neg-sub079.8%
+-commutative79.8%
sub-neg79.8%
div-sub79.8%
*-inverses79.8%
Simplified79.8%
if -1.28e54 < z < -1.5600000000000001Initial program 99.9%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in t around inf 77.4%
associate-/l*77.1%
Simplified77.1%
Taylor expanded in y around 0 63.2%
associate-*r/63.2%
associate-*r*63.2%
neg-mul-163.2%
Simplified63.2%
if -1.5600000000000001 < z < -6.6000000000000001e-35Initial program 100.0%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 75.2%
mul-1-neg75.2%
associate-/l*74.9%
distribute-rgt-neg-in74.9%
distribute-frac-neg74.9%
neg-sub074.9%
associate--r-74.9%
neg-sub074.9%
+-commutative74.9%
sub-neg74.9%
div-sub74.9%
*-inverses74.9%
Simplified74.9%
Taylor expanded in y around inf 75.2%
associate-*r/75.2%
mul-1-neg75.2%
distribute-rgt-neg-out75.2%
Simplified75.2%
if -6.6000000000000001e-35 < z < 10.5Initial program 89.4%
associate-/l*92.5%
Simplified92.5%
clear-num92.5%
un-div-inv93.3%
Applied egg-rr93.3%
Taylor expanded in z around 0 69.5%
Final simplification74.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ (- y z) t))))
(if (<= t -6.2e-66)
t_1
(if (<= t 2.7e-15)
(* x (- 1.0 (/ y z)))
(if (<= t 4.5e+83)
(* y (/ x (- t z)))
(if (<= t 5.1e+163) (* x (/ z (- z t))) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x * ((y - z) / t);
double tmp;
if (t <= -6.2e-66) {
tmp = t_1;
} else if (t <= 2.7e-15) {
tmp = x * (1.0 - (y / z));
} else if (t <= 4.5e+83) {
tmp = y * (x / (t - z));
} else if (t <= 5.1e+163) {
tmp = x * (z / (z - t));
} 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) :: tmp
t_1 = x * ((y - z) / t)
if (t <= (-6.2d-66)) then
tmp = t_1
else if (t <= 2.7d-15) then
tmp = x * (1.0d0 - (y / z))
else if (t <= 4.5d+83) then
tmp = y * (x / (t - z))
else if (t <= 5.1d+163) then
tmp = x * (z / (z - t))
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);
double tmp;
if (t <= -6.2e-66) {
tmp = t_1;
} else if (t <= 2.7e-15) {
tmp = x * (1.0 - (y / z));
} else if (t <= 4.5e+83) {
tmp = y * (x / (t - z));
} else if (t <= 5.1e+163) {
tmp = x * (z / (z - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * ((y - z) / t) tmp = 0 if t <= -6.2e-66: tmp = t_1 elif t <= 2.7e-15: tmp = x * (1.0 - (y / z)) elif t <= 4.5e+83: tmp = y * (x / (t - z)) elif t <= 5.1e+163: tmp = x * (z / (z - t)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(Float64(y - z) / t)) tmp = 0.0 if (t <= -6.2e-66) tmp = t_1; elseif (t <= 2.7e-15) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (t <= 4.5e+83) tmp = Float64(y * Float64(x / Float64(t - z))); elseif (t <= 5.1e+163) tmp = Float64(x * Float64(z / Float64(z - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * ((y - z) / t); tmp = 0.0; if (t <= -6.2e-66) tmp = t_1; elseif (t <= 2.7e-15) tmp = x * (1.0 - (y / z)); elseif (t <= 4.5e+83) tmp = y * (x / (t - z)); elseif (t <= 5.1e+163) tmp = x * (z / (z - t)); 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] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e-66], t$95$1, If[LessEqual[t, 2.7e-15], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e+83], N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e+163], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y - z}{t}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+83}:\\
\;\;\;\;y \cdot \frac{x}{t - z}\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+163}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.1999999999999995e-66 or 5.1000000000000002e163 < t Initial program 85.0%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in t around inf 73.4%
associate-/l*78.3%
Simplified78.3%
if -6.1999999999999995e-66 < t < 2.70000000000000009e-15Initial program 79.7%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t around 0 64.7%
mul-1-neg64.7%
associate-/l*81.1%
distribute-rgt-neg-in81.1%
distribute-frac-neg81.1%
neg-sub081.1%
associate--r-81.1%
neg-sub081.1%
+-commutative81.1%
sub-neg81.1%
div-sub81.2%
*-inverses81.2%
Simplified81.2%
if 2.70000000000000009e-15 < t < 4.4999999999999999e83Initial program 95.0%
associate-/l*99.4%
Simplified99.4%
clear-num99.6%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 80.2%
associate-*l/82.3%
*-commutative82.3%
Simplified82.3%
if 4.4999999999999999e83 < t < 5.1000000000000002e163Initial program 78.3%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in y around 0 48.7%
mul-1-neg48.7%
distribute-neg-frac248.7%
neg-sub048.7%
associate--r-48.7%
neg-sub048.7%
+-commutative48.7%
sub-neg48.7%
associate-/l*70.3%
Simplified70.3%
Final simplification79.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (/ t (- y z)))))
(if (<= t -4.8e-67)
t_1
(if (<= t 4.8e-15)
(* x (- 1.0 (/ y z)))
(if (<= t 5.5e+83)
(* y (/ x (- t z)))
(if (<= t 1.92e+161) (* x (/ z (- z t))) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x / (t / (y - z));
double tmp;
if (t <= -4.8e-67) {
tmp = t_1;
} else if (t <= 4.8e-15) {
tmp = x * (1.0 - (y / z));
} else if (t <= 5.5e+83) {
tmp = y * (x / (t - z));
} else if (t <= 1.92e+161) {
tmp = x * (z / (z - t));
} 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) :: tmp
t_1 = x / (t / (y - z))
if (t <= (-4.8d-67)) then
tmp = t_1
else if (t <= 4.8d-15) then
tmp = x * (1.0d0 - (y / z))
else if (t <= 5.5d+83) then
tmp = y * (x / (t - z))
else if (t <= 1.92d+161) then
tmp = x * (z / (z - t))
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 / (t / (y - z));
double tmp;
if (t <= -4.8e-67) {
tmp = t_1;
} else if (t <= 4.8e-15) {
tmp = x * (1.0 - (y / z));
} else if (t <= 5.5e+83) {
tmp = y * (x / (t - z));
} else if (t <= 1.92e+161) {
tmp = x * (z / (z - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x / (t / (y - z)) tmp = 0 if t <= -4.8e-67: tmp = t_1 elif t <= 4.8e-15: tmp = x * (1.0 - (y / z)) elif t <= 5.5e+83: tmp = y * (x / (t - z)) elif t <= 1.92e+161: tmp = x * (z / (z - t)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(t / Float64(y - z))) tmp = 0.0 if (t <= -4.8e-67) tmp = t_1; elseif (t <= 4.8e-15) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (t <= 5.5e+83) tmp = Float64(y * Float64(x / Float64(t - z))); elseif (t <= 1.92e+161) tmp = Float64(x * Float64(z / Float64(z - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / (t / (y - z)); tmp = 0.0; if (t <= -4.8e-67) tmp = t_1; elseif (t <= 4.8e-15) tmp = x * (1.0 - (y / z)); elseif (t <= 5.5e+83) tmp = y * (x / (t - z)); elseif (t <= 1.92e+161) tmp = x * (z / (z - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e-67], t$95$1, If[LessEqual[t, 4.8e-15], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+83], N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.92e+161], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{t}{y - z}}\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+83}:\\
\;\;\;\;y \cdot \frac{x}{t - z}\\
\mathbf{elif}\;t \leq 1.92 \cdot 10^{+161}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.8e-67 or 1.9200000000000001e161 < t Initial program 85.0%
associate-/l*96.4%
Simplified96.4%
clear-num96.3%
un-div-inv96.4%
Applied egg-rr96.4%
Taylor expanded in t around inf 78.4%
if -4.8e-67 < t < 4.7999999999999999e-15Initial program 79.7%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t around 0 64.7%
mul-1-neg64.7%
associate-/l*81.1%
distribute-rgt-neg-in81.1%
distribute-frac-neg81.1%
neg-sub081.1%
associate--r-81.1%
neg-sub081.1%
+-commutative81.1%
sub-neg81.1%
div-sub81.2%
*-inverses81.2%
Simplified81.2%
if 4.7999999999999999e-15 < t < 5.4999999999999996e83Initial program 95.0%
associate-/l*99.4%
Simplified99.4%
clear-num99.6%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 80.2%
associate-*l/82.3%
*-commutative82.3%
Simplified82.3%
if 5.4999999999999996e83 < t < 1.9200000000000001e161Initial program 78.3%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in y around 0 48.7%
mul-1-neg48.7%
distribute-neg-frac248.7%
neg-sub048.7%
associate--r-48.7%
neg-sub048.7%
+-commutative48.7%
sub-neg48.7%
associate-/l*70.3%
Simplified70.3%
Final simplification79.4%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.15e+117)
x
(if (<= z -2.05e-11)
(* x (/ (- z) t))
(if (<= z -1e-53) (* x (/ y (- z))) (if (<= z 3.6e-7) (/ x (/ t y)) x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.15e+117) {
tmp = x;
} else if (z <= -2.05e-11) {
tmp = x * (-z / t);
} else if (z <= -1e-53) {
tmp = x * (y / -z);
} else if (z <= 3.6e-7) {
tmp = x / (t / y);
} else {
tmp = x;
}
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.15d+117)) then
tmp = x
else if (z <= (-2.05d-11)) then
tmp = x * (-z / t)
else if (z <= (-1d-53)) then
tmp = x * (y / -z)
else if (z <= 3.6d-7) then
tmp = x / (t / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.15e+117) {
tmp = x;
} else if (z <= -2.05e-11) {
tmp = x * (-z / t);
} else if (z <= -1e-53) {
tmp = x * (y / -z);
} else if (z <= 3.6e-7) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.15e+117: tmp = x elif z <= -2.05e-11: tmp = x * (-z / t) elif z <= -1e-53: tmp = x * (y / -z) elif z <= 3.6e-7: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.15e+117) tmp = x; elseif (z <= -2.05e-11) tmp = Float64(x * Float64(Float64(-z) / t)); elseif (z <= -1e-53) tmp = Float64(x * Float64(y / Float64(-z))); elseif (z <= 3.6e-7) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.15e+117) tmp = x; elseif (z <= -2.05e-11) tmp = x * (-z / t); elseif (z <= -1e-53) tmp = x * (y / -z); elseif (z <= 3.6e-7) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.15e+117], x, If[LessEqual[z, -2.05e-11], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1e-53], N[(x * N[(y / (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e-7], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+117}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{-11}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-53}:\\
\;\;\;\;x \cdot \frac{y}{-z}\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.14999999999999994e117 or 3.59999999999999994e-7 < z Initial program 72.5%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 65.4%
if -1.14999999999999994e117 < z < -2.05e-11Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around inf 59.8%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in y around 0 48.2%
mul-1-neg48.2%
associate-/l*48.0%
distribute-rgt-neg-in48.0%
distribute-neg-frac248.0%
Simplified48.0%
if -2.05e-11 < z < -1.00000000000000003e-53Initial program 83.9%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 66.9%
mul-1-neg66.9%
associate-/l*66.7%
distribute-rgt-neg-in66.7%
distribute-frac-neg66.7%
neg-sub066.7%
associate--r-66.7%
neg-sub066.7%
+-commutative66.7%
sub-neg66.7%
div-sub66.7%
*-inverses66.7%
Simplified66.7%
Taylor expanded in y around inf 51.3%
mul-1-neg51.3%
associate-/l*51.0%
distribute-rgt-neg-in51.0%
distribute-frac-neg51.0%
Simplified51.0%
if -1.00000000000000003e-53 < z < 3.59999999999999994e-7Initial program 89.9%
associate-/l*92.3%
Simplified92.3%
clear-num92.3%
un-div-inv93.1%
Applied egg-rr93.1%
Taylor expanded in z around 0 70.1%
Final simplification65.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -3.1e+116)
x
(if (<= z -9e-14)
(* x (/ (- z) t))
(if (<= z -1.1e-52)
(/ (* x (- y)) z)
(if (<= z 7.5e-5) (/ x (/ t y)) x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.1e+116) {
tmp = x;
} else if (z <= -9e-14) {
tmp = x * (-z / t);
} else if (z <= -1.1e-52) {
tmp = (x * -y) / z;
} else if (z <= 7.5e-5) {
tmp = x / (t / y);
} else {
tmp = x;
}
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 <= (-3.1d+116)) then
tmp = x
else if (z <= (-9d-14)) then
tmp = x * (-z / t)
else if (z <= (-1.1d-52)) then
tmp = (x * -y) / z
else if (z <= 7.5d-5) then
tmp = x / (t / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.1e+116) {
tmp = x;
} else if (z <= -9e-14) {
tmp = x * (-z / t);
} else if (z <= -1.1e-52) {
tmp = (x * -y) / z;
} else if (z <= 7.5e-5) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -3.1e+116: tmp = x elif z <= -9e-14: tmp = x * (-z / t) elif z <= -1.1e-52: tmp = (x * -y) / z elif z <= 7.5e-5: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -3.1e+116) tmp = x; elseif (z <= -9e-14) tmp = Float64(x * Float64(Float64(-z) / t)); elseif (z <= -1.1e-52) tmp = Float64(Float64(x * Float64(-y)) / z); elseif (z <= 7.5e-5) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -3.1e+116) tmp = x; elseif (z <= -9e-14) tmp = x * (-z / t); elseif (z <= -1.1e-52) tmp = (x * -y) / z; elseif (z <= 7.5e-5) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -3.1e+116], x, If[LessEqual[z, -9e-14], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e-52], N[(N[(x * (-y)), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 7.5e-5], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+116}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-52}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{z}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -3.09999999999999996e116 or 7.49999999999999934e-5 < z Initial program 72.5%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 65.4%
if -3.09999999999999996e116 < z < -8.9999999999999995e-14Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around inf 59.8%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in y around 0 48.2%
mul-1-neg48.2%
associate-/l*48.0%
distribute-rgt-neg-in48.0%
distribute-neg-frac248.0%
Simplified48.0%
if -8.9999999999999995e-14 < z < -1.10000000000000005e-52Initial program 83.9%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 66.9%
mul-1-neg66.9%
associate-/l*66.7%
distribute-rgt-neg-in66.7%
distribute-frac-neg66.7%
neg-sub066.7%
associate--r-66.7%
neg-sub066.7%
+-commutative66.7%
sub-neg66.7%
div-sub66.7%
*-inverses66.7%
Simplified66.7%
Taylor expanded in y around inf 51.3%
associate-*r/51.3%
mul-1-neg51.3%
distribute-rgt-neg-out51.3%
Simplified51.3%
if -1.10000000000000005e-52 < z < 7.49999999999999934e-5Initial program 89.9%
associate-/l*92.3%
Simplified92.3%
clear-num92.3%
un-div-inv93.1%
Applied egg-rr93.1%
Taylor expanded in z around 0 70.1%
Final simplification65.6%
(FPCore (x y z t)
:precision binary64
(if (<= z -3.5e+116)
x
(if (<= z -1.15e-16)
(/ (* x (- z)) t)
(if (<= z -3e-53) (/ (* x (- y)) z) (if (<= z 3.9e-7) (/ x (/ t y)) x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.5e+116) {
tmp = x;
} else if (z <= -1.15e-16) {
tmp = (x * -z) / t;
} else if (z <= -3e-53) {
tmp = (x * -y) / z;
} else if (z <= 3.9e-7) {
tmp = x / (t / y);
} else {
tmp = x;
}
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 <= (-3.5d+116)) then
tmp = x
else if (z <= (-1.15d-16)) then
tmp = (x * -z) / t
else if (z <= (-3d-53)) then
tmp = (x * -y) / z
else if (z <= 3.9d-7) then
tmp = x / (t / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.5e+116) {
tmp = x;
} else if (z <= -1.15e-16) {
tmp = (x * -z) / t;
} else if (z <= -3e-53) {
tmp = (x * -y) / z;
} else if (z <= 3.9e-7) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -3.5e+116: tmp = x elif z <= -1.15e-16: tmp = (x * -z) / t elif z <= -3e-53: tmp = (x * -y) / z elif z <= 3.9e-7: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -3.5e+116) tmp = x; elseif (z <= -1.15e-16) tmp = Float64(Float64(x * Float64(-z)) / t); elseif (z <= -3e-53) tmp = Float64(Float64(x * Float64(-y)) / z); elseif (z <= 3.9e-7) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -3.5e+116) tmp = x; elseif (z <= -1.15e-16) tmp = (x * -z) / t; elseif (z <= -3e-53) tmp = (x * -y) / z; elseif (z <= 3.9e-7) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -3.5e+116], x, If[LessEqual[z, -1.15e-16], N[(N[(x * (-z)), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, -3e-53], N[(N[(x * (-y)), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 3.9e-7], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+116}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-16}:\\
\;\;\;\;\frac{x \cdot \left(-z\right)}{t}\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-53}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{z}\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -3.49999999999999997e116 or 3.90000000000000025e-7 < z Initial program 72.5%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 65.4%
if -3.49999999999999997e116 < z < -1.15e-16Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around inf 59.8%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in y around 0 48.2%
associate-*r/48.2%
associate-*r*48.2%
neg-mul-148.2%
Simplified48.2%
if -1.15e-16 < z < -3.0000000000000002e-53Initial program 83.9%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 66.9%
mul-1-neg66.9%
associate-/l*66.7%
distribute-rgt-neg-in66.7%
distribute-frac-neg66.7%
neg-sub066.7%
associate--r-66.7%
neg-sub066.7%
+-commutative66.7%
sub-neg66.7%
div-sub66.7%
*-inverses66.7%
Simplified66.7%
Taylor expanded in y around inf 51.3%
associate-*r/51.3%
mul-1-neg51.3%
distribute-rgt-neg-out51.3%
Simplified51.3%
if -3.0000000000000002e-53 < z < 3.90000000000000025e-7Initial program 89.9%
associate-/l*92.3%
Simplified92.3%
clear-num92.3%
un-div-inv93.1%
Applied egg-rr93.1%
Taylor expanded in z around 0 70.1%
Final simplification65.6%
(FPCore (x y z t) :precision binary64 (if (<= z -1.1e-26) (* x (/ z (- z t))) (if (<= z 5.0) (/ x (/ t y)) (* x (- 1.0 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.1e-26) {
tmp = x * (z / (z - t));
} else if (z <= 5.0) {
tmp = x / (t / y);
} else {
tmp = x * (1.0 - (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 (z <= (-1.1d-26)) then
tmp = x * (z / (z - t))
else if (z <= 5.0d0) then
tmp = x / (t / y)
else
tmp = x * (1.0d0 - (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.1e-26) {
tmp = x * (z / (z - t));
} else if (z <= 5.0) {
tmp = x / (t / y);
} else {
tmp = x * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.1e-26: tmp = x * (z / (z - t)) elif z <= 5.0: tmp = x / (t / y) else: tmp = x * (1.0 - (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.1e-26) tmp = Float64(x * Float64(z / Float64(z - t))); elseif (z <= 5.0) tmp = Float64(x / Float64(t / y)); else tmp = Float64(x * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.1e-26) tmp = x * (z / (z - t)); elseif (z <= 5.0) tmp = x / (t / y); else tmp = x * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.1e-26], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.0], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\mathbf{elif}\;z \leq 5:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -1.1e-26Initial program 72.3%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around 0 55.6%
mul-1-neg55.6%
distribute-neg-frac255.6%
neg-sub055.6%
associate--r-55.6%
neg-sub055.6%
+-commutative55.6%
sub-neg55.6%
associate-/l*79.1%
Simplified79.1%
if -1.1e-26 < z < 5Initial program 89.7%
associate-/l*92.7%
Simplified92.7%
clear-num92.7%
un-div-inv93.4%
Applied egg-rr93.4%
Taylor expanded in z around 0 68.1%
if 5 < z Initial program 82.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 66.5%
mul-1-neg66.5%
associate-/l*79.6%
distribute-rgt-neg-in79.6%
distribute-frac-neg79.6%
neg-sub079.6%
associate--r-79.6%
neg-sub079.6%
+-commutative79.6%
sub-neg79.6%
div-sub79.7%
*-inverses79.7%
Simplified79.7%
Final simplification74.0%
(FPCore (x y z t) :precision binary64 (if (<= z -1.06e+19) x (if (<= z 0.056) (* x (/ y t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.06e+19) {
tmp = x;
} else if (z <= 0.056) {
tmp = x * (y / t);
} else {
tmp = x;
}
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.06d+19)) then
tmp = x
else if (z <= 0.056d0) then
tmp = x * (y / t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.06e+19) {
tmp = x;
} else if (z <= 0.056) {
tmp = x * (y / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.06e+19: tmp = x elif z <= 0.056: tmp = x * (y / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.06e+19) tmp = x; elseif (z <= 0.056) tmp = Float64(x * Float64(y / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.06e+19) tmp = x; elseif (z <= 0.056) tmp = x * (y / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.06e+19], x, If[LessEqual[z, 0.056], N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.06 \cdot 10^{+19}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 0.056:\\
\;\;\;\;x \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.06e19 or 0.0560000000000000012 < z Initial program 76.1%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 60.9%
if -1.06e19 < z < 0.0560000000000000012Initial program 90.1%
associate-/l*93.0%
Simplified93.0%
Taylor expanded in z around 0 64.2%
associate-/l*66.5%
Simplified66.5%
Final simplification63.7%
(FPCore (x y z t) :precision binary64 (if (<= z -1.35e+17) x (if (<= z 0.056) (/ x (/ t y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.35e+17) {
tmp = x;
} else if (z <= 0.056) {
tmp = x / (t / y);
} else {
tmp = x;
}
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.35d+17)) then
tmp = x
else if (z <= 0.056d0) then
tmp = x / (t / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.35e+17) {
tmp = x;
} else if (z <= 0.056) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.35e+17: tmp = x elif z <= 0.056: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.35e+17) tmp = x; elseif (z <= 0.056) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.35e+17) tmp = x; elseif (z <= 0.056) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.35e+17], x, If[LessEqual[z, 0.056], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+17}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 0.056:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.35e17 or 0.0560000000000000012 < z Initial program 76.1%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 60.9%
if -1.35e17 < z < 0.0560000000000000012Initial program 90.1%
associate-/l*93.0%
Simplified93.0%
clear-num93.0%
un-div-inv93.7%
Applied egg-rr93.7%
Taylor expanded in z around 0 66.6%
Final simplification63.8%
(FPCore (x y z t) :precision binary64 (* x (/ (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x * ((y - z) / (t - 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 - z))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y - z) / (t - z));
}
def code(x, y, z, t): return x * ((y - z) / (t - z))
function code(x, y, z, t) return Float64(x * Float64(Float64(y - z) / Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x * ((y - z) / (t - z)); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y - z}{t - z}
\end{array}
Initial program 83.2%
associate-/l*96.4%
Simplified96.4%
Final simplification96.4%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 83.2%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in z around inf 34.8%
Final simplification34.8%
(FPCore (x y z t) :precision binary64 (/ x (/ (- t z) (- y z))))
double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - 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 / ((t - z) / (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
def code(x, y, z, t): return x / ((t - z) / (y - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(t - z) / Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x / ((t - z) / (y - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{t - z}{y - z}}
\end{array}
herbie shell --seed 2024079
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:alt
(/ x (/ (- t z) (- y z)))
(/ (* x (- y z)) (- t z)))