
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.05e+120) (not (<= t 3.6e+274))) (+ y (* (/ (- y x) t) (- a z))) (fma (- y x) (/ (- z t) (- a t)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.05e+120) || !(t <= 3.6e+274)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = fma((y - x), ((z - t) / (a - t)), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.05e+120) || !(t <= 3.6e+274)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); else tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.05e+120], N[Not[LessEqual[t, 3.6e+274]], $MachinePrecision]], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+120} \lor \neg \left(t \leq 3.6 \cdot 10^{+274}\right):\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\end{array}
\end{array}
if t < -1.05e120 or 3.59999999999999995e274 < t Initial program 24.7%
Taylor expanded in t around inf 64.8%
associate--l+64.8%
distribute-lft-out--64.8%
div-sub64.8%
mul-1-neg64.8%
unsub-neg64.8%
div-sub64.8%
associate-/l*71.0%
associate-/l*93.6%
distribute-rgt-out--93.7%
Simplified93.7%
if -1.05e120 < t < 3.59999999999999995e274Initial program 80.5%
+-commutative80.5%
associate-/l*93.4%
fma-define93.5%
Simplified93.5%
Final simplification93.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a))))
(t_2 (+ x (* y (/ z a))))
(t_3 (* y (/ (- z t) (- a t))))
(t_4 (* z (/ (- y x) (- a t)))))
(if (<= t -8e+180)
t_3
(if (<= t -7.4e+41)
(* x (/ (- z a) t))
(if (<= t -5.4e-254)
(+ x (* z (/ y a)))
(if (<= t -3.1e-306)
t_1
(if (<= t 7.2e-87)
t_2
(if (<= t 2e-43)
t_4
(if (<= t 0.00036)
t_2
(if (<= t 8.8e+74) t_4 (if (<= t 1.1e+110) t_1 t_3)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double t_2 = x + (y * (z / a));
double t_3 = y * ((z - t) / (a - t));
double t_4 = z * ((y - x) / (a - t));
double tmp;
if (t <= -8e+180) {
tmp = t_3;
} else if (t <= -7.4e+41) {
tmp = x * ((z - a) / t);
} else if (t <= -5.4e-254) {
tmp = x + (z * (y / a));
} else if (t <= -3.1e-306) {
tmp = t_1;
} else if (t <= 7.2e-87) {
tmp = t_2;
} else if (t <= 2e-43) {
tmp = t_4;
} else if (t <= 0.00036) {
tmp = t_2;
} else if (t <= 8.8e+74) {
tmp = t_4;
} else if (t <= 1.1e+110) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
t_2 = x + (y * (z / a))
t_3 = y * ((z - t) / (a - t))
t_4 = z * ((y - x) / (a - t))
if (t <= (-8d+180)) then
tmp = t_3
else if (t <= (-7.4d+41)) then
tmp = x * ((z - a) / t)
else if (t <= (-5.4d-254)) then
tmp = x + (z * (y / a))
else if (t <= (-3.1d-306)) then
tmp = t_1
else if (t <= 7.2d-87) then
tmp = t_2
else if (t <= 2d-43) then
tmp = t_4
else if (t <= 0.00036d0) then
tmp = t_2
else if (t <= 8.8d+74) then
tmp = t_4
else if (t <= 1.1d+110) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double t_2 = x + (y * (z / a));
double t_3 = y * ((z - t) / (a - t));
double t_4 = z * ((y - x) / (a - t));
double tmp;
if (t <= -8e+180) {
tmp = t_3;
} else if (t <= -7.4e+41) {
tmp = x * ((z - a) / t);
} else if (t <= -5.4e-254) {
tmp = x + (z * (y / a));
} else if (t <= -3.1e-306) {
tmp = t_1;
} else if (t <= 7.2e-87) {
tmp = t_2;
} else if (t <= 2e-43) {
tmp = t_4;
} else if (t <= 0.00036) {
tmp = t_2;
} else if (t <= 8.8e+74) {
tmp = t_4;
} else if (t <= 1.1e+110) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) t_2 = x + (y * (z / a)) t_3 = y * ((z - t) / (a - t)) t_4 = z * ((y - x) / (a - t)) tmp = 0 if t <= -8e+180: tmp = t_3 elif t <= -7.4e+41: tmp = x * ((z - a) / t) elif t <= -5.4e-254: tmp = x + (z * (y / a)) elif t <= -3.1e-306: tmp = t_1 elif t <= 7.2e-87: tmp = t_2 elif t <= 2e-43: tmp = t_4 elif t <= 0.00036: tmp = t_2 elif t <= 8.8e+74: tmp = t_4 elif t <= 1.1e+110: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) t_2 = Float64(x + Float64(y * Float64(z / a))) t_3 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_4 = Float64(z * Float64(Float64(y - x) / Float64(a - t))) tmp = 0.0 if (t <= -8e+180) tmp = t_3; elseif (t <= -7.4e+41) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= -5.4e-254) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (t <= -3.1e-306) tmp = t_1; elseif (t <= 7.2e-87) tmp = t_2; elseif (t <= 2e-43) tmp = t_4; elseif (t <= 0.00036) tmp = t_2; elseif (t <= 8.8e+74) tmp = t_4; elseif (t <= 1.1e+110) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); t_2 = x + (y * (z / a)); t_3 = y * ((z - t) / (a - t)); t_4 = z * ((y - x) / (a - t)); tmp = 0.0; if (t <= -8e+180) tmp = t_3; elseif (t <= -7.4e+41) tmp = x * ((z - a) / t); elseif (t <= -5.4e-254) tmp = x + (z * (y / a)); elseif (t <= -3.1e-306) tmp = t_1; elseif (t <= 7.2e-87) tmp = t_2; elseif (t <= 2e-43) tmp = t_4; elseif (t <= 0.00036) tmp = t_2; elseif (t <= 8.8e+74) tmp = t_4; elseif (t <= 1.1e+110) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e+180], t$95$3, If[LessEqual[t, -7.4e+41], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-254], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.1e-306], t$95$1, If[LessEqual[t, 7.2e-87], t$95$2, If[LessEqual[t, 2e-43], t$95$4, If[LessEqual[t, 0.00036], t$95$2, If[LessEqual[t, 8.8e+74], t$95$4, If[LessEqual[t, 1.1e+110], t$95$1, t$95$3]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := x + y \cdot \frac{z}{a}\\
t_3 := y \cdot \frac{z - t}{a - t}\\
t_4 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;t \leq -8 \cdot 10^{+180}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -7.4 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-254}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-87}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-43}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 0.00036:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+74}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -8.0000000000000001e180 or 1.09999999999999996e110 < t Initial program 27.7%
add-cube-cbrt27.4%
pow327.4%
+-commutative27.4%
associate-/l*65.0%
fma-undefine65.1%
Applied egg-rr65.1%
Taylor expanded in y around inf 74.5%
div-sub74.5%
Simplified74.5%
if -8.0000000000000001e180 < t < -7.39999999999999962e41Initial program 69.5%
Taylor expanded in x around -inf 60.8%
associate-*r*60.8%
neg-mul-160.8%
+-commutative60.8%
Simplified60.8%
Taylor expanded in t around -inf 56.7%
associate-/l*68.8%
Simplified68.8%
if -7.39999999999999962e41 < t < -5.40000000000000013e-254Initial program 88.8%
Taylor expanded in t around 0 65.1%
Taylor expanded in y around inf 53.6%
*-commutative53.6%
Simplified53.6%
associate-/l*56.8%
Applied egg-rr56.8%
if -5.40000000000000013e-254 < t < -3.09999999999999998e-306 or 8.8000000000000005e74 < t < 1.09999999999999996e110Initial program 89.7%
Taylor expanded in x around -inf 75.5%
associate-*r*75.5%
neg-mul-175.5%
+-commutative75.5%
Simplified75.5%
Taylor expanded in t around 0 76.0%
mul-1-neg76.0%
sub-neg76.0%
metadata-eval76.0%
Simplified76.0%
if -3.09999999999999998e-306 < t < 7.19999999999999986e-87 or 2.00000000000000015e-43 < t < 3.60000000000000023e-4Initial program 90.9%
Taylor expanded in t around 0 79.8%
Taylor expanded in y around inf 79.6%
associate-/l*85.6%
Simplified85.6%
if 7.19999999999999986e-87 < t < 2.00000000000000015e-43 or 3.60000000000000023e-4 < t < 8.8000000000000005e74Initial program 94.9%
add-cube-cbrt94.0%
pow394.1%
+-commutative94.1%
associate-/l*98.6%
fma-undefine98.6%
Applied egg-rr98.6%
Taylor expanded in z around inf 80.9%
div-sub80.9%
Simplified80.9%
Final simplification73.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (* z (/ y a)))))
(if (<= t -7.8e+180)
t_1
(if (<= t -6.8e+41)
(* x (/ (- z a) t))
(if (<= t -5.2e-255)
t_2
(if (<= t -2.6e-305)
(* x (- 1.0 (/ z a)))
(if (<= t 2.7e-87)
(+ x (* y (/ z a)))
(if (or (<= t 8.2e-44) (not (<= t 1.35e+32))) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (z * (y / a));
double tmp;
if (t <= -7.8e+180) {
tmp = t_1;
} else if (t <= -6.8e+41) {
tmp = x * ((z - a) / t);
} else if (t <= -5.2e-255) {
tmp = t_2;
} else if (t <= -2.6e-305) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2.7e-87) {
tmp = x + (y * (z / a));
} else if ((t <= 8.2e-44) || !(t <= 1.35e+32)) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (z * (y / a))
if (t <= (-7.8d+180)) then
tmp = t_1
else if (t <= (-6.8d+41)) then
tmp = x * ((z - a) / t)
else if (t <= (-5.2d-255)) then
tmp = t_2
else if (t <= (-2.6d-305)) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 2.7d-87) then
tmp = x + (y * (z / a))
else if ((t <= 8.2d-44) .or. (.not. (t <= 1.35d+32))) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (z * (y / a));
double tmp;
if (t <= -7.8e+180) {
tmp = t_1;
} else if (t <= -6.8e+41) {
tmp = x * ((z - a) / t);
} else if (t <= -5.2e-255) {
tmp = t_2;
} else if (t <= -2.6e-305) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2.7e-87) {
tmp = x + (y * (z / a));
} else if ((t <= 8.2e-44) || !(t <= 1.35e+32)) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (z * (y / a)) tmp = 0 if t <= -7.8e+180: tmp = t_1 elif t <= -6.8e+41: tmp = x * ((z - a) / t) elif t <= -5.2e-255: tmp = t_2 elif t <= -2.6e-305: tmp = x * (1.0 - (z / a)) elif t <= 2.7e-87: tmp = x + (y * (z / a)) elif (t <= 8.2e-44) or not (t <= 1.35e+32): tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(z * Float64(y / a))) tmp = 0.0 if (t <= -7.8e+180) tmp = t_1; elseif (t <= -6.8e+41) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= -5.2e-255) tmp = t_2; elseif (t <= -2.6e-305) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 2.7e-87) tmp = Float64(x + Float64(y * Float64(z / a))); elseif ((t <= 8.2e-44) || !(t <= 1.35e+32)) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (z * (y / a)); tmp = 0.0; if (t <= -7.8e+180) tmp = t_1; elseif (t <= -6.8e+41) tmp = x * ((z - a) / t); elseif (t <= -5.2e-255) tmp = t_2; elseif (t <= -2.6e-305) tmp = x * (1.0 - (z / a)); elseif (t <= 2.7e-87) tmp = x + (y * (z / a)); elseif ((t <= 8.2e-44) || ~((t <= 1.35e+32))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.8e+180], t$95$1, If[LessEqual[t, -6.8e+41], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.2e-255], t$95$2, If[LessEqual[t, -2.6e-305], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-87], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 8.2e-44], N[Not[LessEqual[t, 1.35e+32]], $MachinePrecision]], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + z \cdot \frac{y}{a}\\
\mathbf{if}\;t \leq -7.8 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-255}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-305}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-87}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-44} \lor \neg \left(t \leq 1.35 \cdot 10^{+32}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -7.8000000000000002e180 or 2.69999999999999984e-87 < t < 8.19999999999999984e-44 or 1.35000000000000006e32 < t Initial program 42.7%
add-cube-cbrt42.3%
pow342.3%
+-commutative42.3%
associate-/l*72.0%
fma-undefine72.0%
Applied egg-rr72.0%
Taylor expanded in y around inf 70.4%
div-sub70.4%
Simplified70.4%
if -7.8000000000000002e180 < t < -6.79999999999999996e41Initial program 69.5%
Taylor expanded in x around -inf 60.8%
associate-*r*60.8%
neg-mul-160.8%
+-commutative60.8%
Simplified60.8%
Taylor expanded in t around -inf 56.7%
associate-/l*68.8%
Simplified68.8%
if -6.79999999999999996e41 < t < -5.20000000000000041e-255 or 8.19999999999999984e-44 < t < 1.35000000000000006e32Initial program 87.3%
Taylor expanded in t around 0 63.3%
Taylor expanded in y around inf 54.8%
*-commutative54.8%
Simplified54.8%
associate-/l*58.6%
Applied egg-rr58.6%
if -5.20000000000000041e-255 < t < -2.6000000000000002e-305Initial program 92.0%
Taylor expanded in x around -inf 84.6%
associate-*r*84.6%
neg-mul-184.6%
+-commutative84.6%
Simplified84.6%
Taylor expanded in t around 0 84.6%
mul-1-neg84.6%
sub-neg84.6%
metadata-eval84.6%
Simplified84.6%
if -2.6000000000000002e-305 < t < 2.69999999999999984e-87Initial program 94.2%
Taylor expanded in t around 0 82.9%
Taylor expanded in y around inf 82.7%
associate-/l*88.1%
Simplified88.1%
Final simplification71.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y (/ (- t z) (- a t))))))
(if (<= t -7.8e+180)
(* y (/ (- z t) (- a t)))
(if (<= t -2.1e+109)
(* x (/ (- z a) t))
(if (<= t -1.7e+42)
(- y (/ (* (- y x) z) t))
(if (<= t -5.4e-110)
t_1
(if (<= t 2.8e+68)
(+ x (* z (/ (- y x) (- a t))))
(if (<= t 3.3e+274) t_1 (+ y (* (/ (- y x) t) a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * ((t - z) / (a - t)));
double tmp;
if (t <= -7.8e+180) {
tmp = y * ((z - t) / (a - t));
} else if (t <= -2.1e+109) {
tmp = x * ((z - a) / t);
} else if (t <= -1.7e+42) {
tmp = y - (((y - x) * z) / t);
} else if (t <= -5.4e-110) {
tmp = t_1;
} else if (t <= 2.8e+68) {
tmp = x + (z * ((y - x) / (a - t)));
} else if (t <= 3.3e+274) {
tmp = t_1;
} else {
tmp = y + (((y - x) / t) * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y * ((t - z) / (a - t)))
if (t <= (-7.8d+180)) then
tmp = y * ((z - t) / (a - t))
else if (t <= (-2.1d+109)) then
tmp = x * ((z - a) / t)
else if (t <= (-1.7d+42)) then
tmp = y - (((y - x) * z) / t)
else if (t <= (-5.4d-110)) then
tmp = t_1
else if (t <= 2.8d+68) then
tmp = x + (z * ((y - x) / (a - t)))
else if (t <= 3.3d+274) then
tmp = t_1
else
tmp = y + (((y - x) / t) * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * ((t - z) / (a - t)));
double tmp;
if (t <= -7.8e+180) {
tmp = y * ((z - t) / (a - t));
} else if (t <= -2.1e+109) {
tmp = x * ((z - a) / t);
} else if (t <= -1.7e+42) {
tmp = y - (((y - x) * z) / t);
} else if (t <= -5.4e-110) {
tmp = t_1;
} else if (t <= 2.8e+68) {
tmp = x + (z * ((y - x) / (a - t)));
} else if (t <= 3.3e+274) {
tmp = t_1;
} else {
tmp = y + (((y - x) / t) * a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * ((t - z) / (a - t))) tmp = 0 if t <= -7.8e+180: tmp = y * ((z - t) / (a - t)) elif t <= -2.1e+109: tmp = x * ((z - a) / t) elif t <= -1.7e+42: tmp = y - (((y - x) * z) / t) elif t <= -5.4e-110: tmp = t_1 elif t <= 2.8e+68: tmp = x + (z * ((y - x) / (a - t))) elif t <= 3.3e+274: tmp = t_1 else: tmp = y + (((y - x) / t) * a) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y * Float64(Float64(t - z) / Float64(a - t)))) tmp = 0.0 if (t <= -7.8e+180) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= -2.1e+109) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= -1.7e+42) tmp = Float64(y - Float64(Float64(Float64(y - x) * z) / t)); elseif (t <= -5.4e-110) tmp = t_1; elseif (t <= 2.8e+68) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); elseif (t <= 3.3e+274) tmp = t_1; else tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y * ((t - z) / (a - t))); tmp = 0.0; if (t <= -7.8e+180) tmp = y * ((z - t) / (a - t)); elseif (t <= -2.1e+109) tmp = x * ((z - a) / t); elseif (t <= -1.7e+42) tmp = y - (((y - x) * z) / t); elseif (t <= -5.4e-110) tmp = t_1; elseif (t <= 2.8e+68) tmp = x + (z * ((y - x) / (a - t))); elseif (t <= 3.3e+274) tmp = t_1; else tmp = y + (((y - x) / t) * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.8e+180], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.1e+109], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.7e+42], N[(y - N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-110], t$95$1, If[LessEqual[t, 2.8e+68], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e+274], t$95$1, N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot \frac{t - z}{a - t}\\
\mathbf{if}\;t \leq -7.8 \cdot 10^{+180}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{+109}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{+42}:\\
\;\;\;\;y - \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+68}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+274}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + \frac{y - x}{t} \cdot a\\
\end{array}
\end{array}
if t < -7.8000000000000002e180Initial program 21.0%
add-cube-cbrt20.8%
pow320.8%
+-commutative20.8%
associate-/l*58.2%
fma-undefine58.2%
Applied egg-rr58.2%
Taylor expanded in y around inf 80.1%
div-sub80.1%
Simplified80.1%
if -7.8000000000000002e180 < t < -2.1000000000000001e109Initial program 52.3%
Taylor expanded in x around -inf 52.2%
associate-*r*52.2%
neg-mul-152.2%
+-commutative52.2%
Simplified52.2%
Taylor expanded in t around -inf 42.7%
associate-/l*69.2%
Simplified69.2%
if -2.1000000000000001e109 < t < -1.69999999999999988e42Initial program 83.8%
Taylor expanded in t around inf 92.2%
associate--l+92.2%
distribute-lft-out--92.2%
div-sub92.2%
mul-1-neg92.2%
unsub-neg92.2%
div-sub92.2%
associate-/l*92.1%
associate-/l*92.1%
distribute-rgt-out--92.1%
Simplified92.1%
Taylor expanded in z around inf 83.7%
if -1.69999999999999988e42 < t < -5.3999999999999996e-110 or 2.8e68 < t < 3.30000000000000014e274Initial program 64.6%
Taylor expanded in y around inf 62.5%
associate-/l*79.3%
Simplified79.3%
if -5.3999999999999996e-110 < t < 2.8e68Initial program 90.7%
Taylor expanded in z around inf 87.0%
associate-/l*92.4%
Simplified92.4%
if 3.30000000000000014e274 < t Initial program 4.0%
Taylor expanded in t around inf 61.6%
associate--l+61.6%
distribute-lft-out--61.6%
div-sub61.6%
mul-1-neg61.6%
unsub-neg61.6%
div-sub61.6%
associate-/l*61.6%
associate-/l*99.7%
distribute-rgt-out--99.8%
Simplified99.8%
Taylor expanded in z around 0 60.4%
mul-1-neg60.4%
associate-/l*98.7%
distribute-rgt-neg-in98.7%
distribute-neg-frac298.7%
Simplified98.7%
Final simplification86.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -8e+180)
t_1
(if (<= t -2.1e+109)
(* x (/ (- z a) t))
(if (<= t -2.15e+42)
(- y (/ (* (- y x) z) t))
(if (<= t 0.00039)
(+ x (* z (/ (- y x) a)))
(if (<= t 3.2e+74)
(* z (/ (- y x) (- a t)))
(if (<= t 1.05e+110) (* x (- 1.0 (/ z a))) t_1))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -8e+180) {
tmp = t_1;
} else if (t <= -2.1e+109) {
tmp = x * ((z - a) / t);
} else if (t <= -2.15e+42) {
tmp = y - (((y - x) * z) / t);
} else if (t <= 0.00039) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 3.2e+74) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 1.05e+110) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-8d+180)) then
tmp = t_1
else if (t <= (-2.1d+109)) then
tmp = x * ((z - a) / t)
else if (t <= (-2.15d+42)) then
tmp = y - (((y - x) * z) / t)
else if (t <= 0.00039d0) then
tmp = x + (z * ((y - x) / a))
else if (t <= 3.2d+74) then
tmp = z * ((y - x) / (a - t))
else if (t <= 1.05d+110) then
tmp = x * (1.0d0 - (z / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -8e+180) {
tmp = t_1;
} else if (t <= -2.1e+109) {
tmp = x * ((z - a) / t);
} else if (t <= -2.15e+42) {
tmp = y - (((y - x) * z) / t);
} else if (t <= 0.00039) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 3.2e+74) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 1.05e+110) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -8e+180: tmp = t_1 elif t <= -2.1e+109: tmp = x * ((z - a) / t) elif t <= -2.15e+42: tmp = y - (((y - x) * z) / t) elif t <= 0.00039: tmp = x + (z * ((y - x) / a)) elif t <= 3.2e+74: tmp = z * ((y - x) / (a - t)) elif t <= 1.05e+110: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -8e+180) tmp = t_1; elseif (t <= -2.1e+109) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= -2.15e+42) tmp = Float64(y - Float64(Float64(Float64(y - x) * z) / t)); elseif (t <= 0.00039) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 3.2e+74) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 1.05e+110) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -8e+180) tmp = t_1; elseif (t <= -2.1e+109) tmp = x * ((z - a) / t); elseif (t <= -2.15e+42) tmp = y - (((y - x) * z) / t); elseif (t <= 0.00039) tmp = x + (z * ((y - x) / a)); elseif (t <= 3.2e+74) tmp = z * ((y - x) / (a - t)); elseif (t <= 1.05e+110) tmp = x * (1.0 - (z / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e+180], t$95$1, If[LessEqual[t, -2.1e+109], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.15e+42], N[(y - N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00039], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+74], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+110], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -8 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{+109}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{+42}:\\
\;\;\;\;y - \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{elif}\;t \leq 0.00039:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+74}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.0000000000000001e180 or 1.05000000000000007e110 < t Initial program 27.7%
add-cube-cbrt27.4%
pow327.4%
+-commutative27.4%
associate-/l*65.0%
fma-undefine65.1%
Applied egg-rr65.1%
Taylor expanded in y around inf 74.5%
div-sub74.5%
Simplified74.5%
if -8.0000000000000001e180 < t < -2.1000000000000001e109Initial program 52.3%
Taylor expanded in x around -inf 52.2%
associate-*r*52.2%
neg-mul-152.2%
+-commutative52.2%
Simplified52.2%
Taylor expanded in t around -inf 42.7%
associate-/l*69.2%
Simplified69.2%
if -2.1000000000000001e109 < t < -2.1499999999999999e42Initial program 82.3%
Taylor expanded in t around inf 91.5%
associate--l+91.5%
distribute-lft-out--91.5%
div-sub91.5%
mul-1-neg91.5%
unsub-neg91.5%
div-sub91.5%
associate-/l*91.3%
associate-/l*91.3%
distribute-rgt-out--91.3%
Simplified91.3%
Taylor expanded in z around inf 82.2%
if -2.1499999999999999e42 < t < 3.89999999999999993e-4Initial program 90.4%
Taylor expanded in t around 0 71.2%
associate-/l*76.3%
Simplified76.3%
if 3.89999999999999993e-4 < t < 3.19999999999999995e74Initial program 99.0%
add-cube-cbrt97.8%
pow398.1%
+-commutative98.1%
associate-/l*97.8%
fma-undefine97.8%
Applied egg-rr97.8%
Taylor expanded in z around inf 99.5%
div-sub99.5%
Simplified99.5%
if 3.19999999999999995e74 < t < 1.05000000000000007e110Initial program 84.8%
Taylor expanded in x around -inf 55.7%
associate-*r*55.7%
neg-mul-155.7%
+-commutative55.7%
Simplified55.7%
Taylor expanded in t around 0 57.3%
mul-1-neg57.3%
sub-neg57.3%
metadata-eval57.3%
Simplified57.3%
Final simplification75.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -7.8e+180)
t_1
(if (<= t -2.1e+109)
(* x (/ (- z a) t))
(if (<= t -2.3e+42)
(- y (/ (* (- y x) z) t))
(if (<= t 0.00038)
(+ x (* z (/ (- y x) a)))
(if (<= t 8.8e+71)
(/ z (/ (- a t) (- y x)))
(if (<= t 1.18e+110) (* x (- 1.0 (/ z a))) t_1))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7.8e+180) {
tmp = t_1;
} else if (t <= -2.1e+109) {
tmp = x * ((z - a) / t);
} else if (t <= -2.3e+42) {
tmp = y - (((y - x) * z) / t);
} else if (t <= 0.00038) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8.8e+71) {
tmp = z / ((a - t) / (y - x));
} else if (t <= 1.18e+110) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-7.8d+180)) then
tmp = t_1
else if (t <= (-2.1d+109)) then
tmp = x * ((z - a) / t)
else if (t <= (-2.3d+42)) then
tmp = y - (((y - x) * z) / t)
else if (t <= 0.00038d0) then
tmp = x + (z * ((y - x) / a))
else if (t <= 8.8d+71) then
tmp = z / ((a - t) / (y - x))
else if (t <= 1.18d+110) then
tmp = x * (1.0d0 - (z / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7.8e+180) {
tmp = t_1;
} else if (t <= -2.1e+109) {
tmp = x * ((z - a) / t);
} else if (t <= -2.3e+42) {
tmp = y - (((y - x) * z) / t);
} else if (t <= 0.00038) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8.8e+71) {
tmp = z / ((a - t) / (y - x));
} else if (t <= 1.18e+110) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -7.8e+180: tmp = t_1 elif t <= -2.1e+109: tmp = x * ((z - a) / t) elif t <= -2.3e+42: tmp = y - (((y - x) * z) / t) elif t <= 0.00038: tmp = x + (z * ((y - x) / a)) elif t <= 8.8e+71: tmp = z / ((a - t) / (y - x)) elif t <= 1.18e+110: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -7.8e+180) tmp = t_1; elseif (t <= -2.1e+109) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= -2.3e+42) tmp = Float64(y - Float64(Float64(Float64(y - x) * z) / t)); elseif (t <= 0.00038) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 8.8e+71) tmp = Float64(z / Float64(Float64(a - t) / Float64(y - x))); elseif (t <= 1.18e+110) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -7.8e+180) tmp = t_1; elseif (t <= -2.1e+109) tmp = x * ((z - a) / t); elseif (t <= -2.3e+42) tmp = y - (((y - x) * z) / t); elseif (t <= 0.00038) tmp = x + (z * ((y - x) / a)); elseif (t <= 8.8e+71) tmp = z / ((a - t) / (y - x)); elseif (t <= 1.18e+110) tmp = x * (1.0 - (z / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.8e+180], t$95$1, If[LessEqual[t, -2.1e+109], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.3e+42], N[(y - N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00038], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e+71], N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e+110], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -7.8 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{+109}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{+42}:\\
\;\;\;\;y - \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{elif}\;t \leq 0.00038:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+71}:\\
\;\;\;\;\frac{z}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.8000000000000002e180 or 1.1799999999999999e110 < t Initial program 27.7%
add-cube-cbrt27.4%
pow327.4%
+-commutative27.4%
associate-/l*65.0%
fma-undefine65.1%
Applied egg-rr65.1%
Taylor expanded in y around inf 74.5%
div-sub74.5%
Simplified74.5%
if -7.8000000000000002e180 < t < -2.1000000000000001e109Initial program 52.3%
Taylor expanded in x around -inf 52.2%
associate-*r*52.2%
neg-mul-152.2%
+-commutative52.2%
Simplified52.2%
Taylor expanded in t around -inf 42.7%
associate-/l*69.2%
Simplified69.2%
if -2.1000000000000001e109 < t < -2.3e42Initial program 82.3%
Taylor expanded in t around inf 91.5%
associate--l+91.5%
distribute-lft-out--91.5%
div-sub91.5%
mul-1-neg91.5%
unsub-neg91.5%
div-sub91.5%
associate-/l*91.3%
associate-/l*91.3%
distribute-rgt-out--91.3%
Simplified91.3%
Taylor expanded in z around inf 82.2%
if -2.3e42 < t < 3.8000000000000002e-4Initial program 90.4%
Taylor expanded in t around 0 71.2%
associate-/l*76.3%
Simplified76.3%
if 3.8000000000000002e-4 < t < 8.79999999999999978e71Initial program 99.0%
add-cube-cbrt97.8%
pow398.1%
+-commutative98.1%
associate-/l*97.8%
fma-undefine97.8%
Applied egg-rr97.8%
Taylor expanded in z around inf 99.5%
div-sub99.5%
Simplified99.5%
clear-num99.2%
un-div-inv100.0%
Applied egg-rr100.0%
if 8.79999999999999978e71 < t < 1.1799999999999999e110Initial program 84.8%
Taylor expanded in x around -inf 55.7%
associate-*r*55.7%
neg-mul-155.7%
+-commutative55.7%
Simplified55.7%
Taylor expanded in t around 0 57.3%
mul-1-neg57.3%
sub-neg57.3%
metadata-eval57.3%
Simplified57.3%
Final simplification75.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -7.8e+180)
t_1
(if (<= t -2.45e+42)
(* x (/ (- z a) t))
(if (<= t 0.00055)
(+ x (* z (/ (- y x) a)))
(if (<= t 6.2e+70)
(* z (/ (- y x) (- a t)))
(if (<= t 1.3e+110) (* x (- 1.0 (/ z a))) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7.8e+180) {
tmp = t_1;
} else if (t <= -2.45e+42) {
tmp = x * ((z - a) / t);
} else if (t <= 0.00055) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 6.2e+70) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 1.3e+110) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-7.8d+180)) then
tmp = t_1
else if (t <= (-2.45d+42)) then
tmp = x * ((z - a) / t)
else if (t <= 0.00055d0) then
tmp = x + (z * ((y - x) / a))
else if (t <= 6.2d+70) then
tmp = z * ((y - x) / (a - t))
else if (t <= 1.3d+110) then
tmp = x * (1.0d0 - (z / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7.8e+180) {
tmp = t_1;
} else if (t <= -2.45e+42) {
tmp = x * ((z - a) / t);
} else if (t <= 0.00055) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 6.2e+70) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 1.3e+110) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -7.8e+180: tmp = t_1 elif t <= -2.45e+42: tmp = x * ((z - a) / t) elif t <= 0.00055: tmp = x + (z * ((y - x) / a)) elif t <= 6.2e+70: tmp = z * ((y - x) / (a - t)) elif t <= 1.3e+110: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -7.8e+180) tmp = t_1; elseif (t <= -2.45e+42) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= 0.00055) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 6.2e+70) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 1.3e+110) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -7.8e+180) tmp = t_1; elseif (t <= -2.45e+42) tmp = x * ((z - a) / t); elseif (t <= 0.00055) tmp = x + (z * ((y - x) / a)); elseif (t <= 6.2e+70) tmp = z * ((y - x) / (a - t)); elseif (t <= 1.3e+110) tmp = x * (1.0 - (z / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.8e+180], t$95$1, If[LessEqual[t, -2.45e+42], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00055], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+70], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e+110], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -7.8 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq 0.00055:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+70}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.8000000000000002e180 or 1.3e110 < t Initial program 27.7%
add-cube-cbrt27.4%
pow327.4%
+-commutative27.4%
associate-/l*65.0%
fma-undefine65.1%
Applied egg-rr65.1%
Taylor expanded in y around inf 74.5%
div-sub74.5%
Simplified74.5%
if -7.8000000000000002e180 < t < -2.4500000000000001e42Initial program 68.0%
Taylor expanded in x around -inf 59.0%
associate-*r*59.0%
neg-mul-159.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in t around -inf 54.7%
associate-/l*67.3%
Simplified67.3%
if -2.4500000000000001e42 < t < 5.50000000000000033e-4Initial program 90.4%
Taylor expanded in t around 0 71.2%
associate-/l*76.3%
Simplified76.3%
if 5.50000000000000033e-4 < t < 6.2000000000000006e70Initial program 99.0%
add-cube-cbrt97.8%
pow398.1%
+-commutative98.1%
associate-/l*97.8%
fma-undefine97.8%
Applied egg-rr97.8%
Taylor expanded in z around inf 99.5%
div-sub99.5%
Simplified99.5%
if 6.2000000000000006e70 < t < 1.3e110Initial program 84.8%
Taylor expanded in x around -inf 55.7%
associate-*r*55.7%
neg-mul-155.7%
+-commutative55.7%
Simplified55.7%
Taylor expanded in t around 0 57.3%
mul-1-neg57.3%
sub-neg57.3%
metadata-eval57.3%
Simplified57.3%
Final simplification75.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t))))
(t_2 (+ y (* (/ (- y x) t) (- a z)))))
(if (<= t -1.45e+58)
t_2
(if (<= t -4.8e-110)
t_1
(if (<= t 1.85e-155)
(+ x (* z (/ (- y x) (- a t))))
(if (<= t 7.8e+104) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double t_2 = y + (((y - x) / t) * (a - z));
double tmp;
if (t <= -1.45e+58) {
tmp = t_2;
} else if (t <= -4.8e-110) {
tmp = t_1;
} else if (t <= 1.85e-155) {
tmp = x + (z * ((y - x) / (a - t)));
} else if (t <= 7.8e+104) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
t_2 = y + (((y - x) / t) * (a - z))
if (t <= (-1.45d+58)) then
tmp = t_2
else if (t <= (-4.8d-110)) then
tmp = t_1
else if (t <= 1.85d-155) then
tmp = x + (z * ((y - x) / (a - t)))
else if (t <= 7.8d+104) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double t_2 = y + (((y - x) / t) * (a - z));
double tmp;
if (t <= -1.45e+58) {
tmp = t_2;
} else if (t <= -4.8e-110) {
tmp = t_1;
} else if (t <= 1.85e-155) {
tmp = x + (z * ((y - x) / (a - t)));
} else if (t <= 7.8e+104) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) t_2 = y + (((y - x) / t) * (a - z)) tmp = 0 if t <= -1.45e+58: tmp = t_2 elif t <= -4.8e-110: tmp = t_1 elif t <= 1.85e-155: tmp = x + (z * ((y - x) / (a - t))) elif t <= 7.8e+104: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) t_2 = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))) tmp = 0.0 if (t <= -1.45e+58) tmp = t_2; elseif (t <= -4.8e-110) tmp = t_1; elseif (t <= 1.85e-155) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); elseif (t <= 7.8e+104) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); t_2 = y + (((y - x) / t) * (a - z)); tmp = 0.0; if (t <= -1.45e+58) tmp = t_2; elseif (t <= -4.8e-110) tmp = t_1; elseif (t <= 1.85e-155) tmp = x + (z * ((y - x) / (a - t))); elseif (t <= 7.8e+104) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e+58], t$95$2, If[LessEqual[t, -4.8e-110], t$95$1, If[LessEqual[t, 1.85e-155], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e+104], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
t_2 := y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-155}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.45000000000000001e58 or 7.80000000000000033e104 < t Initial program 35.8%
Taylor expanded in t around inf 63.4%
associate--l+63.4%
distribute-lft-out--63.4%
div-sub63.4%
mul-1-neg63.4%
unsub-neg63.4%
div-sub63.4%
associate-/l*71.4%
associate-/l*85.6%
distribute-rgt-out--85.7%
Simplified85.7%
if -1.45000000000000001e58 < t < -4.80000000000000013e-110 or 1.85e-155 < t < 7.80000000000000033e104Initial program 90.2%
if -4.80000000000000013e-110 < t < 1.85e-155Initial program 91.0%
Taylor expanded in z around inf 89.9%
associate-/l*96.3%
Simplified96.3%
Final simplification90.4%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.9e+181)
y
(if (<= t -8.5e+39)
(* x (/ (- z a) t))
(if (<= t -6.2e-255)
(+ x (* z (/ y a)))
(if (<= t 2.1e-308)
(* x (- 1.0 (/ z a)))
(if (<= t 2.9e+114) (+ x (* y (/ z a))) y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.9e+181) {
tmp = y;
} else if (t <= -8.5e+39) {
tmp = x * ((z - a) / t);
} else if (t <= -6.2e-255) {
tmp = x + (z * (y / a));
} else if (t <= 2.1e-308) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2.9e+114) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-4.9d+181)) then
tmp = y
else if (t <= (-8.5d+39)) then
tmp = x * ((z - a) / t)
else if (t <= (-6.2d-255)) then
tmp = x + (z * (y / a))
else if (t <= 2.1d-308) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 2.9d+114) then
tmp = x + (y * (z / a))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.9e+181) {
tmp = y;
} else if (t <= -8.5e+39) {
tmp = x * ((z - a) / t);
} else if (t <= -6.2e-255) {
tmp = x + (z * (y / a));
} else if (t <= 2.1e-308) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2.9e+114) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.9e+181: tmp = y elif t <= -8.5e+39: tmp = x * ((z - a) / t) elif t <= -6.2e-255: tmp = x + (z * (y / a)) elif t <= 2.1e-308: tmp = x * (1.0 - (z / a)) elif t <= 2.9e+114: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.9e+181) tmp = y; elseif (t <= -8.5e+39) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= -6.2e-255) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (t <= 2.1e-308) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 2.9e+114) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.9e+181) tmp = y; elseif (t <= -8.5e+39) tmp = x * ((z - a) / t); elseif (t <= -6.2e-255) tmp = x + (z * (y / a)); elseif (t <= 2.1e-308) tmp = x * (1.0 - (z / a)); elseif (t <= 2.9e+114) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.9e+181], y, If[LessEqual[t, -8.5e+39], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.2e-255], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e-308], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+114], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.9 \cdot 10^{+181}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{+39}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-255}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-308}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+114}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.89999999999999981e181 or 2.9e114 < t Initial program 27.0%
Taylor expanded in t around inf 58.4%
if -4.89999999999999981e181 < t < -8.49999999999999971e39Initial program 69.5%
Taylor expanded in x around -inf 60.8%
associate-*r*60.8%
neg-mul-160.8%
+-commutative60.8%
Simplified60.8%
Taylor expanded in t around -inf 56.7%
associate-/l*68.8%
Simplified68.8%
if -8.49999999999999971e39 < t < -6.19999999999999995e-255Initial program 88.8%
Taylor expanded in t around 0 65.1%
Taylor expanded in y around inf 53.6%
*-commutative53.6%
Simplified53.6%
associate-/l*56.8%
Applied egg-rr56.8%
if -6.19999999999999995e-255 < t < 2.1e-308Initial program 92.0%
Taylor expanded in x around -inf 84.6%
associate-*r*84.6%
neg-mul-184.6%
+-commutative84.6%
Simplified84.6%
Taylor expanded in t around 0 84.6%
mul-1-neg84.6%
sub-neg84.6%
metadata-eval84.6%
Simplified84.6%
if 2.1e-308 < t < 2.9e114Initial program 90.5%
Taylor expanded in t around 0 65.6%
Taylor expanded in y around inf 63.0%
associate-/l*69.1%
Simplified69.1%
Final simplification63.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* (/ (- y x) t) (- a z)))))
(if (<= t -1.05e+42)
t_1
(if (<= t -5.2e-110)
(- x (* y (/ (- t z) (- a t))))
(if (<= t 7.8e+102) (+ x (* z (/ (- y x) (- a t)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + (((y - x) / t) * (a - z));
double tmp;
if (t <= -1.05e+42) {
tmp = t_1;
} else if (t <= -5.2e-110) {
tmp = x - (y * ((t - z) / (a - t)));
} else if (t <= 7.8e+102) {
tmp = x + (z * ((y - x) / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y + (((y - x) / t) * (a - z))
if (t <= (-1.05d+42)) then
tmp = t_1
else if (t <= (-5.2d-110)) then
tmp = x - (y * ((t - z) / (a - t)))
else if (t <= 7.8d+102) then
tmp = x + (z * ((y - x) / (a - t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y + (((y - x) / t) * (a - z));
double tmp;
if (t <= -1.05e+42) {
tmp = t_1;
} else if (t <= -5.2e-110) {
tmp = x - (y * ((t - z) / (a - t)));
} else if (t <= 7.8e+102) {
tmp = x + (z * ((y - x) / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + (((y - x) / t) * (a - z)) tmp = 0 if t <= -1.05e+42: tmp = t_1 elif t <= -5.2e-110: tmp = x - (y * ((t - z) / (a - t))) elif t <= 7.8e+102: tmp = x + (z * ((y - x) / (a - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))) tmp = 0.0 if (t <= -1.05e+42) tmp = t_1; elseif (t <= -5.2e-110) tmp = Float64(x - Float64(y * Float64(Float64(t - z) / Float64(a - t)))); elseif (t <= 7.8e+102) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + (((y - x) / t) * (a - z)); tmp = 0.0; if (t <= -1.05e+42) tmp = t_1; elseif (t <= -5.2e-110) tmp = x - (y * ((t - z) / (a - t))); elseif (t <= 7.8e+102) tmp = x + (z * ((y - x) / (a - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+42], t$95$1, If[LessEqual[t, -5.2e-110], N[(x - N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e+102], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-110}:\\
\;\;\;\;x - y \cdot \frac{t - z}{a - t}\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+102}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.04999999999999998e42 or 7.7999999999999997e102 < t Initial program 37.8%
Taylor expanded in t around inf 64.5%
associate--l+64.5%
distribute-lft-out--64.5%
div-sub64.5%
mul-1-neg64.5%
unsub-neg64.5%
div-sub64.5%
associate-/l*72.2%
associate-/l*86.1%
distribute-rgt-out--86.1%
Simplified86.1%
if -1.04999999999999998e42 < t < -5.19999999999999979e-110Initial program 90.4%
Taylor expanded in y around inf 87.3%
associate-/l*87.3%
Simplified87.3%
if -5.19999999999999979e-110 < t < 7.7999999999999997e102Initial program 90.4%
Taylor expanded in z around inf 86.2%
associate-/l*90.6%
Simplified90.6%
Final simplification88.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.1e+120) (not (<= t 8.8e+268))) (+ y (* (/ (- y x) t) (- a z))) (+ x (* (- z t) (* (- y x) (/ -1.0 (- t a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.1e+120) || !(t <= 8.8e+268)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.1d+120)) .or. (.not. (t <= 8.8d+268))) then
tmp = y + (((y - x) / t) * (a - z))
else
tmp = x + ((z - t) * ((y - x) * ((-1.0d0) / (t - a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.1e+120) || !(t <= 8.8e+268)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.1e+120) or not (t <= 8.8e+268): tmp = y + (((y - x) / t) * (a - z)) else: tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.1e+120) || !(t <= 8.8e+268)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(-1.0 / Float64(t - a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.1e+120) || ~((t <= 8.8e+268))) tmp = y + (((y - x) / t) * (a - z)); else tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.1e+120], N[Not[LessEqual[t, 8.8e+268]], $MachinePrecision]], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+120} \lor \neg \left(t \leq 8.8 \cdot 10^{+268}\right):\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{t - a}\right)\\
\end{array}
\end{array}
if t < -2.1e120 or 8.79999999999999977e268 < t Initial program 24.3%
Taylor expanded in t around inf 63.6%
associate--l+63.6%
distribute-lft-out--63.6%
div-sub63.6%
mul-1-neg63.6%
unsub-neg63.6%
div-sub63.6%
associate-/l*71.6%
associate-/l*93.7%
distribute-rgt-out--93.8%
Simplified93.8%
if -2.1e120 < t < 8.79999999999999977e268Initial program 80.9%
div-inv80.8%
*-commutative80.8%
associate-*l*92.0%
Applied egg-rr92.0%
Final simplification92.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.28e+181)
y
(if (<= t -2.35e+42)
(* x (/ (- z a) t))
(if (<= t 1.85e+115) (+ x (* y (/ z a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.28e+181) {
tmp = y;
} else if (t <= -2.35e+42) {
tmp = x * ((z - a) / t);
} else if (t <= 1.85e+115) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.28d+181)) then
tmp = y
else if (t <= (-2.35d+42)) then
tmp = x * ((z - a) / t)
else if (t <= 1.85d+115) then
tmp = x + (y * (z / a))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.28e+181) {
tmp = y;
} else if (t <= -2.35e+42) {
tmp = x * ((z - a) / t);
} else if (t <= 1.85e+115) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.28e+181: tmp = y elif t <= -2.35e+42: tmp = x * ((z - a) / t) elif t <= 1.85e+115: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.28e+181) tmp = y; elseif (t <= -2.35e+42) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= 1.85e+115) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.28e+181) tmp = y; elseif (t <= -2.35e+42) tmp = x * ((z - a) / t); elseif (t <= 1.85e+115) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.28e+181], y, If[LessEqual[t, -2.35e+42], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+115], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.28 \cdot 10^{+181}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.35 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+115}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.27999999999999997e181 or 1.85000000000000003e115 < t Initial program 27.0%
Taylor expanded in t around inf 58.4%
if -1.27999999999999997e181 < t < -2.34999999999999993e42Initial program 68.0%
Taylor expanded in x around -inf 59.0%
associate-*r*59.0%
neg-mul-159.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in t around -inf 54.7%
associate-/l*67.3%
Simplified67.3%
if -2.34999999999999993e42 < t < 1.85000000000000003e115Initial program 90.0%
Taylor expanded in t around 0 67.8%
Taylor expanded in y around inf 58.0%
associate-/l*63.0%
Simplified63.0%
Final simplification62.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.95e-42) (not (<= y 2.2e-12))) (* y (/ (- z t) (- a t))) (* x (+ (/ (- t z) (- a t)) 1.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.95e-42) || !(y <= 2.2e-12)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (((t - z) / (a - t)) + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.95d-42)) .or. (.not. (y <= 2.2d-12))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x * (((t - z) / (a - t)) + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.95e-42) || !(y <= 2.2e-12)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (((t - z) / (a - t)) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.95e-42) or not (y <= 2.2e-12): tmp = y * ((z - t) / (a - t)) else: tmp = x * (((t - z) / (a - t)) + 1.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.95e-42) || !(y <= 2.2e-12)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x * Float64(Float64(Float64(t - z) / Float64(a - t)) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.95e-42) || ~((y <= 2.2e-12))) tmp = y * ((z - t) / (a - t)); else tmp = x * (((t - z) / (a - t)) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.95e-42], N[Not[LessEqual[y, 2.2e-12]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{-42} \lor \neg \left(y \leq 2.2 \cdot 10^{-12}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{t - z}{a - t} + 1\right)\\
\end{array}
\end{array}
if y < -1.9500000000000001e-42 or 2.19999999999999992e-12 < y Initial program 65.7%
add-cube-cbrt64.9%
pow364.9%
+-commutative64.9%
associate-/l*89.8%
fma-undefine89.8%
Applied egg-rr89.8%
Taylor expanded in y around inf 72.1%
div-sub72.1%
Simplified72.1%
if -1.9500000000000001e-42 < y < 2.19999999999999992e-12Initial program 76.3%
Taylor expanded in x around inf 67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
Final simplification70.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8.6e-49) (not (<= a 3.5e-152))) (- x (* y (/ (- t z) (- a t)))) (- y (/ (* (- y x) z) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.6e-49) || !(a <= 3.5e-152)) {
tmp = x - (y * ((t - z) / (a - t)));
} else {
tmp = y - (((y - x) * z) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-8.6d-49)) .or. (.not. (a <= 3.5d-152))) then
tmp = x - (y * ((t - z) / (a - t)))
else
tmp = y - (((y - x) * z) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.6e-49) || !(a <= 3.5e-152)) {
tmp = x - (y * ((t - z) / (a - t)));
} else {
tmp = y - (((y - x) * z) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8.6e-49) or not (a <= 3.5e-152): tmp = x - (y * ((t - z) / (a - t))) else: tmp = y - (((y - x) * z) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8.6e-49) || !(a <= 3.5e-152)) tmp = Float64(x - Float64(y * Float64(Float64(t - z) / Float64(a - t)))); else tmp = Float64(y - Float64(Float64(Float64(y - x) * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8.6e-49) || ~((a <= 3.5e-152))) tmp = x - (y * ((t - z) / (a - t))); else tmp = y - (((y - x) * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8.6e-49], N[Not[LessEqual[a, 3.5e-152]], $MachinePrecision]], N[(x - N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.6 \cdot 10^{-49} \lor \neg \left(a \leq 3.5 \cdot 10^{-152}\right):\\
\;\;\;\;x - y \cdot \frac{t - z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(y - x\right) \cdot z}{t}\\
\end{array}
\end{array}
if a < -8.60000000000000033e-49 or 3.5000000000000001e-152 < a Initial program 68.5%
Taylor expanded in y around inf 61.8%
associate-/l*75.0%
Simplified75.0%
if -8.60000000000000033e-49 < a < 3.5000000000000001e-152Initial program 74.0%
Taylor expanded in t around inf 86.2%
associate--l+86.2%
distribute-lft-out--86.2%
div-sub86.2%
mul-1-neg86.2%
unsub-neg86.2%
div-sub86.2%
associate-/l*87.5%
associate-/l*77.5%
distribute-rgt-out--87.5%
Simplified87.5%
Taylor expanded in z around inf 85.0%
Final simplification78.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.02e+182) y (if (<= t -5.2e+40) (* x (/ (- z a) t)) (if (<= t 1.9e+115) x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.02e+182) {
tmp = y;
} else if (t <= -5.2e+40) {
tmp = x * ((z - a) / t);
} else if (t <= 1.9e+115) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.02d+182)) then
tmp = y
else if (t <= (-5.2d+40)) then
tmp = x * ((z - a) / t)
else if (t <= 1.9d+115) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.02e+182) {
tmp = y;
} else if (t <= -5.2e+40) {
tmp = x * ((z - a) / t);
} else if (t <= 1.9e+115) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.02e+182: tmp = y elif t <= -5.2e+40: tmp = x * ((z - a) / t) elif t <= 1.9e+115: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.02e+182) tmp = y; elseif (t <= -5.2e+40) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= 1.9e+115) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.02e+182) tmp = y; elseif (t <= -5.2e+40) tmp = x * ((z - a) / t); elseif (t <= 1.9e+115) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.02e+182], y, If[LessEqual[t, -5.2e+40], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+115], x, y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+182}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+115}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.02e182 or 1.9e115 < t Initial program 27.0%
Taylor expanded in t around inf 58.4%
if -1.02e182 < t < -5.2000000000000001e40Initial program 69.5%
Taylor expanded in x around -inf 60.8%
associate-*r*60.8%
neg-mul-160.8%
+-commutative60.8%
Simplified60.8%
Taylor expanded in t around -inf 56.7%
associate-/l*68.8%
Simplified68.8%
if -5.2000000000000001e40 < t < 1.9e115Initial program 90.0%
Taylor expanded in a around inf 34.7%
Final simplification44.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.34e+81) (* x (/ (- z a) t)) (if (<= z 2.8e-102) x (* y (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.34e+81) {
tmp = x * ((z - a) / t);
} else if (z <= 2.8e-102) {
tmp = x;
} else {
tmp = y * (z / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.34d+81)) then
tmp = x * ((z - a) / t)
else if (z <= 2.8d-102) then
tmp = x
else
tmp = y * (z / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.34e+81) {
tmp = x * ((z - a) / t);
} else if (z <= 2.8e-102) {
tmp = x;
} else {
tmp = y * (z / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.34e+81: tmp = x * ((z - a) / t) elif z <= 2.8e-102: tmp = x else: tmp = y * (z / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.34e+81) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (z <= 2.8e-102) tmp = x; else tmp = Float64(y * Float64(z / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.34e+81) tmp = x * ((z - a) / t); elseif (z <= 2.8e-102) tmp = x; else tmp = y * (z / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.34e+81], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-102], x, N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.34 \cdot 10^{+81}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-102}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if z < -1.33999999999999997e81Initial program 71.3%
Taylor expanded in x around -inf 57.2%
associate-*r*57.2%
neg-mul-157.2%
+-commutative57.2%
Simplified57.2%
Taylor expanded in t around -inf 38.3%
associate-/l*49.6%
Simplified49.6%
if -1.33999999999999997e81 < z < 2.80000000000000013e-102Initial program 67.7%
Taylor expanded in a around inf 41.2%
if 2.80000000000000013e-102 < z Initial program 73.3%
add-cube-cbrt72.3%
pow372.3%
+-commutative72.3%
associate-/l*89.1%
fma-undefine89.1%
Applied egg-rr89.1%
Taylor expanded in z around inf 60.7%
div-sub62.0%
Simplified62.0%
Taylor expanded in y around inf 39.1%
associate-/l*43.7%
Simplified43.7%
Final simplification43.9%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.8e+176) y (if (<= t -4.8e+38) (* x (/ z t)) (if (<= t 1.3e+115) x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+176) {
tmp = y;
} else if (t <= -4.8e+38) {
tmp = x * (z / t);
} else if (t <= 1.3e+115) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-3.8d+176)) then
tmp = y
else if (t <= (-4.8d+38)) then
tmp = x * (z / t)
else if (t <= 1.3d+115) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+176) {
tmp = y;
} else if (t <= -4.8e+38) {
tmp = x * (z / t);
} else if (t <= 1.3e+115) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.8e+176: tmp = y elif t <= -4.8e+38: tmp = x * (z / t) elif t <= 1.3e+115: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.8e+176) tmp = y; elseif (t <= -4.8e+38) tmp = Float64(x * Float64(z / t)); elseif (t <= 1.3e+115) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.8e+176) tmp = y; elseif (t <= -4.8e+38) tmp = x * (z / t); elseif (t <= 1.3e+115) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.8e+176], y, If[LessEqual[t, -4.8e+38], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e+115], x, y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+176}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{+38}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+115}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.8000000000000003e176 or 1.3e115 < t Initial program 26.7%
Taylor expanded in t around inf 57.7%
if -3.8000000000000003e176 < t < -4.80000000000000035e38Initial program 72.6%
Taylor expanded in x around -inf 63.6%
associate-*r*63.6%
neg-mul-163.6%
+-commutative63.6%
Simplified63.6%
Taylor expanded in a around 0 50.3%
associate-/l*54.8%
Simplified54.8%
if -4.80000000000000035e38 < t < 1.3e115Initial program 90.0%
Taylor expanded in a around inf 34.7%
Final simplification43.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.7e+172) y (if (<= t 1.7e+115) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+172) {
tmp = y;
} else if (t <= 1.7e+115) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.7d+172)) then
tmp = y
else if (t <= 1.7d+115) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+172) {
tmp = y;
} else if (t <= 1.7e+115) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e+172: tmp = y elif t <= 1.7e+115: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e+172) tmp = y; elseif (t <= 1.7e+115) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e+172) tmp = y; elseif (t <= 1.7e+115) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e+172], y, If[LessEqual[t, 1.7e+115], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+172}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+115}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.6999999999999999e172 or 1.7e115 < t Initial program 26.7%
Taylor expanded in t around inf 57.7%
if -1.6999999999999999e172 < t < 1.7e115Initial program 88.0%
Taylor expanded in a around inf 32.3%
Final simplification39.6%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 70.3%
Taylor expanded in a around inf 24.9%
Final simplification24.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024096
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))