
(FPCore (x y z t) :precision binary64 (* (/ (- x y) (- z y)) t))
double code(double x, double y, double z, double t) {
return ((x - y) / (z - y)) * 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 - y) / (z - y)) * t
end function
public static double code(double x, double y, double z, double t) {
return ((x - y) / (z - y)) * t;
}
def code(x, y, z, t): return ((x - y) / (z - y)) * t
function code(x, y, z, t) return Float64(Float64(Float64(x - y) / Float64(z - y)) * t) end
function tmp = code(x, y, z, t) tmp = ((x - y) / (z - y)) * t; end
code[x_, y_, z_, t_] := N[(N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - y} \cdot t
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (* (/ (- x y) (- z y)) t))
double code(double x, double y, double z, double t) {
return ((x - y) / (z - y)) * 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 - y) / (z - y)) * t
end function
public static double code(double x, double y, double z, double t) {
return ((x - y) / (z - y)) * t;
}
def code(x, y, z, t): return ((x - y) / (z - y)) * t
function code(x, y, z, t) return Float64(Float64(Float64(x - y) / Float64(z - y)) * t) end
function tmp = code(x, y, z, t) tmp = ((x - y) / (z - y)) * t; end
code[x_, y_, z_, t_] := N[(N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - y} \cdot t
\end{array}
(FPCore (x y z t) :precision binary64 (* (/ (- x y) (- z y)) t))
double code(double x, double y, double z, double t) {
return ((x - y) / (z - y)) * 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 - y) / (z - y)) * t
end function
public static double code(double x, double y, double z, double t) {
return ((x - y) / (z - y)) * t;
}
def code(x, y, z, t): return ((x - y) / (z - y)) * t
function code(x, y, z, t) return Float64(Float64(Float64(x - y) / Float64(z - y)) * t) end
function tmp = code(x, y, z, t) tmp = ((x - y) / (z - y)) * t; end
code[x_, y_, z_, t_] := N[(N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - y} \cdot t
\end{array}
Initial program 97.9%
Final simplification97.9%
(FPCore (x y z t)
:precision binary64
(if (or (<= y -1.55e+82)
(not
(or (<= y -1.46e+28) (and (not (<= y -1.26e-111)) (<= y 3.15e+62)))))
(* t (/ y (- y z)))
(* x (/ t (- z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.55e+82) || !((y <= -1.46e+28) || (!(y <= -1.26e-111) && (y <= 3.15e+62)))) {
tmp = t * (y / (y - z));
} else {
tmp = x * (t / (z - y));
}
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 ((y <= (-1.55d+82)) .or. (.not. (y <= (-1.46d+28)) .or. (.not. (y <= (-1.26d-111))) .and. (y <= 3.15d+62))) then
tmp = t * (y / (y - z))
else
tmp = x * (t / (z - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.55e+82) || !((y <= -1.46e+28) || (!(y <= -1.26e-111) && (y <= 3.15e+62)))) {
tmp = t * (y / (y - z));
} else {
tmp = x * (t / (z - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.55e+82) or not ((y <= -1.46e+28) or (not (y <= -1.26e-111) and (y <= 3.15e+62))): tmp = t * (y / (y - z)) else: tmp = x * (t / (z - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.55e+82) || !((y <= -1.46e+28) || (!(y <= -1.26e-111) && (y <= 3.15e+62)))) tmp = Float64(t * Float64(y / Float64(y - z))); else tmp = Float64(x * Float64(t / Float64(z - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.55e+82) || ~(((y <= -1.46e+28) || (~((y <= -1.26e-111)) && (y <= 3.15e+62))))) tmp = t * (y / (y - z)); else tmp = x * (t / (z - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.55e+82], N[Not[Or[LessEqual[y, -1.46e+28], And[N[Not[LessEqual[y, -1.26e-111]], $MachinePrecision], LessEqual[y, 3.15e+62]]]], $MachinePrecision]], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+82} \lor \neg \left(y \leq -1.46 \cdot 10^{+28} \lor \neg \left(y \leq -1.26 \cdot 10^{-111}\right) \land y \leq 3.15 \cdot 10^{+62}\right):\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{t}{z - y}\\
\end{array}
\end{array}
if y < -1.55000000000000016e82 or -1.46e28 < y < -1.26000000000000003e-111 or 3.14999999999999999e62 < y Initial program 98.7%
Taylor expanded in x around 0 86.0%
neg-mul-186.0%
distribute-neg-frac286.0%
neg-sub086.0%
associate--r-86.0%
neg-sub086.0%
Simplified86.0%
Taylor expanded in t around 0 67.9%
associate-/l*86.0%
Simplified86.0%
if -1.55000000000000016e82 < y < -1.46e28 or -1.26000000000000003e-111 < y < 3.14999999999999999e62Initial program 96.9%
associate-*l/96.6%
associate-/l*91.5%
Simplified91.5%
clear-num91.2%
un-div-inv91.4%
Applied egg-rr91.4%
Taylor expanded in x around inf 76.1%
*-commutative76.1%
associate-*r/71.8%
Simplified71.8%
Final simplification79.2%
(FPCore (x y z t)
:precision binary64
(if (or (<= y -5e+84)
(and (not (<= y -4.2e+28))
(or (<= y -3.4e-119) (not (<= y 3.15e+62)))))
(* t (/ y (- y z)))
(* t (/ x (- z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -5e+84) || (!(y <= -4.2e+28) && ((y <= -3.4e-119) || !(y <= 3.15e+62)))) {
tmp = t * (y / (y - z));
} else {
tmp = t * (x / (z - y));
}
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 ((y <= (-5d+84)) .or. (.not. (y <= (-4.2d+28))) .and. (y <= (-3.4d-119)) .or. (.not. (y <= 3.15d+62))) then
tmp = t * (y / (y - z))
else
tmp = t * (x / (z - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -5e+84) || (!(y <= -4.2e+28) && ((y <= -3.4e-119) || !(y <= 3.15e+62)))) {
tmp = t * (y / (y - z));
} else {
tmp = t * (x / (z - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -5e+84) or (not (y <= -4.2e+28) and ((y <= -3.4e-119) or not (y <= 3.15e+62))): tmp = t * (y / (y - z)) else: tmp = t * (x / (z - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -5e+84) || (!(y <= -4.2e+28) && ((y <= -3.4e-119) || !(y <= 3.15e+62)))) tmp = Float64(t * Float64(y / Float64(y - z))); else tmp = Float64(t * Float64(x / Float64(z - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -5e+84) || (~((y <= -4.2e+28)) && ((y <= -3.4e-119) || ~((y <= 3.15e+62))))) tmp = t * (y / (y - z)); else tmp = t * (x / (z - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -5e+84], And[N[Not[LessEqual[y, -4.2e+28]], $MachinePrecision], Or[LessEqual[y, -3.4e-119], N[Not[LessEqual[y, 3.15e+62]], $MachinePrecision]]]], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+84} \lor \neg \left(y \leq -4.2 \cdot 10^{+28}\right) \land \left(y \leq -3.4 \cdot 10^{-119} \lor \neg \left(y \leq 3.15 \cdot 10^{+62}\right)\right):\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{x}{z - y}\\
\end{array}
\end{array}
if y < -5.0000000000000001e84 or -4.19999999999999978e28 < y < -3.40000000000000024e-119 or 3.14999999999999999e62 < y Initial program 98.1%
Taylor expanded in x around 0 84.5%
neg-mul-184.5%
distribute-neg-frac284.5%
neg-sub084.5%
associate--r-84.5%
neg-sub084.5%
Simplified84.5%
Taylor expanded in t around 0 67.0%
associate-/l*84.5%
Simplified84.5%
if -5.0000000000000001e84 < y < -4.19999999999999978e28 or -3.40000000000000024e-119 < y < 3.14999999999999999e62Initial program 97.6%
Taylor expanded in x around inf 76.9%
Final simplification81.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (/ y (- y z)))))
(if (<= y -2.7e+64)
t_1
(if (<= y -2.8e+29)
(/ (* x t) (- y))
(if (or (<= y -1.7e-119) (not (<= y 2.1e-83))) t_1 (/ t (/ z x)))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y / (y - z));
double tmp;
if (y <= -2.7e+64) {
tmp = t_1;
} else if (y <= -2.8e+29) {
tmp = (x * t) / -y;
} else if ((y <= -1.7e-119) || !(y <= 2.1e-83)) {
tmp = t_1;
} else {
tmp = t / (z / 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) :: t_1
real(8) :: tmp
t_1 = t * (y / (y - z))
if (y <= (-2.7d+64)) then
tmp = t_1
else if (y <= (-2.8d+29)) then
tmp = (x * t) / -y
else if ((y <= (-1.7d-119)) .or. (.not. (y <= 2.1d-83))) then
tmp = t_1
else
tmp = t / (z / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = t * (y / (y - z));
double tmp;
if (y <= -2.7e+64) {
tmp = t_1;
} else if (y <= -2.8e+29) {
tmp = (x * t) / -y;
} else if ((y <= -1.7e-119) || !(y <= 2.1e-83)) {
tmp = t_1;
} else {
tmp = t / (z / x);
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (y / (y - z)) tmp = 0 if y <= -2.7e+64: tmp = t_1 elif y <= -2.8e+29: tmp = (x * t) / -y elif (y <= -1.7e-119) or not (y <= 2.1e-83): tmp = t_1 else: tmp = t / (z / x) return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(y / Float64(y - z))) tmp = 0.0 if (y <= -2.7e+64) tmp = t_1; elseif (y <= -2.8e+29) tmp = Float64(Float64(x * t) / Float64(-y)); elseif ((y <= -1.7e-119) || !(y <= 2.1e-83)) tmp = t_1; else tmp = Float64(t / Float64(z / x)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (y / (y - z)); tmp = 0.0; if (y <= -2.7e+64) tmp = t_1; elseif (y <= -2.8e+29) tmp = (x * t) / -y; elseif ((y <= -1.7e-119) || ~((y <= 2.1e-83))) tmp = t_1; else tmp = t / (z / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.7e+64], t$95$1, If[LessEqual[y, -2.8e+29], N[(N[(x * t), $MachinePrecision] / (-y)), $MachinePrecision], If[Or[LessEqual[y, -1.7e-119], N[Not[LessEqual[y, 2.1e-83]], $MachinePrecision]], t$95$1, N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{y - z}\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{+29}:\\
\;\;\;\;\frac{x \cdot t}{-y}\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-119} \lor \neg \left(y \leq 2.1 \cdot 10^{-83}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\end{array}
\end{array}
if y < -2.7e64 or -2.8e29 < y < -1.70000000000000012e-119 or 2.0999999999999999e-83 < y Initial program 98.1%
Taylor expanded in x around 0 76.7%
neg-mul-176.7%
distribute-neg-frac276.7%
neg-sub076.7%
associate--r-76.7%
neg-sub076.7%
Simplified76.7%
Taylor expanded in t around 0 63.6%
associate-/l*76.7%
Simplified76.7%
if -2.7e64 < y < -2.8e29Initial program 99.4%
Taylor expanded in x around inf 94.1%
Taylor expanded in z around 0 94.7%
associate-*r/94.7%
associate-*r*94.7%
neg-mul-194.7%
*-commutative94.7%
Simplified94.7%
if -1.70000000000000012e-119 < y < 2.0999999999999999e-83Initial program 97.3%
associate-*l/97.2%
associate-/l*90.3%
Simplified90.3%
associate-*r/97.2%
associate-*l/97.3%
*-commutative97.3%
clear-num97.2%
un-div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around 0 77.9%
Final simplification77.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (/ y (- y z)))))
(if (<= y -1.12e+82)
t_1
(if (<= y -1.18e+29)
(* t (/ x (- z y)))
(if (or (<= y -3.7e-46) (not (<= y 1.3e+90)))
t_1
(* t (/ (- x y) z)))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y / (y - z));
double tmp;
if (y <= -1.12e+82) {
tmp = t_1;
} else if (y <= -1.18e+29) {
tmp = t * (x / (z - y));
} else if ((y <= -3.7e-46) || !(y <= 1.3e+90)) {
tmp = t_1;
} else {
tmp = t * ((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 * (y / (y - z))
if (y <= (-1.12d+82)) then
tmp = t_1
else if (y <= (-1.18d+29)) then
tmp = t * (x / (z - y))
else if ((y <= (-3.7d-46)) .or. (.not. (y <= 1.3d+90))) then
tmp = t_1
else
tmp = t * ((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 * (y / (y - z));
double tmp;
if (y <= -1.12e+82) {
tmp = t_1;
} else if (y <= -1.18e+29) {
tmp = t * (x / (z - y));
} else if ((y <= -3.7e-46) || !(y <= 1.3e+90)) {
tmp = t_1;
} else {
tmp = t * ((x - y) / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (y / (y - z)) tmp = 0 if y <= -1.12e+82: tmp = t_1 elif y <= -1.18e+29: tmp = t * (x / (z - y)) elif (y <= -3.7e-46) or not (y <= 1.3e+90): tmp = t_1 else: tmp = t * ((x - y) / z) return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(y / Float64(y - z))) tmp = 0.0 if (y <= -1.12e+82) tmp = t_1; elseif (y <= -1.18e+29) tmp = Float64(t * Float64(x / Float64(z - y))); elseif ((y <= -3.7e-46) || !(y <= 1.3e+90)) tmp = t_1; else tmp = Float64(t * Float64(Float64(x - y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (y / (y - z)); tmp = 0.0; if (y <= -1.12e+82) tmp = t_1; elseif (y <= -1.18e+29) tmp = t * (x / (z - y)); elseif ((y <= -3.7e-46) || ~((y <= 1.3e+90))) tmp = t_1; else tmp = t * ((x - y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+82], t$95$1, If[LessEqual[y, -1.18e+29], N[(t * N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -3.7e-46], N[Not[LessEqual[y, 1.3e+90]], $MachinePrecision]], t$95$1, N[(t * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{y - z}\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.18 \cdot 10^{+29}:\\
\;\;\;\;t \cdot \frac{x}{z - y}\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{-46} \lor \neg \left(y \leq 1.3 \cdot 10^{+90}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{x - y}{z}\\
\end{array}
\end{array}
if y < -1.11999999999999998e82 or -1.18e29 < y < -3.69999999999999983e-46 or 1.2999999999999999e90 < y Initial program 99.4%
Taylor expanded in x around 0 89.0%
neg-mul-189.0%
distribute-neg-frac289.0%
neg-sub089.0%
associate--r-89.0%
neg-sub089.0%
Simplified89.0%
Taylor expanded in t around 0 68.2%
associate-/l*89.0%
Simplified89.0%
if -1.11999999999999998e82 < y < -1.18e29Initial program 99.2%
Taylor expanded in x around inf 94.8%
if -3.69999999999999983e-46 < y < 1.2999999999999999e90Initial program 96.5%
Taylor expanded in z around inf 75.3%
Final simplification82.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (/ y (- y z)))))
(if (<= y -1.34e+82)
t_1
(if (<= y -3.5e+28)
(/ t (/ (- z y) x))
(if (or (<= y -1.35e-47) (not (<= y 1.3e+90)))
t_1
(* t (/ (- x y) z)))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y / (y - z));
double tmp;
if (y <= -1.34e+82) {
tmp = t_1;
} else if (y <= -3.5e+28) {
tmp = t / ((z - y) / x);
} else if ((y <= -1.35e-47) || !(y <= 1.3e+90)) {
tmp = t_1;
} else {
tmp = t * ((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 * (y / (y - z))
if (y <= (-1.34d+82)) then
tmp = t_1
else if (y <= (-3.5d+28)) then
tmp = t / ((z - y) / x)
else if ((y <= (-1.35d-47)) .or. (.not. (y <= 1.3d+90))) then
tmp = t_1
else
tmp = t * ((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 * (y / (y - z));
double tmp;
if (y <= -1.34e+82) {
tmp = t_1;
} else if (y <= -3.5e+28) {
tmp = t / ((z - y) / x);
} else if ((y <= -1.35e-47) || !(y <= 1.3e+90)) {
tmp = t_1;
} else {
tmp = t * ((x - y) / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (y / (y - z)) tmp = 0 if y <= -1.34e+82: tmp = t_1 elif y <= -3.5e+28: tmp = t / ((z - y) / x) elif (y <= -1.35e-47) or not (y <= 1.3e+90): tmp = t_1 else: tmp = t * ((x - y) / z) return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(y / Float64(y - z))) tmp = 0.0 if (y <= -1.34e+82) tmp = t_1; elseif (y <= -3.5e+28) tmp = Float64(t / Float64(Float64(z - y) / x)); elseif ((y <= -1.35e-47) || !(y <= 1.3e+90)) tmp = t_1; else tmp = Float64(t * Float64(Float64(x - y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (y / (y - z)); tmp = 0.0; if (y <= -1.34e+82) tmp = t_1; elseif (y <= -3.5e+28) tmp = t / ((z - y) / x); elseif ((y <= -1.35e-47) || ~((y <= 1.3e+90))) tmp = t_1; else tmp = t * ((x - y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.34e+82], t$95$1, If[LessEqual[y, -3.5e+28], N[(t / N[(N[(z - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.35e-47], N[Not[LessEqual[y, 1.3e+90]], $MachinePrecision]], t$95$1, N[(t * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{y - z}\\
\mathbf{if}\;y \leq -1.34 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{+28}:\\
\;\;\;\;\frac{t}{\frac{z - y}{x}}\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-47} \lor \neg \left(y \leq 1.3 \cdot 10^{+90}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{x - y}{z}\\
\end{array}
\end{array}
if y < -1.33999999999999992e82 or -3.5e28 < y < -1.3499999999999999e-47 or 1.2999999999999999e90 < y Initial program 99.4%
Taylor expanded in x around 0 89.0%
neg-mul-189.0%
distribute-neg-frac289.0%
neg-sub089.0%
associate--r-89.0%
neg-sub089.0%
Simplified89.0%
Taylor expanded in t around 0 68.2%
associate-/l*89.0%
Simplified89.0%
if -1.33999999999999992e82 < y < -3.5e28Initial program 99.2%
associate-*l/100.0%
associate-/l*83.9%
Simplified83.9%
associate-*r/100.0%
associate-*l/99.2%
*-commutative99.2%
clear-num99.2%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 95.6%
if -1.3499999999999999e-47 < y < 1.2999999999999999e90Initial program 96.5%
Taylor expanded in z around inf 75.3%
Final simplification82.0%
(FPCore (x y z t)
:precision binary64
(if (<= y -6.9e+28)
t
(if (<= y -2.85e-37)
(* y (/ (- t) z))
(if (<= y -7.6e-47) t (if (<= y 1.3e+90) (/ t (/ z x)) t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.9e+28) {
tmp = t;
} else if (y <= -2.85e-37) {
tmp = y * (-t / z);
} else if (y <= -7.6e-47) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = t / (z / x);
} else {
tmp = 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 (y <= (-6.9d+28)) then
tmp = t
else if (y <= (-2.85d-37)) then
tmp = y * (-t / z)
else if (y <= (-7.6d-47)) then
tmp = t
else if (y <= 1.3d+90) then
tmp = t / (z / x)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.9e+28) {
tmp = t;
} else if (y <= -2.85e-37) {
tmp = y * (-t / z);
} else if (y <= -7.6e-47) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = t / (z / x);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6.9e+28: tmp = t elif y <= -2.85e-37: tmp = y * (-t / z) elif y <= -7.6e-47: tmp = t elif y <= 1.3e+90: tmp = t / (z / x) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6.9e+28) tmp = t; elseif (y <= -2.85e-37) tmp = Float64(y * Float64(Float64(-t) / z)); elseif (y <= -7.6e-47) tmp = t; elseif (y <= 1.3e+90) tmp = Float64(t / Float64(z / x)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6.9e+28) tmp = t; elseif (y <= -2.85e-37) tmp = y * (-t / z); elseif (y <= -7.6e-47) tmp = t; elseif (y <= 1.3e+90) tmp = t / (z / x); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6.9e+28], t, If[LessEqual[y, -2.85e-37], N[(y * N[((-t) / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.6e-47], t, If[LessEqual[y, 1.3e+90], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.9 \cdot 10^{+28}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -2.85 \cdot 10^{-37}:\\
\;\;\;\;y \cdot \frac{-t}{z}\\
\mathbf{elif}\;y \leq -7.6 \cdot 10^{-47}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+90}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -6.9e28 or -2.84999999999999987e-37 < y < -7.60000000000000029e-47 or 1.2999999999999999e90 < y Initial program 99.8%
associate-*l/75.1%
associate-/l*71.5%
Simplified71.5%
Taylor expanded in y around inf 72.8%
if -6.9e28 < y < -2.84999999999999987e-37Initial program 94.9%
associate-*l/99.9%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around inf 61.4%
*-commutative61.4%
associate-/l*61.4%
Simplified61.4%
Taylor expanded in x around 0 60.8%
associate-*r/60.8%
neg-mul-160.8%
distribute-rgt-neg-in60.8%
associate-*l/60.8%
Simplified60.8%
if -7.60000000000000029e-47 < y < 1.2999999999999999e90Initial program 96.5%
associate-*l/96.9%
associate-/l*92.2%
Simplified92.2%
associate-*r/96.9%
associate-*l/96.5%
*-commutative96.5%
clear-num96.2%
un-div-inv96.5%
Applied egg-rr96.5%
Taylor expanded in y around 0 60.8%
Final simplification66.0%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.8e+64)
t
(if (<= y -2e+28)
(* t (/ x (- y)))
(if (<= y -3.5e-119)
(* y (/ (- t) z))
(if (<= y 2.35e+91) (/ t (/ z x)) t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.8e+64) {
tmp = t;
} else if (y <= -2e+28) {
tmp = t * (x / -y);
} else if (y <= -3.5e-119) {
tmp = y * (-t / z);
} else if (y <= 2.35e+91) {
tmp = t / (z / x);
} else {
tmp = 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 (y <= (-2.8d+64)) then
tmp = t
else if (y <= (-2d+28)) then
tmp = t * (x / -y)
else if (y <= (-3.5d-119)) then
tmp = y * (-t / z)
else if (y <= 2.35d+91) then
tmp = t / (z / x)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.8e+64) {
tmp = t;
} else if (y <= -2e+28) {
tmp = t * (x / -y);
} else if (y <= -3.5e-119) {
tmp = y * (-t / z);
} else if (y <= 2.35e+91) {
tmp = t / (z / x);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.8e+64: tmp = t elif y <= -2e+28: tmp = t * (x / -y) elif y <= -3.5e-119: tmp = y * (-t / z) elif y <= 2.35e+91: tmp = t / (z / x) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.8e+64) tmp = t; elseif (y <= -2e+28) tmp = Float64(t * Float64(x / Float64(-y))); elseif (y <= -3.5e-119) tmp = Float64(y * Float64(Float64(-t) / z)); elseif (y <= 2.35e+91) tmp = Float64(t / Float64(z / x)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.8e+64) tmp = t; elseif (y <= -2e+28) tmp = t * (x / -y); elseif (y <= -3.5e-119) tmp = y * (-t / z); elseif (y <= 2.35e+91) tmp = t / (z / x); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.8e+64], t, If[LessEqual[y, -2e+28], N[(t * N[(x / (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.5e-119], N[(y * N[((-t) / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.35e+91], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+64}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -2 \cdot 10^{+28}:\\
\;\;\;\;t \cdot \frac{x}{-y}\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-119}:\\
\;\;\;\;y \cdot \frac{-t}{z}\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{+91}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -2.80000000000000024e64 or 2.3499999999999999e91 < y Initial program 99.9%
associate-*l/72.9%
associate-/l*69.9%
Simplified69.9%
Taylor expanded in y around inf 75.9%
if -2.80000000000000024e64 < y < -1.99999999999999992e28Initial program 99.4%
Taylor expanded in x around inf 94.1%
Taylor expanded in z around 0 94.1%
associate-*r/94.1%
neg-mul-194.1%
Simplified94.1%
if -1.99999999999999992e28 < y < -3.5e-119Initial program 92.4%
associate-*l/99.7%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 62.3%
*-commutative62.3%
associate-/l*62.4%
Simplified62.4%
Taylor expanded in x around 0 51.6%
associate-*r/51.6%
neg-mul-151.6%
distribute-rgt-neg-in51.6%
associate-*l/51.7%
Simplified51.7%
if -3.5e-119 < y < 2.3499999999999999e91Initial program 97.6%
associate-*l/96.5%
associate-/l*91.1%
Simplified91.1%
associate-*r/96.5%
associate-*l/97.6%
*-commutative97.6%
clear-num97.2%
un-div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around 0 63.1%
Final simplification67.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -3.3e+64)
t
(if (<= y -9.6e+28)
(/ (* x (- t)) y)
(if (<= y -3.2e-119)
(* y (/ (- t) z))
(if (<= y 1.38e+90) (/ t (/ z x)) t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.3e+64) {
tmp = t;
} else if (y <= -9.6e+28) {
tmp = (x * -t) / y;
} else if (y <= -3.2e-119) {
tmp = y * (-t / z);
} else if (y <= 1.38e+90) {
tmp = t / (z / x);
} else {
tmp = 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 (y <= (-3.3d+64)) then
tmp = t
else if (y <= (-9.6d+28)) then
tmp = (x * -t) / y
else if (y <= (-3.2d-119)) then
tmp = y * (-t / z)
else if (y <= 1.38d+90) then
tmp = t / (z / x)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.3e+64) {
tmp = t;
} else if (y <= -9.6e+28) {
tmp = (x * -t) / y;
} else if (y <= -3.2e-119) {
tmp = y * (-t / z);
} else if (y <= 1.38e+90) {
tmp = t / (z / x);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.3e+64: tmp = t elif y <= -9.6e+28: tmp = (x * -t) / y elif y <= -3.2e-119: tmp = y * (-t / z) elif y <= 1.38e+90: tmp = t / (z / x) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.3e+64) tmp = t; elseif (y <= -9.6e+28) tmp = Float64(Float64(x * Float64(-t)) / y); elseif (y <= -3.2e-119) tmp = Float64(y * Float64(Float64(-t) / z)); elseif (y <= 1.38e+90) tmp = Float64(t / Float64(z / x)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3.3e+64) tmp = t; elseif (y <= -9.6e+28) tmp = (x * -t) / y; elseif (y <= -3.2e-119) tmp = y * (-t / z); elseif (y <= 1.38e+90) tmp = t / (z / x); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.3e+64], t, If[LessEqual[y, -9.6e+28], N[(N[(x * (-t)), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, -3.2e-119], N[(y * N[((-t) / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.38e+90], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+64}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq -9.6 \cdot 10^{+28}:\\
\;\;\;\;\frac{x \cdot \left(-t\right)}{y}\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-119}:\\
\;\;\;\;y \cdot \frac{-t}{z}\\
\mathbf{elif}\;y \leq 1.38 \cdot 10^{+90}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -3.29999999999999988e64 or 1.38000000000000005e90 < y Initial program 99.9%
associate-*l/72.9%
associate-/l*69.9%
Simplified69.9%
Taylor expanded in y around inf 75.9%
if -3.29999999999999988e64 < y < -9.59999999999999925e28Initial program 99.4%
Taylor expanded in x around inf 94.1%
Taylor expanded in z around 0 94.7%
associate-*r/94.7%
associate-*r*94.7%
neg-mul-194.7%
*-commutative94.7%
Simplified94.7%
if -9.59999999999999925e28 < y < -3.19999999999999993e-119Initial program 92.4%
associate-*l/99.7%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 62.3%
*-commutative62.3%
associate-/l*62.4%
Simplified62.4%
Taylor expanded in x around 0 51.6%
associate-*r/51.6%
neg-mul-151.6%
distribute-rgt-neg-in51.6%
associate-*l/51.7%
Simplified51.7%
if -3.19999999999999993e-119 < y < 1.38000000000000005e90Initial program 97.6%
associate-*l/96.5%
associate-/l*91.1%
Simplified91.1%
associate-*r/96.5%
associate-*l/97.6%
*-commutative97.6%
clear-num97.2%
un-div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around 0 63.1%
Final simplification67.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -7.4e+28)
(* t (- (/ x (- y)) -1.0))
(if (or (<= y -4.4e-47) (not (<= y 1.3e+90)))
(* t (/ y (- y z)))
(* t (/ (- x y) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7.4e+28) {
tmp = t * ((x / -y) - -1.0);
} else if ((y <= -4.4e-47) || !(y <= 1.3e+90)) {
tmp = t * (y / (y - z));
} else {
tmp = t * ((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 (y <= (-7.4d+28)) then
tmp = t * ((x / -y) - (-1.0d0))
else if ((y <= (-4.4d-47)) .or. (.not. (y <= 1.3d+90))) then
tmp = t * (y / (y - z))
else
tmp = t * ((x - y) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7.4e+28) {
tmp = t * ((x / -y) - -1.0);
} else if ((y <= -4.4e-47) || !(y <= 1.3e+90)) {
tmp = t * (y / (y - z));
} else {
tmp = t * ((x - y) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -7.4e+28: tmp = t * ((x / -y) - -1.0) elif (y <= -4.4e-47) or not (y <= 1.3e+90): tmp = t * (y / (y - z)) else: tmp = t * ((x - y) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -7.4e+28) tmp = Float64(t * Float64(Float64(x / Float64(-y)) - -1.0)); elseif ((y <= -4.4e-47) || !(y <= 1.3e+90)) tmp = Float64(t * Float64(y / Float64(y - z))); else tmp = Float64(t * Float64(Float64(x - y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -7.4e+28) tmp = t * ((x / -y) - -1.0); elseif ((y <= -4.4e-47) || ~((y <= 1.3e+90))) tmp = t * (y / (y - z)); else tmp = t * ((x - y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -7.4e+28], N[(t * N[(N[(x / (-y)), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -4.4e-47], N[Not[LessEqual[y, 1.3e+90]], $MachinePrecision]], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.4 \cdot 10^{+28}:\\
\;\;\;\;t \cdot \left(\frac{x}{-y} - -1\right)\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-47} \lor \neg \left(y \leq 1.3 \cdot 10^{+90}\right):\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{x - y}{z}\\
\end{array}
\end{array}
if y < -7.3999999999999998e28Initial program 99.8%
Taylor expanded in z around 0 87.7%
mul-1-neg87.7%
div-sub87.7%
sub-neg87.7%
*-inverses87.7%
metadata-eval87.7%
Simplified87.7%
if -7.3999999999999998e28 < y < -4.40000000000000037e-47 or 1.2999999999999999e90 < y Initial program 99.0%
Taylor expanded in x around 0 89.5%
neg-mul-189.5%
distribute-neg-frac289.5%
neg-sub089.5%
associate--r-89.5%
neg-sub089.5%
Simplified89.5%
Taylor expanded in t around 0 69.7%
associate-/l*89.5%
Simplified89.5%
if -4.40000000000000037e-47 < y < 1.2999999999999999e90Initial program 96.5%
Taylor expanded in z around inf 75.3%
Final simplification81.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.45e+28)
(* t (- (/ x (- y)) -1.0))
(if (<= y -1.2e-45)
(* y (/ t (- y z)))
(if (<= y 1.3e+90) (* t (/ (- x y) z)) (* t (/ y (- y z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e+28) {
tmp = t * ((x / -y) - -1.0);
} else if (y <= -1.2e-45) {
tmp = y * (t / (y - z));
} else if (y <= 1.3e+90) {
tmp = t * ((x - y) / z);
} else {
tmp = t * (y / (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 (y <= (-2.45d+28)) then
tmp = t * ((x / -y) - (-1.0d0))
else if (y <= (-1.2d-45)) then
tmp = y * (t / (y - z))
else if (y <= 1.3d+90) then
tmp = t * ((x - y) / z)
else
tmp = t * (y / (y - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e+28) {
tmp = t * ((x / -y) - -1.0);
} else if (y <= -1.2e-45) {
tmp = y * (t / (y - z));
} else if (y <= 1.3e+90) {
tmp = t * ((x - y) / z);
} else {
tmp = t * (y / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.45e+28: tmp = t * ((x / -y) - -1.0) elif y <= -1.2e-45: tmp = y * (t / (y - z)) elif y <= 1.3e+90: tmp = t * ((x - y) / z) else: tmp = t * (y / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.45e+28) tmp = Float64(t * Float64(Float64(x / Float64(-y)) - -1.0)); elseif (y <= -1.2e-45) tmp = Float64(y * Float64(t / Float64(y - z))); elseif (y <= 1.3e+90) tmp = Float64(t * Float64(Float64(x - y) / z)); else tmp = Float64(t * Float64(y / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.45e+28) tmp = t * ((x / -y) - -1.0); elseif (y <= -1.2e-45) tmp = y * (t / (y - z)); elseif (y <= 1.3e+90) tmp = t * ((x - y) / z); else tmp = t * (y / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.45e+28], N[(t * N[(N[(x / (-y)), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.2e-45], N[(y * N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+90], N[(t * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.45 \cdot 10^{+28}:\\
\;\;\;\;t \cdot \left(\frac{x}{-y} - -1\right)\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-45}:\\
\;\;\;\;y \cdot \frac{t}{y - z}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+90}:\\
\;\;\;\;t \cdot \frac{x - y}{z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\end{array}
\end{array}
if y < -2.4499999999999998e28Initial program 99.8%
Taylor expanded in z around 0 87.7%
mul-1-neg87.7%
div-sub87.7%
sub-neg87.7%
*-inverses87.7%
metadata-eval87.7%
Simplified87.7%
if -2.4499999999999998e28 < y < -1.19999999999999995e-45Initial program 96.1%
associate-*l/99.7%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in x around 0 82.3%
mul-1-neg82.3%
associate-*l/82.4%
distribute-rgt-neg-out82.4%
Simplified82.4%
if -1.19999999999999995e-45 < y < 1.2999999999999999e90Initial program 96.5%
Taylor expanded in z around inf 75.3%
if 1.2999999999999999e90 < y Initial program 99.9%
Taylor expanded in x around 0 92.7%
neg-mul-192.7%
distribute-neg-frac292.7%
neg-sub092.7%
associate--r-92.7%
neg-sub092.7%
Simplified92.7%
Taylor expanded in t around 0 65.9%
associate-/l*92.7%
Simplified92.7%
Final simplification82.0%
(FPCore (x y z t) :precision binary64 (if (<= y -2e+152) (* t (- (/ x (- y)) -1.0)) (if (<= y 1.3e+101) (* (- x y) (/ t (- z y))) (* t (/ y (- y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e+152) {
tmp = t * ((x / -y) - -1.0);
} else if (y <= 1.3e+101) {
tmp = (x - y) * (t / (z - y));
} else {
tmp = t * (y / (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 (y <= (-2d+152)) then
tmp = t * ((x / -y) - (-1.0d0))
else if (y <= 1.3d+101) then
tmp = (x - y) * (t / (z - y))
else
tmp = t * (y / (y - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e+152) {
tmp = t * ((x / -y) - -1.0);
} else if (y <= 1.3e+101) {
tmp = (x - y) * (t / (z - y));
} else {
tmp = t * (y / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2e+152: tmp = t * ((x / -y) - -1.0) elif y <= 1.3e+101: tmp = (x - y) * (t / (z - y)) else: tmp = t * (y / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2e+152) tmp = Float64(t * Float64(Float64(x / Float64(-y)) - -1.0)); elseif (y <= 1.3e+101) tmp = Float64(Float64(x - y) * Float64(t / Float64(z - y))); else tmp = Float64(t * Float64(y / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2e+152) tmp = t * ((x / -y) - -1.0); elseif (y <= 1.3e+101) tmp = (x - y) * (t / (z - y)); else tmp = t * (y / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2e+152], N[(t * N[(N[(x / (-y)), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+101], N[(N[(x - y), $MachinePrecision] * N[(t / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+152}:\\
\;\;\;\;t \cdot \left(\frac{x}{-y} - -1\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+101}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{t}{z - y}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{y - z}\\
\end{array}
\end{array}
if y < -2.0000000000000001e152Initial program 99.8%
Taylor expanded in z around 0 94.8%
mul-1-neg94.8%
div-sub94.8%
sub-neg94.8%
*-inverses94.8%
metadata-eval94.8%
Simplified94.8%
if -2.0000000000000001e152 < y < 1.3e101Initial program 97.0%
associate-*l/96.1%
associate-/l*91.5%
Simplified91.5%
if 1.3e101 < y Initial program 100.0%
Taylor expanded in x around 0 95.9%
neg-mul-195.9%
distribute-neg-frac295.9%
neg-sub095.9%
associate--r-95.9%
neg-sub095.9%
Simplified95.9%
Taylor expanded in t around 0 68.3%
associate-/l*95.9%
Simplified95.9%
Final simplification92.7%
(FPCore (x y z t) :precision binary64 (if (<= y -1.05e-45) t (if (<= y 1.3e+90) (* x (/ t z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.05e-45) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = x * (t / z);
} else {
tmp = 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 (y <= (-1.05d-45)) then
tmp = t
else if (y <= 1.3d+90) then
tmp = x * (t / z)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.05e-45) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = x * (t / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.05e-45: tmp = t elif y <= 1.3e+90: tmp = x * (t / z) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.05e-45) tmp = t; elseif (y <= 1.3e+90) tmp = Float64(x * Float64(t / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.05e-45) tmp = t; elseif (y <= 1.3e+90) tmp = x * (t / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.05e-45], t, If[LessEqual[y, 1.3e+90], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{-45}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.04999999999999998e-45 or 1.2999999999999999e90 < y Initial program 99.4%
associate-*l/77.5%
associate-/l*74.3%
Simplified74.3%
Taylor expanded in y around inf 67.7%
if -1.04999999999999998e-45 < y < 1.2999999999999999e90Initial program 96.5%
associate-*l/96.9%
associate-/l*92.2%
Simplified92.2%
Taylor expanded in y around 0 60.1%
*-commutative60.1%
associate-/l*55.5%
Simplified55.5%
Final simplification61.3%
(FPCore (x y z t) :precision binary64 (if (<= y -1.2e-45) t (if (<= y 1.3e+90) (* t (/ x z)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.2e-45) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = t * (x / z);
} else {
tmp = 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 (y <= (-1.2d-45)) then
tmp = t
else if (y <= 1.3d+90) then
tmp = t * (x / z)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.2e-45) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = t * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.2e-45: tmp = t elif y <= 1.3e+90: tmp = t * (x / z) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.2e-45) tmp = t; elseif (y <= 1.3e+90) tmp = Float64(t * Float64(x / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.2e-45) tmp = t; elseif (y <= 1.3e+90) tmp = t * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.2e-45], t, If[LessEqual[y, 1.3e+90], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-45}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+90}:\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -1.19999999999999995e-45 or 1.2999999999999999e90 < y Initial program 99.4%
associate-*l/77.5%
associate-/l*74.3%
Simplified74.3%
Taylor expanded in y around inf 67.7%
if -1.19999999999999995e-45 < y < 1.2999999999999999e90Initial program 96.5%
Taylor expanded in y around 0 60.8%
Final simplification64.1%
(FPCore (x y z t) :precision binary64 (if (<= y -9.8e-46) t (if (<= y 1.3e+90) (/ t (/ z x)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9.8e-46) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = t / (z / x);
} else {
tmp = 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 (y <= (-9.8d-46)) then
tmp = t
else if (y <= 1.3d+90) then
tmp = t / (z / x)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9.8e-46) {
tmp = t;
} else if (y <= 1.3e+90) {
tmp = t / (z / x);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9.8e-46: tmp = t elif y <= 1.3e+90: tmp = t / (z / x) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9.8e-46) tmp = t; elseif (y <= 1.3e+90) tmp = Float64(t / Float64(z / x)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -9.8e-46) tmp = t; elseif (y <= 1.3e+90) tmp = t / (z / x); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9.8e-46], t, If[LessEqual[y, 1.3e+90], N[(t / N[(z / x), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.8 \cdot 10^{-46}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+90}:\\
\;\;\;\;\frac{t}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -9.8000000000000002e-46 or 1.2999999999999999e90 < y Initial program 99.4%
associate-*l/77.5%
associate-/l*74.3%
Simplified74.3%
Taylor expanded in y around inf 67.7%
if -9.8000000000000002e-46 < y < 1.2999999999999999e90Initial program 96.5%
associate-*l/96.9%
associate-/l*92.2%
Simplified92.2%
associate-*r/96.9%
associate-*l/96.5%
*-commutative96.5%
clear-num96.2%
un-div-inv96.5%
Applied egg-rr96.5%
Taylor expanded in y around 0 60.8%
Final simplification64.1%
(FPCore (x y z t) :precision binary64 t)
double code(double x, double y, double z, double t) {
return 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 = t
end function
public static double code(double x, double y, double z, double t) {
return t;
}
def code(x, y, z, t): return t
function code(x, y, z, t) return t end
function tmp = code(x, y, z, t) tmp = t; end
code[x_, y_, z_, t_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 97.9%
associate-*l/87.7%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in y around inf 39.2%
Final simplification39.2%
(FPCore (x y z t) :precision binary64 (/ t (/ (- z y) (- x y))))
double code(double x, double y, double z, double t) {
return t / ((z - y) / (x - y));
}
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 = t / ((z - y) / (x - y))
end function
public static double code(double x, double y, double z, double t) {
return t / ((z - y) / (x - y));
}
def code(x, y, z, t): return t / ((z - y) / (x - y))
function code(x, y, z, t) return Float64(t / Float64(Float64(z - y) / Float64(x - y))) end
function tmp = code(x, y, z, t) tmp = t / ((z - y) / (x - y)); end
code[x_, y_, z_, t_] := N[(t / N[(N[(z - y), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{t}{\frac{z - y}{x - y}}
\end{array}
herbie shell --seed 2024115
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cput from hsignal-0.2.7.1"
:precision binary64
:alt
(/ t (/ (- z y) (- x y)))
(* (/ (- x y) (- z y)) t))