
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
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 - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
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 - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= z -2e+142)
(+ t (* (- t x) (/ (- a y) z)))
(if (<= z 2.8e+159)
(fma (- t x) (/ (- z y) (- z a)) x)
(+ t (/ (- t x) (/ z (- a y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= 2.8e+159) {
tmp = fma((t - x), ((z - y) / (z - a)), x);
} else {
tmp = t + ((t - x) / (z / (a - y)));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2e+142) tmp = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))); elseif (z <= 2.8e+159) tmp = fma(Float64(t - x), Float64(Float64(z - y) / Float64(z - a)), x); else tmp = Float64(t + Float64(Float64(t - x) / Float64(z / Float64(a - y)))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2e+142], N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+159], N[(N[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(t + N[(N[(t - x), $MachinePrecision] / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+142}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+159}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{z - y}{z - a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\
\end{array}
\end{array}
if z < -2.0000000000000001e142Initial program 25.5%
associate-/l*63.5%
Simplified63.5%
clear-num63.2%
un-div-inv63.3%
Applied egg-rr63.3%
Taylor expanded in z around inf 71.3%
associate--l+71.3%
associate-*r/71.3%
associate-*r/71.3%
mul-1-neg71.3%
div-sub71.3%
mul-1-neg71.3%
distribute-lft-out--71.3%
associate-*r/71.3%
mul-1-neg71.3%
unsub-neg71.3%
distribute-rgt-out--74.0%
*-lft-identity74.0%
times-frac92.1%
Simplified92.1%
if -2.0000000000000001e142 < z < 2.8000000000000001e159Initial program 85.7%
+-commutative85.7%
*-commutative85.7%
associate-/l*94.2%
fma-define94.2%
Simplified94.2%
if 2.8000000000000001e159 < z Initial program 17.6%
associate-/l*51.4%
Simplified51.4%
clear-num51.1%
un-div-inv51.5%
Applied egg-rr51.5%
Taylor expanded in z around inf 53.9%
associate--l+53.9%
associate-*r/53.9%
associate-*r/53.9%
mul-1-neg53.9%
div-sub53.9%
mul-1-neg53.9%
distribute-lft-out--53.9%
associate-*r/53.9%
mul-1-neg53.9%
unsub-neg53.9%
distribute-rgt-out--53.9%
*-lft-identity53.9%
times-frac92.3%
Simplified92.3%
clear-num92.4%
un-div-inv92.4%
Applied egg-rr92.4%
Final simplification93.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- z y) (- z a)))) (t_2 (+ x (* y (/ (- t x) a)))))
(if (<= a -3.4e+127)
(+ x (* z (/ t (- z a))))
(if (<= a -3.8e+60)
(* y (/ (- x t) (- z a)))
(if (<= a -2.4e-13)
t_2
(if (<= a -2.1e-85)
t_1
(if (<= a 1.25e-94)
(+ t (* (/ y z) (- x t)))
(if (<= a 5e+16)
t_1
(if (<= a 1.15e+27) (/ (* x (- y a)) z) t_2)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((z - y) / (z - a));
double t_2 = x + (y * ((t - x) / a));
double tmp;
if (a <= -3.4e+127) {
tmp = x + (z * (t / (z - a)));
} else if (a <= -3.8e+60) {
tmp = y * ((x - t) / (z - a));
} else if (a <= -2.4e-13) {
tmp = t_2;
} else if (a <= -2.1e-85) {
tmp = t_1;
} else if (a <= 1.25e-94) {
tmp = t + ((y / z) * (x - t));
} else if (a <= 5e+16) {
tmp = t_1;
} else if (a <= 1.15e+27) {
tmp = (x * (y - a)) / z;
} 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 = t * ((z - y) / (z - a))
t_2 = x + (y * ((t - x) / a))
if (a <= (-3.4d+127)) then
tmp = x + (z * (t / (z - a)))
else if (a <= (-3.8d+60)) then
tmp = y * ((x - t) / (z - a))
else if (a <= (-2.4d-13)) then
tmp = t_2
else if (a <= (-2.1d-85)) then
tmp = t_1
else if (a <= 1.25d-94) then
tmp = t + ((y / z) * (x - t))
else if (a <= 5d+16) then
tmp = t_1
else if (a <= 1.15d+27) then
tmp = (x * (y - a)) / z
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 = t * ((z - y) / (z - a));
double t_2 = x + (y * ((t - x) / a));
double tmp;
if (a <= -3.4e+127) {
tmp = x + (z * (t / (z - a)));
} else if (a <= -3.8e+60) {
tmp = y * ((x - t) / (z - a));
} else if (a <= -2.4e-13) {
tmp = t_2;
} else if (a <= -2.1e-85) {
tmp = t_1;
} else if (a <= 1.25e-94) {
tmp = t + ((y / z) * (x - t));
} else if (a <= 5e+16) {
tmp = t_1;
} else if (a <= 1.15e+27) {
tmp = (x * (y - a)) / z;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((z - y) / (z - a)) t_2 = x + (y * ((t - x) / a)) tmp = 0 if a <= -3.4e+127: tmp = x + (z * (t / (z - a))) elif a <= -3.8e+60: tmp = y * ((x - t) / (z - a)) elif a <= -2.4e-13: tmp = t_2 elif a <= -2.1e-85: tmp = t_1 elif a <= 1.25e-94: tmp = t + ((y / z) * (x - t)) elif a <= 5e+16: tmp = t_1 elif a <= 1.15e+27: tmp = (x * (y - a)) / z else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(z - y) / Float64(z - a))) t_2 = Float64(x + Float64(y * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -3.4e+127) tmp = Float64(x + Float64(z * Float64(t / Float64(z - a)))); elseif (a <= -3.8e+60) tmp = Float64(y * Float64(Float64(x - t) / Float64(z - a))); elseif (a <= -2.4e-13) tmp = t_2; elseif (a <= -2.1e-85) tmp = t_1; elseif (a <= 1.25e-94) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); elseif (a <= 5e+16) tmp = t_1; elseif (a <= 1.15e+27) tmp = Float64(Float64(x * Float64(y - a)) / z); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((z - y) / (z - a)); t_2 = x + (y * ((t - x) / a)); tmp = 0.0; if (a <= -3.4e+127) tmp = x + (z * (t / (z - a))); elseif (a <= -3.8e+60) tmp = y * ((x - t) / (z - a)); elseif (a <= -2.4e-13) tmp = t_2; elseif (a <= -2.1e-85) tmp = t_1; elseif (a <= 1.25e-94) tmp = t + ((y / z) * (x - t)); elseif (a <= 5e+16) tmp = t_1; elseif (a <= 1.15e+27) tmp = (x * (y - a)) / z; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e+127], N[(x + N[(z * N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e+60], N[(y * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.4e-13], t$95$2, If[LessEqual[a, -2.1e-85], t$95$1, If[LessEqual[a, 1.25e-94], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+16], t$95$1, If[LessEqual[a, 1.15e+27], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z - y}{z - a}\\
t_2 := x + y \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{+127}:\\
\;\;\;\;x + z \cdot \frac{t}{z - a}\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \frac{x - t}{z - a}\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-94}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+27}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.39999999999999977e127Initial program 76.8%
associate-/l*91.2%
Simplified91.2%
Taylor expanded in y around 0 63.0%
mul-1-neg63.0%
unsub-neg63.0%
associate-/l*77.4%
Simplified77.4%
Taylor expanded in t around inf 77.5%
if -3.39999999999999977e127 < a < -3.80000000000000009e60Initial program 93.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in y around inf 85.7%
div-sub85.7%
Simplified85.7%
if -3.80000000000000009e60 < a < -2.3999999999999999e-13 or 1.15e27 < a Initial program 65.4%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in z around 0 54.1%
associate-/l*67.0%
Simplified67.0%
if -2.3999999999999999e-13 < a < -2.1e-85 or 1.2499999999999999e-94 < a < 5e16Initial program 73.6%
associate-/l*77.3%
Simplified77.3%
Taylor expanded in x around 0 63.9%
associate-/l*79.2%
Simplified79.2%
if -2.1e-85 < a < 1.2499999999999999e-94Initial program 63.2%
+-commutative63.2%
associate-/l*73.9%
fma-define73.9%
Simplified73.9%
Taylor expanded in a around 0 65.1%
mul-1-neg65.1%
distribute-neg-frac265.1%
Simplified65.1%
Taylor expanded in y around 0 83.5%
mul-1-neg83.5%
div-sub84.7%
associate-/l*79.6%
unsub-neg79.6%
*-commutative79.6%
*-lft-identity79.6%
times-frac89.0%
/-rgt-identity89.0%
Simplified89.0%
if 5e16 < a < 1.15e27Initial program 67.8%
associate-/l*67.7%
Simplified67.7%
clear-num67.7%
un-div-inv67.7%
Applied egg-rr67.7%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
*-lft-identity100.0%
times-frac100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
Final simplification79.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- z y) (- z a)))) (t_2 (+ x (* y (/ (- t x) a)))))
(if (<= a -2.15e+127)
(+ x (* z (/ t (- z a))))
(if (<= a -4.4e+60)
(/ (* y (- x t)) (- z a))
(if (<= a -2.7e-13)
t_2
(if (<= a -4.7e-86)
t_1
(if (<= a 1.04e-94)
(+ t (* (/ y z) (- x t)))
(if (<= a 5e+16)
t_1
(if (<= a 3.05e+25) (/ (* x (- y a)) z) t_2)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((z - y) / (z - a));
double t_2 = x + (y * ((t - x) / a));
double tmp;
if (a <= -2.15e+127) {
tmp = x + (z * (t / (z - a)));
} else if (a <= -4.4e+60) {
tmp = (y * (x - t)) / (z - a);
} else if (a <= -2.7e-13) {
tmp = t_2;
} else if (a <= -4.7e-86) {
tmp = t_1;
} else if (a <= 1.04e-94) {
tmp = t + ((y / z) * (x - t));
} else if (a <= 5e+16) {
tmp = t_1;
} else if (a <= 3.05e+25) {
tmp = (x * (y - a)) / z;
} 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 = t * ((z - y) / (z - a))
t_2 = x + (y * ((t - x) / a))
if (a <= (-2.15d+127)) then
tmp = x + (z * (t / (z - a)))
else if (a <= (-4.4d+60)) then
tmp = (y * (x - t)) / (z - a)
else if (a <= (-2.7d-13)) then
tmp = t_2
else if (a <= (-4.7d-86)) then
tmp = t_1
else if (a <= 1.04d-94) then
tmp = t + ((y / z) * (x - t))
else if (a <= 5d+16) then
tmp = t_1
else if (a <= 3.05d+25) then
tmp = (x * (y - a)) / z
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 = t * ((z - y) / (z - a));
double t_2 = x + (y * ((t - x) / a));
double tmp;
if (a <= -2.15e+127) {
tmp = x + (z * (t / (z - a)));
} else if (a <= -4.4e+60) {
tmp = (y * (x - t)) / (z - a);
} else if (a <= -2.7e-13) {
tmp = t_2;
} else if (a <= -4.7e-86) {
tmp = t_1;
} else if (a <= 1.04e-94) {
tmp = t + ((y / z) * (x - t));
} else if (a <= 5e+16) {
tmp = t_1;
} else if (a <= 3.05e+25) {
tmp = (x * (y - a)) / z;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((z - y) / (z - a)) t_2 = x + (y * ((t - x) / a)) tmp = 0 if a <= -2.15e+127: tmp = x + (z * (t / (z - a))) elif a <= -4.4e+60: tmp = (y * (x - t)) / (z - a) elif a <= -2.7e-13: tmp = t_2 elif a <= -4.7e-86: tmp = t_1 elif a <= 1.04e-94: tmp = t + ((y / z) * (x - t)) elif a <= 5e+16: tmp = t_1 elif a <= 3.05e+25: tmp = (x * (y - a)) / z else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(z - y) / Float64(z - a))) t_2 = Float64(x + Float64(y * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -2.15e+127) tmp = Float64(x + Float64(z * Float64(t / Float64(z - a)))); elseif (a <= -4.4e+60) tmp = Float64(Float64(y * Float64(x - t)) / Float64(z - a)); elseif (a <= -2.7e-13) tmp = t_2; elseif (a <= -4.7e-86) tmp = t_1; elseif (a <= 1.04e-94) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); elseif (a <= 5e+16) tmp = t_1; elseif (a <= 3.05e+25) tmp = Float64(Float64(x * Float64(y - a)) / z); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((z - y) / (z - a)); t_2 = x + (y * ((t - x) / a)); tmp = 0.0; if (a <= -2.15e+127) tmp = x + (z * (t / (z - a))); elseif (a <= -4.4e+60) tmp = (y * (x - t)) / (z - a); elseif (a <= -2.7e-13) tmp = t_2; elseif (a <= -4.7e-86) tmp = t_1; elseif (a <= 1.04e-94) tmp = t + ((y / z) * (x - t)); elseif (a <= 5e+16) tmp = t_1; elseif (a <= 3.05e+25) tmp = (x * (y - a)) / z; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.15e+127], N[(x + N[(z * N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e+60], N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.7e-13], t$95$2, If[LessEqual[a, -4.7e-86], t$95$1, If[LessEqual[a, 1.04e-94], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+16], t$95$1, If[LessEqual[a, 3.05e+25], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z - y}{z - a}\\
t_2 := x + y \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -2.15 \cdot 10^{+127}:\\
\;\;\;\;x + z \cdot \frac{t}{z - a}\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{+60}:\\
\;\;\;\;\frac{y \cdot \left(x - t\right)}{z - a}\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.04 \cdot 10^{-94}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.05 \cdot 10^{+25}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.14999999999999992e127Initial program 76.8%
associate-/l*91.2%
Simplified91.2%
Taylor expanded in y around 0 63.0%
mul-1-neg63.0%
unsub-neg63.0%
associate-/l*77.4%
Simplified77.4%
Taylor expanded in t around inf 77.5%
if -2.14999999999999992e127 < a < -4.39999999999999992e60Initial program 93.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in y around -inf 85.9%
if -4.39999999999999992e60 < a < -2.70000000000000011e-13 or 3.0500000000000001e25 < a Initial program 65.4%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in z around 0 54.1%
associate-/l*67.0%
Simplified67.0%
if -2.70000000000000011e-13 < a < -4.7000000000000001e-86 or 1.04e-94 < a < 5e16Initial program 73.6%
associate-/l*77.3%
Simplified77.3%
Taylor expanded in x around 0 63.9%
associate-/l*79.2%
Simplified79.2%
if -4.7000000000000001e-86 < a < 1.04e-94Initial program 63.2%
+-commutative63.2%
associate-/l*73.9%
fma-define73.9%
Simplified73.9%
Taylor expanded in a around 0 65.1%
mul-1-neg65.1%
distribute-neg-frac265.1%
Simplified65.1%
Taylor expanded in y around 0 83.5%
mul-1-neg83.5%
div-sub84.7%
associate-/l*79.6%
unsub-neg79.6%
*-commutative79.6%
*-lft-identity79.6%
times-frac89.0%
/-rgt-identity89.0%
Simplified89.0%
if 5e16 < a < 3.0500000000000001e25Initial program 67.8%
associate-/l*67.7%
Simplified67.7%
clear-num67.7%
un-div-inv67.7%
Applied egg-rr67.7%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
*-lft-identity100.0%
times-frac100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
Final simplification79.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ (- a y) z)))))
(if (<= z -4.6e+105)
t_1
(if (<= z -1.8e-27)
(* t (/ (- z y) (- z a)))
(if (<= z 1.25e-53)
(- x (/ y (/ a (- x t))))
(if (or (<= z 1.05e+53) (not (<= z 1.5e+108)))
t_1
(+ x (* z (/ t (- z a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -4.6e+105) {
tmp = t_1;
} else if (z <= -1.8e-27) {
tmp = t * ((z - y) / (z - a));
} else if (z <= 1.25e-53) {
tmp = x - (y / (a / (x - t)));
} else if ((z <= 1.05e+53) || !(z <= 1.5e+108)) {
tmp = t_1;
} else {
tmp = x + (z * (t / (z - 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 = t + ((t - x) * ((a - y) / z))
if (z <= (-4.6d+105)) then
tmp = t_1
else if (z <= (-1.8d-27)) then
tmp = t * ((z - y) / (z - a))
else if (z <= 1.25d-53) then
tmp = x - (y / (a / (x - t)))
else if ((z <= 1.05d+53) .or. (.not. (z <= 1.5d+108))) then
tmp = t_1
else
tmp = x + (z * (t / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -4.6e+105) {
tmp = t_1;
} else if (z <= -1.8e-27) {
tmp = t * ((z - y) / (z - a));
} else if (z <= 1.25e-53) {
tmp = x - (y / (a / (x - t)));
} else if ((z <= 1.05e+53) || !(z <= 1.5e+108)) {
tmp = t_1;
} else {
tmp = x + (z * (t / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * ((a - y) / z)) tmp = 0 if z <= -4.6e+105: tmp = t_1 elif z <= -1.8e-27: tmp = t * ((z - y) / (z - a)) elif z <= 1.25e-53: tmp = x - (y / (a / (x - t))) elif (z <= 1.05e+53) or not (z <= 1.5e+108): tmp = t_1 else: tmp = x + (z * (t / (z - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -4.6e+105) tmp = t_1; elseif (z <= -1.8e-27) tmp = Float64(t * Float64(Float64(z - y) / Float64(z - a))); elseif (z <= 1.25e-53) tmp = Float64(x - Float64(y / Float64(a / Float64(x - t)))); elseif ((z <= 1.05e+53) || !(z <= 1.5e+108)) tmp = t_1; else tmp = Float64(x + Float64(z * Float64(t / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * ((a - y) / z)); tmp = 0.0; if (z <= -4.6e+105) tmp = t_1; elseif (z <= -1.8e-27) tmp = t * ((z - y) / (z - a)); elseif (z <= 1.25e-53) tmp = x - (y / (a / (x - t))); elseif ((z <= 1.05e+53) || ~((z <= 1.5e+108))) tmp = t_1; else tmp = x + (z * (t / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.6e+105], t$95$1, If[LessEqual[z, -1.8e-27], N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-53], N[(x - N[(y / N[(a / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 1.05e+53], N[Not[LessEqual[z, 1.5e+108]], $MachinePrecision]], t$95$1, N[(x + N[(z * N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-27}:\\
\;\;\;\;t \cdot \frac{z - y}{z - a}\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-53}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x - t}}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+53} \lor \neg \left(z \leq 1.5 \cdot 10^{+108}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{t}{z - a}\\
\end{array}
\end{array}
if z < -4.5999999999999996e105 or 1.25e-53 < z < 1.0500000000000001e53 or 1.49999999999999992e108 < z Initial program 40.0%
associate-/l*68.6%
Simplified68.6%
clear-num68.3%
un-div-inv68.5%
Applied egg-rr68.5%
Taylor expanded in z around inf 63.9%
associate--l+63.9%
associate-*r/63.9%
associate-*r/63.9%
mul-1-neg63.9%
div-sub63.9%
mul-1-neg63.9%
distribute-lft-out--63.9%
associate-*r/63.9%
mul-1-neg63.9%
unsub-neg63.9%
distribute-rgt-out--65.1%
*-lft-identity65.1%
times-frac83.4%
Simplified83.4%
if -4.5999999999999996e105 < z < -1.7999999999999999e-27Initial program 78.8%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in x around 0 70.6%
associate-/l*77.3%
Simplified77.3%
if -1.7999999999999999e-27 < z < 1.25e-53Initial program 92.9%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in z around 0 77.1%
associate-/l*78.7%
Simplified78.7%
clear-num78.7%
un-div-inv79.5%
Applied egg-rr79.5%
if 1.0500000000000001e53 < z < 1.49999999999999992e108Initial program 91.1%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
unsub-neg71.2%
associate-/l*81.0%
Simplified81.0%
Taylor expanded in t around inf 81.3%
Final simplification81.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- t x) (/ z (- a y))))))
(if (<= z -1.02e+84)
t_1
(if (<= z -6.8e-26)
(* t (/ (- z y) (- z a)))
(if (<= z 7e-53)
(- x (/ y (/ a (- x t))))
(if (or (<= z 1.05e+53) (not (<= z 1.25e+108)))
t_1
(+ x (* z (/ t (- z a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) / (z / (a - y)));
double tmp;
if (z <= -1.02e+84) {
tmp = t_1;
} else if (z <= -6.8e-26) {
tmp = t * ((z - y) / (z - a));
} else if (z <= 7e-53) {
tmp = x - (y / (a / (x - t)));
} else if ((z <= 1.05e+53) || !(z <= 1.25e+108)) {
tmp = t_1;
} else {
tmp = x + (z * (t / (z - 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 = t + ((t - x) / (z / (a - y)))
if (z <= (-1.02d+84)) then
tmp = t_1
else if (z <= (-6.8d-26)) then
tmp = t * ((z - y) / (z - a))
else if (z <= 7d-53) then
tmp = x - (y / (a / (x - t)))
else if ((z <= 1.05d+53) .or. (.not. (z <= 1.25d+108))) then
tmp = t_1
else
tmp = x + (z * (t / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) / (z / (a - y)));
double tmp;
if (z <= -1.02e+84) {
tmp = t_1;
} else if (z <= -6.8e-26) {
tmp = t * ((z - y) / (z - a));
} else if (z <= 7e-53) {
tmp = x - (y / (a / (x - t)));
} else if ((z <= 1.05e+53) || !(z <= 1.25e+108)) {
tmp = t_1;
} else {
tmp = x + (z * (t / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) / (z / (a - y))) tmp = 0 if z <= -1.02e+84: tmp = t_1 elif z <= -6.8e-26: tmp = t * ((z - y) / (z - a)) elif z <= 7e-53: tmp = x - (y / (a / (x - t))) elif (z <= 1.05e+53) or not (z <= 1.25e+108): tmp = t_1 else: tmp = x + (z * (t / (z - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) / Float64(z / Float64(a - y)))) tmp = 0.0 if (z <= -1.02e+84) tmp = t_1; elseif (z <= -6.8e-26) tmp = Float64(t * Float64(Float64(z - y) / Float64(z - a))); elseif (z <= 7e-53) tmp = Float64(x - Float64(y / Float64(a / Float64(x - t)))); elseif ((z <= 1.05e+53) || !(z <= 1.25e+108)) tmp = t_1; else tmp = Float64(x + Float64(z * Float64(t / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) / (z / (a - y))); tmp = 0.0; if (z <= -1.02e+84) tmp = t_1; elseif (z <= -6.8e-26) tmp = t * ((z - y) / (z - a)); elseif (z <= 7e-53) tmp = x - (y / (a / (x - t))); elseif ((z <= 1.05e+53) || ~((z <= 1.25e+108))) tmp = t_1; else tmp = x + (z * (t / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(t - x), $MachinePrecision] / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.02e+84], t$95$1, If[LessEqual[z, -6.8e-26], N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e-53], N[(x - N[(y / N[(a / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 1.05e+53], N[Not[LessEqual[z, 1.25e+108]], $MachinePrecision]], t$95$1, N[(x + N[(z * N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{t - x}{\frac{z}{a - y}}\\
\mathbf{if}\;z \leq -1.02 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-26}:\\
\;\;\;\;t \cdot \frac{z - y}{z - a}\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-53}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x - t}}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+53} \lor \neg \left(z \leq 1.25 \cdot 10^{+108}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{t}{z - a}\\
\end{array}
\end{array}
if z < -1.0199999999999999e84 or 6.99999999999999987e-53 < z < 1.0500000000000001e53 or 1.24999999999999998e108 < z Initial program 42.9%
associate-/l*70.5%
Simplified70.5%
clear-num70.2%
un-div-inv70.4%
Applied egg-rr70.4%
Taylor expanded in z around inf 62.8%
associate--l+62.8%
associate-*r/62.8%
associate-*r/62.8%
mul-1-neg62.8%
div-sub62.8%
mul-1-neg62.8%
distribute-lft-out--62.8%
associate-*r/62.8%
mul-1-neg62.8%
unsub-neg62.8%
distribute-rgt-out--63.8%
*-lft-identity63.8%
times-frac81.8%
Simplified81.8%
clear-num81.8%
un-div-inv81.9%
Applied egg-rr81.9%
if -1.0199999999999999e84 < z < -6.80000000000000026e-26Initial program 75.7%
associate-/l*84.9%
Simplified84.9%
Taylor expanded in x around 0 75.4%
associate-/l*84.7%
Simplified84.7%
if -6.80000000000000026e-26 < z < 6.99999999999999987e-53Initial program 92.9%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in z around 0 77.1%
associate-/l*78.7%
Simplified78.7%
clear-num78.7%
un-div-inv79.5%
Applied egg-rr79.5%
if 1.0500000000000001e53 < z < 1.24999999999999998e108Initial program 91.1%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
unsub-neg71.2%
associate-/l*81.0%
Simplified81.0%
Taylor expanded in t around inf 81.3%
Final simplification81.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- z y) (- z a)))) (t_2 (+ x (* y (/ (- t x) a)))))
(if (<= a -6.5e-11)
t_2
(if (<= a -5.1e-85)
t_1
(if (<= a 6.1e-94)
(+ t (* (/ y z) (- x t)))
(if (<= a 5e+16)
t_1
(if (<= a 3.05e+25) (/ (* x (- y a)) z) t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((z - y) / (z - a));
double t_2 = x + (y * ((t - x) / a));
double tmp;
if (a <= -6.5e-11) {
tmp = t_2;
} else if (a <= -5.1e-85) {
tmp = t_1;
} else if (a <= 6.1e-94) {
tmp = t + ((y / z) * (x - t));
} else if (a <= 5e+16) {
tmp = t_1;
} else if (a <= 3.05e+25) {
tmp = (x * (y - a)) / z;
} 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 = t * ((z - y) / (z - a))
t_2 = x + (y * ((t - x) / a))
if (a <= (-6.5d-11)) then
tmp = t_2
else if (a <= (-5.1d-85)) then
tmp = t_1
else if (a <= 6.1d-94) then
tmp = t + ((y / z) * (x - t))
else if (a <= 5d+16) then
tmp = t_1
else if (a <= 3.05d+25) then
tmp = (x * (y - a)) / z
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 = t * ((z - y) / (z - a));
double t_2 = x + (y * ((t - x) / a));
double tmp;
if (a <= -6.5e-11) {
tmp = t_2;
} else if (a <= -5.1e-85) {
tmp = t_1;
} else if (a <= 6.1e-94) {
tmp = t + ((y / z) * (x - t));
} else if (a <= 5e+16) {
tmp = t_1;
} else if (a <= 3.05e+25) {
tmp = (x * (y - a)) / z;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((z - y) / (z - a)) t_2 = x + (y * ((t - x) / a)) tmp = 0 if a <= -6.5e-11: tmp = t_2 elif a <= -5.1e-85: tmp = t_1 elif a <= 6.1e-94: tmp = t + ((y / z) * (x - t)) elif a <= 5e+16: tmp = t_1 elif a <= 3.05e+25: tmp = (x * (y - a)) / z else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(z - y) / Float64(z - a))) t_2 = Float64(x + Float64(y * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -6.5e-11) tmp = t_2; elseif (a <= -5.1e-85) tmp = t_1; elseif (a <= 6.1e-94) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); elseif (a <= 5e+16) tmp = t_1; elseif (a <= 3.05e+25) tmp = Float64(Float64(x * Float64(y - a)) / z); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((z - y) / (z - a)); t_2 = x + (y * ((t - x) / a)); tmp = 0.0; if (a <= -6.5e-11) tmp = t_2; elseif (a <= -5.1e-85) tmp = t_1; elseif (a <= 6.1e-94) tmp = t + ((y / z) * (x - t)); elseif (a <= 5e+16) tmp = t_1; elseif (a <= 3.05e+25) tmp = (x * (y - a)) / z; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e-11], t$95$2, If[LessEqual[a, -5.1e-85], t$95$1, If[LessEqual[a, 6.1e-94], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+16], t$95$1, If[LessEqual[a, 3.05e+25], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z - y}{z - a}\\
t_2 := x + y \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{-11}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.1 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.1 \cdot 10^{-94}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.05 \cdot 10^{+25}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.49999999999999953e-11 or 3.0500000000000001e25 < a Initial program 72.2%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around 0 59.4%
associate-/l*68.7%
Simplified68.7%
if -6.49999999999999953e-11 < a < -5.1000000000000002e-85 or 6.09999999999999992e-94 < a < 5e16Initial program 73.6%
associate-/l*77.3%
Simplified77.3%
Taylor expanded in x around 0 63.9%
associate-/l*79.2%
Simplified79.2%
if -5.1000000000000002e-85 < a < 6.09999999999999992e-94Initial program 63.2%
+-commutative63.2%
associate-/l*73.9%
fma-define73.9%
Simplified73.9%
Taylor expanded in a around 0 65.1%
mul-1-neg65.1%
distribute-neg-frac265.1%
Simplified65.1%
Taylor expanded in y around 0 83.5%
mul-1-neg83.5%
div-sub84.7%
associate-/l*79.6%
unsub-neg79.6%
*-commutative79.6%
*-lft-identity79.6%
times-frac89.0%
/-rgt-identity89.0%
Simplified89.0%
if 5e16 < a < 3.0500000000000001e25Initial program 67.8%
associate-/l*67.7%
Simplified67.7%
clear-num67.7%
un-div-inv67.7%
Applied egg-rr67.7%
Taylor expanded in z around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r/100.0%
mul-1-neg100.0%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
*-lft-identity100.0%
times-frac100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
Final simplification78.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- x t) (- z a))))))
(if (<= z -3.2e+142)
(+ t (* (- t x) (/ (- a y) z)))
(if (<= z -2.25e-144)
t_1
(if (<= z 8.2e-225)
(+ x (/ (* (- y z) (- x t)) (- z a)))
(if (<= z 8.2e+161) t_1 (+ t (/ (- t x) (/ z (- a y))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((x - t) / (z - a)));
double tmp;
if (z <= -3.2e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= -2.25e-144) {
tmp = t_1;
} else if (z <= 8.2e-225) {
tmp = x + (((y - z) * (x - t)) / (z - a));
} else if (z <= 8.2e+161) {
tmp = t_1;
} else {
tmp = t + ((t - x) / (z / (a - 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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((x - t) / (z - a)))
if (z <= (-3.2d+142)) then
tmp = t + ((t - x) * ((a - y) / z))
else if (z <= (-2.25d-144)) then
tmp = t_1
else if (z <= 8.2d-225) then
tmp = x + (((y - z) * (x - t)) / (z - a))
else if (z <= 8.2d+161) then
tmp = t_1
else
tmp = t + ((t - x) / (z / (a - y)))
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 - z) * ((x - t) / (z - a)));
double tmp;
if (z <= -3.2e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= -2.25e-144) {
tmp = t_1;
} else if (z <= 8.2e-225) {
tmp = x + (((y - z) * (x - t)) / (z - a));
} else if (z <= 8.2e+161) {
tmp = t_1;
} else {
tmp = t + ((t - x) / (z / (a - y)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((x - t) / (z - a))) tmp = 0 if z <= -3.2e+142: tmp = t + ((t - x) * ((a - y) / z)) elif z <= -2.25e-144: tmp = t_1 elif z <= 8.2e-225: tmp = x + (((y - z) * (x - t)) / (z - a)) elif z <= 8.2e+161: tmp = t_1 else: tmp = t + ((t - x) / (z / (a - y))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(x - t) / Float64(z - a)))) tmp = 0.0 if (z <= -3.2e+142) tmp = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))); elseif (z <= -2.25e-144) tmp = t_1; elseif (z <= 8.2e-225) tmp = Float64(x + Float64(Float64(Float64(y - z) * Float64(x - t)) / Float64(z - a))); elseif (z <= 8.2e+161) tmp = t_1; else tmp = Float64(t + Float64(Float64(t - x) / Float64(z / Float64(a - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((x - t) / (z - a))); tmp = 0.0; if (z <= -3.2e+142) tmp = t + ((t - x) * ((a - y) / z)); elseif (z <= -2.25e-144) tmp = t_1; elseif (z <= 8.2e-225) tmp = x + (((y - z) * (x - t)) / (z - a)); elseif (z <= 8.2e+161) tmp = t_1; else tmp = t + ((t - x) / (z / (a - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e+142], N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.25e-144], t$95$1, If[LessEqual[z, 8.2e-225], N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+161], t$95$1, N[(t + N[(N[(t - x), $MachinePrecision] / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{x - t}{z - a}\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+142}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{elif}\;z \leq -2.25 \cdot 10^{-144}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-225}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot \left(x - t\right)}{z - a}\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+161}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\
\end{array}
\end{array}
if z < -3.20000000000000005e142Initial program 25.5%
associate-/l*63.5%
Simplified63.5%
clear-num63.2%
un-div-inv63.3%
Applied egg-rr63.3%
Taylor expanded in z around inf 71.3%
associate--l+71.3%
associate-*r/71.3%
associate-*r/71.3%
mul-1-neg71.3%
div-sub71.3%
mul-1-neg71.3%
distribute-lft-out--71.3%
associate-*r/71.3%
mul-1-neg71.3%
unsub-neg71.3%
distribute-rgt-out--74.0%
*-lft-identity74.0%
times-frac92.1%
Simplified92.1%
if -3.20000000000000005e142 < z < -2.2499999999999999e-144 or 8.20000000000000044e-225 < z < 8.2000000000000002e161Initial program 80.0%
associate-/l*90.4%
Simplified90.4%
if -2.2499999999999999e-144 < z < 8.20000000000000044e-225Initial program 99.4%
if 8.2000000000000002e161 < z Initial program 17.6%
associate-/l*51.4%
Simplified51.4%
clear-num51.1%
un-div-inv51.5%
Applied egg-rr51.5%
Taylor expanded in z around inf 53.9%
associate--l+53.9%
associate-*r/53.9%
associate-*r/53.9%
mul-1-neg53.9%
div-sub53.9%
mul-1-neg53.9%
distribute-lft-out--53.9%
associate-*r/53.9%
mul-1-neg53.9%
unsub-neg53.9%
distribute-rgt-out--53.9%
*-lft-identity53.9%
times-frac92.3%
Simplified92.3%
clear-num92.4%
un-div-inv92.4%
Applied egg-rr92.4%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.5e+142)
(+ t (* (- t x) (/ (- a y) z)))
(if (<= z -2.5e-145)
(+ x (* (- y z) (/ (- x t) (- z a))))
(if (<= z 5e-223)
(+ x (/ (* (- y z) (- x t)) (- z a)))
(if (<= z 9.8e+166)
(+ x (/ (- y z) (/ (- a z) (- t x))))
(+ t (/ (- t x) (/ z (- a y)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= -2.5e-145) {
tmp = x + ((y - z) * ((x - t) / (z - a)));
} else if (z <= 5e-223) {
tmp = x + (((y - z) * (x - t)) / (z - a));
} else if (z <= 9.8e+166) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t + ((t - x) / (z / (a - 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 (z <= (-4.5d+142)) then
tmp = t + ((t - x) * ((a - y) / z))
else if (z <= (-2.5d-145)) then
tmp = x + ((y - z) * ((x - t) / (z - a)))
else if (z <= 5d-223) then
tmp = x + (((y - z) * (x - t)) / (z - a))
else if (z <= 9.8d+166) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
else
tmp = t + ((t - x) / (z / (a - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= -2.5e-145) {
tmp = x + ((y - z) * ((x - t) / (z - a)));
} else if (z <= 5e-223) {
tmp = x + (((y - z) * (x - t)) / (z - a));
} else if (z <= 9.8e+166) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t + ((t - x) / (z / (a - y)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.5e+142: tmp = t + ((t - x) * ((a - y) / z)) elif z <= -2.5e-145: tmp = x + ((y - z) * ((x - t) / (z - a))) elif z <= 5e-223: tmp = x + (((y - z) * (x - t)) / (z - a)) elif z <= 9.8e+166: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t + ((t - x) / (z / (a - y))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.5e+142) tmp = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))); elseif (z <= -2.5e-145) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(x - t) / Float64(z - a)))); elseif (z <= 5e-223) tmp = Float64(x + Float64(Float64(Float64(y - z) * Float64(x - t)) / Float64(z - a))); elseif (z <= 9.8e+166) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = Float64(t + Float64(Float64(t - x) / Float64(z / Float64(a - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.5e+142) tmp = t + ((t - x) * ((a - y) / z)); elseif (z <= -2.5e-145) tmp = x + ((y - z) * ((x - t) / (z - a))); elseif (z <= 5e-223) tmp = x + (((y - z) * (x - t)) / (z - a)); elseif (z <= 9.8e+166) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t + ((t - x) / (z / (a - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.5e+142], N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.5e-145], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-223], N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.8e+166], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(t - x), $MachinePrecision] / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+142}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-145}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{x - t}{z - a}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-223}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot \left(x - t\right)}{z - a}\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+166}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\
\end{array}
\end{array}
if z < -4.4999999999999999e142Initial program 25.5%
associate-/l*63.5%
Simplified63.5%
clear-num63.2%
un-div-inv63.3%
Applied egg-rr63.3%
Taylor expanded in z around inf 71.3%
associate--l+71.3%
associate-*r/71.3%
associate-*r/71.3%
mul-1-neg71.3%
div-sub71.3%
mul-1-neg71.3%
distribute-lft-out--71.3%
associate-*r/71.3%
mul-1-neg71.3%
unsub-neg71.3%
distribute-rgt-out--74.0%
*-lft-identity74.0%
times-frac92.1%
Simplified92.1%
if -4.4999999999999999e142 < z < -2.4999999999999999e-145Initial program 74.5%
associate-/l*90.7%
Simplified90.7%
if -2.4999999999999999e-145 < z < 5.00000000000000024e-223Initial program 99.4%
if 5.00000000000000024e-223 < z < 9.79999999999999938e166Initial program 84.8%
associate-/l*90.1%
Simplified90.1%
clear-num90.1%
un-div-inv91.4%
Applied egg-rr91.4%
if 9.79999999999999938e166 < z Initial program 17.6%
associate-/l*51.4%
Simplified51.4%
clear-num51.1%
un-div-inv51.5%
Applied egg-rr51.5%
Taylor expanded in z around inf 53.9%
associate--l+53.9%
associate-*r/53.9%
associate-*r/53.9%
mul-1-neg53.9%
div-sub53.9%
mul-1-neg53.9%
distribute-lft-out--53.9%
associate-*r/53.9%
mul-1-neg53.9%
unsub-neg53.9%
distribute-rgt-out--53.9%
*-lft-identity53.9%
times-frac92.3%
Simplified92.3%
clear-num92.4%
un-div-inv92.4%
Applied egg-rr92.4%
Final simplification93.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- x t) (- z a)))) (t_2 (* t (/ (- z y) (- z a)))))
(if (<= t -1.45e-140)
t_2
(if (<= t -1.5e-200)
t_1
(if (<= t 4e-139) (- x (* x (/ y a))) (if (<= t 16500.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((x - t) / (z - a));
double t_2 = t * ((z - y) / (z - a));
double tmp;
if (t <= -1.45e-140) {
tmp = t_2;
} else if (t <= -1.5e-200) {
tmp = t_1;
} else if (t <= 4e-139) {
tmp = x - (x * (y / a));
} else if (t <= 16500.0) {
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 * ((x - t) / (z - a))
t_2 = t * ((z - y) / (z - a))
if (t <= (-1.45d-140)) then
tmp = t_2
else if (t <= (-1.5d-200)) then
tmp = t_1
else if (t <= 4d-139) then
tmp = x - (x * (y / a))
else if (t <= 16500.0d0) 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 * ((x - t) / (z - a));
double t_2 = t * ((z - y) / (z - a));
double tmp;
if (t <= -1.45e-140) {
tmp = t_2;
} else if (t <= -1.5e-200) {
tmp = t_1;
} else if (t <= 4e-139) {
tmp = x - (x * (y / a));
} else if (t <= 16500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((x - t) / (z - a)) t_2 = t * ((z - y) / (z - a)) tmp = 0 if t <= -1.45e-140: tmp = t_2 elif t <= -1.5e-200: tmp = t_1 elif t <= 4e-139: tmp = x - (x * (y / a)) elif t <= 16500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(x - t) / Float64(z - a))) t_2 = Float64(t * Float64(Float64(z - y) / Float64(z - a))) tmp = 0.0 if (t <= -1.45e-140) tmp = t_2; elseif (t <= -1.5e-200) tmp = t_1; elseif (t <= 4e-139) tmp = Float64(x - Float64(x * Float64(y / a))); elseif (t <= 16500.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((x - t) / (z - a)); t_2 = t * ((z - y) / (z - a)); tmp = 0.0; if (t <= -1.45e-140) tmp = t_2; elseif (t <= -1.5e-200) tmp = t_1; elseif (t <= 4e-139) tmp = x - (x * (y / a)); elseif (t <= 16500.0) 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[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e-140], t$95$2, If[LessEqual[t, -1.5e-200], t$95$1, If[LessEqual[t, 4e-139], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 16500.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{x - t}{z - a}\\
t_2 := t \cdot \frac{z - y}{z - a}\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{-140}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-139}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 16500:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.44999999999999999e-140 or 16500 < t Initial program 74.0%
associate-/l*89.5%
Simplified89.5%
Taylor expanded in x around 0 60.4%
associate-/l*79.3%
Simplified79.3%
if -1.44999999999999999e-140 < t < -1.49999999999999997e-200 or 4.00000000000000012e-139 < t < 16500Initial program 61.9%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in y around inf 60.1%
div-sub60.1%
Simplified60.1%
if -1.49999999999999997e-200 < t < 4.00000000000000012e-139Initial program 61.8%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in z around 0 54.4%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in t around 0 53.0%
mul-1-neg53.0%
associate-/l*64.0%
distribute-rgt-neg-in64.0%
mul-1-neg64.0%
associate-*r/64.0%
neg-mul-164.0%
Simplified64.0%
Final simplification72.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -7e+69)
t
(if (<= z -33000.0)
(* t (/ y (- a z)))
(if (or (<= z -1.9e-26) (not (<= z 8e+90)))
(+ t (* a (/ t z)))
(+ x (* t (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7e+69) {
tmp = t;
} else if (z <= -33000.0) {
tmp = t * (y / (a - z));
} else if ((z <= -1.9e-26) || !(z <= 8e+90)) {
tmp = t + (a * (t / z));
} else {
tmp = x + (t * (y / 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 (z <= (-7d+69)) then
tmp = t
else if (z <= (-33000.0d0)) then
tmp = t * (y / (a - z))
else if ((z <= (-1.9d-26)) .or. (.not. (z <= 8d+90))) then
tmp = t + (a * (t / z))
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7e+69) {
tmp = t;
} else if (z <= -33000.0) {
tmp = t * (y / (a - z));
} else if ((z <= -1.9e-26) || !(z <= 8e+90)) {
tmp = t + (a * (t / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7e+69: tmp = t elif z <= -33000.0: tmp = t * (y / (a - z)) elif (z <= -1.9e-26) or not (z <= 8e+90): tmp = t + (a * (t / z)) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7e+69) tmp = t; elseif (z <= -33000.0) tmp = Float64(t * Float64(y / Float64(a - z))); elseif ((z <= -1.9e-26) || !(z <= 8e+90)) tmp = Float64(t + Float64(a * Float64(t / z))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7e+69) tmp = t; elseif (z <= -33000.0) tmp = t * (y / (a - z)); elseif ((z <= -1.9e-26) || ~((z <= 8e+90))) tmp = t + (a * (t / z)); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7e+69], t, If[LessEqual[z, -33000.0], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.9e-26], N[Not[LessEqual[z, 8e+90]], $MachinePrecision]], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+69}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -33000:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-26} \lor \neg \left(z \leq 8 \cdot 10^{+90}\right):\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -6.99999999999999974e69Initial program 33.8%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in z around inf 53.8%
if -6.99999999999999974e69 < z < -33000Initial program 90.4%
associate-/l*89.5%
Simplified89.5%
Taylor expanded in x around 0 79.5%
associate-/l*89.0%
Simplified89.0%
Taylor expanded in y around inf 58.2%
associate-/l*67.6%
Simplified67.6%
if -33000 < z < -1.90000000000000007e-26 or 7.99999999999999973e90 < z Initial program 44.3%
associate-/l*66.6%
Simplified66.6%
Taylor expanded in x around 0 44.0%
associate-/l*65.5%
Simplified65.5%
Taylor expanded in y around 0 36.4%
mul-1-neg36.4%
associate-/l*56.0%
distribute-lft-neg-in56.0%
Simplified56.0%
Taylor expanded in z around inf 45.5%
associate-/l*49.5%
Simplified49.5%
if -1.90000000000000007e-26 < z < 7.99999999999999973e90Initial program 90.2%
associate-/l*90.5%
Simplified90.5%
Taylor expanded in z around 0 69.0%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in t around inf 55.4%
associate-/l*56.9%
Simplified56.9%
Final simplification55.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.8e+69)
t
(if (<= z -4900000.0)
(* t (/ y (- z)))
(if (<= z -1.3e-42)
t
(if (<= z 2.45e-85) (* t (/ y a)) (if (<= z 6.2e+90) x t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.8e+69) {
tmp = t;
} else if (z <= -4900000.0) {
tmp = t * (y / -z);
} else if (z <= -1.3e-42) {
tmp = t;
} else if (z <= 2.45e-85) {
tmp = t * (y / a);
} else if (z <= 6.2e+90) {
tmp = x;
} else {
tmp = 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.8d+69)) then
tmp = t
else if (z <= (-4900000.0d0)) then
tmp = t * (y / -z)
else if (z <= (-1.3d-42)) then
tmp = t
else if (z <= 2.45d-85) then
tmp = t * (y / a)
else if (z <= 6.2d+90) then
tmp = x
else
tmp = 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.8e+69) {
tmp = t;
} else if (z <= -4900000.0) {
tmp = t * (y / -z);
} else if (z <= -1.3e-42) {
tmp = t;
} else if (z <= 2.45e-85) {
tmp = t * (y / a);
} else if (z <= 6.2e+90) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.8e+69: tmp = t elif z <= -4900000.0: tmp = t * (y / -z) elif z <= -1.3e-42: tmp = t elif z <= 2.45e-85: tmp = t * (y / a) elif z <= 6.2e+90: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.8e+69) tmp = t; elseif (z <= -4900000.0) tmp = Float64(t * Float64(y / Float64(-z))); elseif (z <= -1.3e-42) tmp = t; elseif (z <= 2.45e-85) tmp = Float64(t * Float64(y / a)); elseif (z <= 6.2e+90) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.8e+69) tmp = t; elseif (z <= -4900000.0) tmp = t * (y / -z); elseif (z <= -1.3e-42) tmp = t; elseif (z <= 2.45e-85) tmp = t * (y / a); elseif (z <= 6.2e+90) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.8e+69], t, If[LessEqual[z, -4900000.0], N[(t * N[(y / (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e-42], t, If[LessEqual[z, 2.45e-85], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+90], x, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{+69}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -4900000:\\
\;\;\;\;t \cdot \frac{y}{-z}\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-42}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+90}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.8000000000000001e69 or -4.9e6 < z < -1.3e-42 or 6.19999999999999977e90 < z Initial program 42.2%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 49.1%
if -1.8000000000000001e69 < z < -4.9e6Initial program 90.4%
associate-/l*89.5%
Simplified89.5%
Taylor expanded in x around 0 79.5%
associate-/l*89.0%
Simplified89.0%
Taylor expanded in y around inf 58.2%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in a around 0 47.3%
mul-1-neg47.3%
associate-/l*56.7%
distribute-lft-neg-in56.7%
Simplified56.7%
if -1.3e-42 < z < 2.45000000000000007e-85Initial program 92.9%
associate-/l*89.5%
Simplified89.5%
Taylor expanded in x around 0 52.0%
associate-/l*53.1%
Simplified53.1%
Taylor expanded in z around 0 39.3%
associate-*r/40.4%
Simplified40.4%
if 2.45000000000000007e-85 < z < 6.19999999999999977e90Initial program 83.1%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in a around inf 35.1%
Final simplification44.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- z y) (- z a)))))
(if (<= t -2.6e-135)
t_1
(if (<= t -3.4e-199)
(+ t (* (/ y z) (- x t)))
(if (<= t 17000.0) (* x (+ (/ (- y z) (- z a)) 1.0)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((z - y) / (z - a));
double tmp;
if (t <= -2.6e-135) {
tmp = t_1;
} else if (t <= -3.4e-199) {
tmp = t + ((y / z) * (x - t));
} else if (t <= 17000.0) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} 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 = t * ((z - y) / (z - a))
if (t <= (-2.6d-135)) then
tmp = t_1
else if (t <= (-3.4d-199)) then
tmp = t + ((y / z) * (x - t))
else if (t <= 17000.0d0) then
tmp = x * (((y - z) / (z - a)) + 1.0d0)
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 = t * ((z - y) / (z - a));
double tmp;
if (t <= -2.6e-135) {
tmp = t_1;
} else if (t <= -3.4e-199) {
tmp = t + ((y / z) * (x - t));
} else if (t <= 17000.0) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((z - y) / (z - a)) tmp = 0 if t <= -2.6e-135: tmp = t_1 elif t <= -3.4e-199: tmp = t + ((y / z) * (x - t)) elif t <= 17000.0: tmp = x * (((y - z) / (z - a)) + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(z - y) / Float64(z - a))) tmp = 0.0 if (t <= -2.6e-135) tmp = t_1; elseif (t <= -3.4e-199) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); elseif (t <= 17000.0) tmp = Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((z - y) / (z - a)); tmp = 0.0; if (t <= -2.6e-135) tmp = t_1; elseif (t <= -3.4e-199) tmp = t + ((y / z) * (x - t)); elseif (t <= 17000.0) tmp = x * (((y - z) / (z - a)) + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e-135], t$95$1, If[LessEqual[t, -3.4e-199], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 17000.0], N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z - y}{z - a}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{-135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.4 \cdot 10^{-199}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{elif}\;t \leq 17000:\\
\;\;\;\;x \cdot \left(\frac{y - z}{z - a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.60000000000000004e-135 or 17000 < t Initial program 73.6%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in x around 0 60.5%
associate-/l*79.6%
Simplified79.6%
if -2.60000000000000004e-135 < t < -3.40000000000000006e-199Initial program 60.0%
+-commutative60.0%
associate-/l*43.8%
fma-define43.7%
Simplified43.7%
Taylor expanded in a around 0 26.5%
mul-1-neg26.5%
distribute-neg-frac226.5%
Simplified26.5%
Taylor expanded in y around 0 66.0%
mul-1-neg66.0%
div-sub66.0%
associate-/l*60.3%
unsub-neg60.3%
*-commutative60.3%
*-lft-identity60.3%
times-frac71.4%
/-rgt-identity71.4%
Simplified71.4%
if -3.40000000000000006e-199 < t < 17000Initial program 63.1%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in x around inf 67.4%
mul-1-neg67.4%
unsub-neg67.4%
Simplified67.4%
Final simplification75.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.1e+142)
(+ t (* (- t x) (/ (- a y) z)))
(if (<= z 2.75e+163)
(+ x (* (- y z) (/ (- x t) (- z a))))
(+ t (/ (- t x) (/ z (- a y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.1e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= 2.75e+163) {
tmp = x + ((y - z) * ((x - t) / (z - a)));
} else {
tmp = t + ((t - x) / (z / (a - 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 (z <= (-1.1d+142)) then
tmp = t + ((t - x) * ((a - y) / z))
else if (z <= 2.75d+163) then
tmp = x + ((y - z) * ((x - t) / (z - a)))
else
tmp = t + ((t - x) / (z / (a - y)))
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.1e+142) {
tmp = t + ((t - x) * ((a - y) / z));
} else if (z <= 2.75e+163) {
tmp = x + ((y - z) * ((x - t) / (z - a)));
} else {
tmp = t + ((t - x) / (z / (a - y)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.1e+142: tmp = t + ((t - x) * ((a - y) / z)) elif z <= 2.75e+163: tmp = x + ((y - z) * ((x - t) / (z - a))) else: tmp = t + ((t - x) / (z / (a - y))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.1e+142) tmp = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))); elseif (z <= 2.75e+163) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(x - t) / Float64(z - a)))); else tmp = Float64(t + Float64(Float64(t - x) / Float64(z / Float64(a - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.1e+142) tmp = t + ((t - x) * ((a - y) / z)); elseif (z <= 2.75e+163) tmp = x + ((y - z) * ((x - t) / (z - a))); else tmp = t + ((t - x) / (z / (a - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.1e+142], N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.75e+163], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(t - x), $MachinePrecision] / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \cdot 10^{+142}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{elif}\;z \leq 2.75 \cdot 10^{+163}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{x - t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\
\end{array}
\end{array}
if z < -1.09999999999999993e142Initial program 25.5%
associate-/l*63.5%
Simplified63.5%
clear-num63.2%
un-div-inv63.3%
Applied egg-rr63.3%
Taylor expanded in z around inf 71.3%
associate--l+71.3%
associate-*r/71.3%
associate-*r/71.3%
mul-1-neg71.3%
div-sub71.3%
mul-1-neg71.3%
distribute-lft-out--71.3%
associate-*r/71.3%
mul-1-neg71.3%
unsub-neg71.3%
distribute-rgt-out--74.0%
*-lft-identity74.0%
times-frac92.1%
Simplified92.1%
if -1.09999999999999993e142 < z < 2.75000000000000007e163Initial program 85.7%
associate-/l*89.8%
Simplified89.8%
if 2.75000000000000007e163 < z Initial program 17.6%
associate-/l*51.4%
Simplified51.4%
clear-num51.1%
un-div-inv51.5%
Applied egg-rr51.5%
Taylor expanded in z around inf 53.9%
associate--l+53.9%
associate-*r/53.9%
associate-*r/53.9%
mul-1-neg53.9%
div-sub53.9%
mul-1-neg53.9%
distribute-lft-out--53.9%
associate-*r/53.9%
mul-1-neg53.9%
unsub-neg53.9%
distribute-rgt-out--53.9%
*-lft-identity53.9%
times-frac92.3%
Simplified92.3%
clear-num92.4%
un-div-inv92.4%
Applied egg-rr92.4%
Final simplification90.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.5e-199) (not (<= t 3.5e-10))) (* t (/ (- z y) (- z a))) (- x (* x (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.5e-199) || !(t <= 3.5e-10)) {
tmp = t * ((z - y) / (z - a));
} else {
tmp = x - (x * (y / 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 <= (-1.5d-199)) .or. (.not. (t <= 3.5d-10))) then
tmp = t * ((z - y) / (z - a))
else
tmp = x - (x * (y / 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 <= -1.5e-199) || !(t <= 3.5e-10)) {
tmp = t * ((z - y) / (z - a));
} else {
tmp = x - (x * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.5e-199) or not (t <= 3.5e-10): tmp = t * ((z - y) / (z - a)) else: tmp = x - (x * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.5e-199) || !(t <= 3.5e-10)) tmp = Float64(t * Float64(Float64(z - y) / Float64(z - a))); else tmp = Float64(x - Float64(x * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.5e-199) || ~((t <= 3.5e-10))) tmp = t * ((z - y) / (z - a)); else tmp = x - (x * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.5e-199], N[Not[LessEqual[t, 3.5e-10]], $MachinePrecision]], N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{-199} \lor \neg \left(t \leq 3.5 \cdot 10^{-10}\right):\\
\;\;\;\;t \cdot \frac{z - y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -1.49999999999999992e-199 or 3.4999999999999998e-10 < t Initial program 72.1%
associate-/l*85.2%
Simplified85.2%
Taylor expanded in x around 0 57.6%
associate-/l*74.5%
Simplified74.5%
if -1.49999999999999992e-199 < t < 3.4999999999999998e-10Initial program 63.1%
associate-/l*74.0%
Simplified74.0%
Taylor expanded in z around 0 49.9%
associate-/l*58.1%
Simplified58.1%
Taylor expanded in t around 0 46.7%
mul-1-neg46.7%
associate-/l*56.4%
distribute-rgt-neg-in56.4%
mul-1-neg56.4%
associate-*r/56.4%
neg-mul-156.4%
Simplified56.4%
Final simplification68.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -5.8e-11) (not (<= a 1.25e-12))) (+ x (* y (/ (- t x) a))) (* t (/ (- z y) (- z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.8e-11) || !(a <= 1.25e-12)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * ((z - y) / (z - 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 ((a <= (-5.8d-11)) .or. (.not. (a <= 1.25d-12))) then
tmp = x + (y * ((t - x) / a))
else
tmp = t * ((z - y) / (z - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.8e-11) || !(a <= 1.25e-12)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * ((z - y) / (z - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -5.8e-11) or not (a <= 1.25e-12): tmp = x + (y * ((t - x) / a)) else: tmp = t * ((z - y) / (z - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -5.8e-11) || !(a <= 1.25e-12)) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); else tmp = Float64(t * Float64(Float64(z - y) / Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -5.8e-11) || ~((a <= 1.25e-12))) tmp = x + (y * ((t - x) / a)); else tmp = t * ((z - y) / (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.8e-11], N[Not[LessEqual[a, 1.25e-12]], $MachinePrecision]], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.8 \cdot 10^{-11} \lor \neg \left(a \leq 1.25 \cdot 10^{-12}\right):\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{z - y}{z - a}\\
\end{array}
\end{array}
if a < -5.8e-11 or 1.24999999999999992e-12 < a Initial program 71.4%
associate-/l*88.2%
Simplified88.2%
Taylor expanded in z around 0 58.5%
associate-/l*67.2%
Simplified67.2%
if -5.8e-11 < a < 1.24999999999999992e-12Initial program 67.4%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in x around 0 60.6%
associate-/l*75.3%
Simplified75.3%
Final simplification71.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -58000000000000.0) (not (<= z 6e+90))) (/ t (- 1.0 (/ a z))) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -58000000000000.0) || !(z <= 6e+90)) {
tmp = t / (1.0 - (a / z));
} else {
tmp = x + (t * (y / 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 ((z <= (-58000000000000.0d0)) .or. (.not. (z <= 6d+90))) then
tmp = t / (1.0d0 - (a / z))
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -58000000000000.0) || !(z <= 6e+90)) {
tmp = t / (1.0 - (a / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -58000000000000.0) or not (z <= 6e+90): tmp = t / (1.0 - (a / z)) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -58000000000000.0) || !(z <= 6e+90)) tmp = Float64(t / Float64(1.0 - Float64(a / z))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -58000000000000.0) || ~((z <= 6e+90))) tmp = t / (1.0 - (a / z)); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -58000000000000.0], N[Not[LessEqual[z, 6e+90]], $MachinePrecision]], N[(t / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -58000000000000 \lor \neg \left(z \leq 6 \cdot 10^{+90}\right):\\
\;\;\;\;\frac{t}{1 - \frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -5.8e13 or 5.99999999999999957e90 < z Initial program 39.0%
associate-/l*68.5%
Simplified68.5%
Taylor expanded in x around 0 40.5%
associate-/l*66.0%
Simplified66.0%
Taylor expanded in y around 0 34.1%
mul-1-neg34.1%
associate-/l*57.0%
distribute-lft-neg-in57.0%
Simplified57.0%
Taylor expanded in t around 0 34.1%
mul-1-neg34.1%
*-rgt-identity34.1%
times-frac48.5%
/-rgt-identity48.5%
associate-/r/57.0%
div-sub57.0%
sub-neg57.0%
*-inverses57.0%
metadata-eval57.0%
Simplified57.0%
if -5.8e13 < z < 5.99999999999999957e90Initial program 89.7%
associate-/l*90.5%
Simplified90.5%
Taylor expanded in z around 0 66.8%
associate-/l*69.3%
Simplified69.3%
Taylor expanded in t around inf 54.1%
associate-/l*56.1%
Simplified56.1%
Final simplification56.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -6.2e+71) t (if (<= z 2.4e+129) (* t (/ y (- a z))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.2e+71) {
tmp = t;
} else if (z <= 2.4e+129) {
tmp = t * (y / (a - z));
} else {
tmp = 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 <= (-6.2d+71)) then
tmp = t
else if (z <= 2.4d+129) then
tmp = t * (y / (a - z))
else
tmp = 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 <= -6.2e+71) {
tmp = t;
} else if (z <= 2.4e+129) {
tmp = t * (y / (a - z));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.2e+71: tmp = t elif z <= 2.4e+129: tmp = t * (y / (a - z)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.2e+71) tmp = t; elseif (z <= 2.4e+129) tmp = Float64(t * Float64(y / Float64(a - z))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.2e+71) tmp = t; elseif (z <= 2.4e+129) tmp = t * (y / (a - z)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.2e+71], t, If[LessEqual[z, 2.4e+129], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+71}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+129}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.20000000000000036e71 or 2.3999999999999999e129 < z Initial program 31.9%
associate-/l*64.4%
Simplified64.4%
Taylor expanded in z around inf 53.2%
if -6.20000000000000036e71 < z < 2.3999999999999999e129Initial program 89.9%
associate-/l*91.1%
Simplified91.1%
Taylor expanded in x around 0 51.5%
associate-/l*54.3%
Simplified54.3%
Taylor expanded in y around inf 37.6%
associate-/l*40.4%
Simplified40.4%
Final simplification45.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -6.8e+69) t (if (<= z 2.9e+129) (* t (/ y (- a z))) (+ t (* a (/ t z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.8e+69) {
tmp = t;
} else if (z <= 2.9e+129) {
tmp = t * (y / (a - z));
} else {
tmp = t + (a * (t / z));
}
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 <= (-6.8d+69)) then
tmp = t
else if (z <= 2.9d+129) then
tmp = t * (y / (a - z))
else
tmp = t + (a * (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.8e+69) {
tmp = t;
} else if (z <= 2.9e+129) {
tmp = t * (y / (a - z));
} else {
tmp = t + (a * (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.8e+69: tmp = t elif z <= 2.9e+129: tmp = t * (y / (a - z)) else: tmp = t + (a * (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.8e+69) tmp = t; elseif (z <= 2.9e+129) tmp = Float64(t * Float64(y / Float64(a - z))); else tmp = Float64(t + Float64(a * Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.8e+69) tmp = t; elseif (z <= 2.9e+129) tmp = t * (y / (a - z)); else tmp = t + (a * (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.8e+69], t, If[LessEqual[z, 2.9e+129], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+69}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+129}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\end{array}
\end{array}
if z < -6.79999999999999973e69Initial program 33.8%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in z around inf 53.8%
if -6.79999999999999973e69 < z < 2.90000000000000003e129Initial program 89.9%
associate-/l*91.1%
Simplified91.1%
Taylor expanded in x around 0 51.5%
associate-/l*54.3%
Simplified54.3%
Taylor expanded in y around inf 37.6%
associate-/l*40.4%
Simplified40.4%
if 2.90000000000000003e129 < z Initial program 29.0%
associate-/l*54.3%
Simplified54.3%
Taylor expanded in x around 0 34.1%
associate-/l*60.9%
Simplified60.9%
Taylor expanded in y around 0 29.5%
mul-1-neg29.5%
associate-/l*56.3%
distribute-lft-neg-in56.3%
Simplified56.3%
Taylor expanded in z around inf 47.3%
associate-/l*52.7%
Simplified52.7%
Final simplification45.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.6e-16) (+ x (/ (* t y) a)) (if (<= a 2.3e+14) (* t (- 1.0 (/ y z))) (+ x (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.6e-16) {
tmp = x + ((t * y) / a);
} else if (a <= 2.3e+14) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + (y * (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 (a <= (-1.6d-16)) then
tmp = x + ((t * y) / a)
else if (a <= 2.3d+14) then
tmp = t * (1.0d0 - (y / z))
else
tmp = x + (y * (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 (a <= -1.6e-16) {
tmp = x + ((t * y) / a);
} else if (a <= 2.3e+14) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.6e-16: tmp = x + ((t * y) / a) elif a <= 2.3e+14: tmp = t * (1.0 - (y / z)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.6e-16) tmp = Float64(x + Float64(Float64(t * y) / a)); elseif (a <= 2.3e+14) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.6e-16) tmp = x + ((t * y) / a); elseif (a <= 2.3e+14) tmp = t * (1.0 - (y / z)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.6e-16], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e+14], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.6 \cdot 10^{-16}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if a < -1.60000000000000011e-16Initial program 80.5%
associate-/l*89.4%
Simplified89.4%
Taylor expanded in z around 0 66.9%
associate-/l*71.3%
Simplified71.3%
Taylor expanded in t around inf 59.1%
if -1.60000000000000011e-16 < a < 2.3e14Initial program 66.3%
+-commutative66.3%
associate-/l*74.6%
fma-define74.6%
Simplified74.6%
Taylor expanded in a around 0 59.3%
mul-1-neg59.3%
distribute-neg-frac259.3%
Simplified59.3%
Taylor expanded in t around inf 48.7%
mul-1-neg48.7%
associate-/l*63.7%
distribute-lft-neg-in63.7%
div-sub63.7%
sub-neg63.7%
*-inverses63.7%
metadata-eval63.7%
Simplified63.7%
if 2.3e14 < a Initial program 63.8%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in z around 0 51.5%
associate-/l*65.5%
Simplified65.5%
Taylor expanded in t around inf 51.9%
Final simplification60.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.15e-44) t (if (<= z 2.95e-86) (* t (/ y a)) (if (<= z 6e+90) x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e-44) {
tmp = t;
} else if (z <= 2.95e-86) {
tmp = t * (y / a);
} else if (z <= 6e+90) {
tmp = x;
} else {
tmp = 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.15d-44)) then
tmp = t
else if (z <= 2.95d-86) then
tmp = t * (y / a)
else if (z <= 6d+90) then
tmp = x
else
tmp = 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.15e-44) {
tmp = t;
} else if (z <= 2.95e-86) {
tmp = t * (y / a);
} else if (z <= 6e+90) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.15e-44: tmp = t elif z <= 2.95e-86: tmp = t * (y / a) elif z <= 6e+90: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e-44) tmp = t; elseif (z <= 2.95e-86) tmp = Float64(t * Float64(y / a)); elseif (z <= 6e+90) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.15e-44) tmp = t; elseif (z <= 2.95e-86) tmp = t * (y / a); elseif (z <= 6e+90) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e-44], t, If[LessEqual[z, 2.95e-86], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e+90], x, t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{-44}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.95 \cdot 10^{-86}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{+90}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.14999999999999999e-44 or 5.99999999999999957e90 < z Initial program 45.8%
associate-/l*72.4%
Simplified72.4%
Taylor expanded in z around inf 45.7%
if -1.14999999999999999e-44 < z < 2.94999999999999999e-86Initial program 92.9%
associate-/l*89.5%
Simplified89.5%
Taylor expanded in x around 0 52.0%
associate-/l*53.1%
Simplified53.1%
Taylor expanded in z around 0 39.3%
associate-*r/40.4%
Simplified40.4%
if 2.94999999999999999e-86 < z < 5.99999999999999957e90Initial program 83.1%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in a around inf 35.1%
Final simplification42.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.8e-12) x (if (<= a 5e+16) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.8e-12) {
tmp = x;
} else if (a <= 5e+16) {
tmp = t;
} else {
tmp = x;
}
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 <= (-2.8d-12)) then
tmp = x
else if (a <= 5d+16) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.8e-12) {
tmp = x;
} else if (a <= 5e+16) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.8e-12: tmp = x elif a <= 5e+16: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.8e-12) tmp = x; elseif (a <= 5e+16) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.8e-12) tmp = x; elseif (a <= 5e+16) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.8e-12], x, If[LessEqual[a, 5e+16], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{-12}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+16}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.8000000000000002e-12 or 5e16 < a Initial program 72.1%
associate-/l*89.5%
Simplified89.5%
Taylor expanded in a around inf 37.7%
if -2.8000000000000002e-12 < a < 5e16Initial program 67.0%
associate-/l*75.1%
Simplified75.1%
Taylor expanded in z around inf 39.1%
Final simplification38.5%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return 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 = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 69.3%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in z around inf 26.4%
Final simplification26.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024071
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))