
(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 20 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 (or (<= z -1e+108) (not (<= z 2.8e+133))) (+ t (/ (- x t) (/ z (- y a)))) (fma (/ (- y z) (- a z)) (- t x) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1e+108) || !(z <= 2.8e+133)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = fma(((y - z) / (a - z)), (t - x), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1e+108) || !(z <= 2.8e+133)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1e+108], N[Not[LessEqual[z, 2.8e+133]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+108} \lor \neg \left(z \leq 2.8 \cdot 10^{+133}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\end{array}
\end{array}
if z < -1e108 or 2.80000000000000016e133 < z Initial program 28.4%
associate-*l/60.0%
Simplified60.0%
Taylor expanded in z around inf 64.7%
associate--l+64.7%
associate-*r/64.7%
associate-*r/64.7%
div-sub64.7%
distribute-lft-out--64.7%
associate-*r/64.7%
distribute-rgt-out--65.0%
mul-1-neg65.0%
unsub-neg65.0%
associate-/l*89.3%
Simplified89.3%
if -1e108 < z < 2.80000000000000016e133Initial program 84.8%
+-commutative84.8%
associate-*l/92.1%
fma-def92.1%
Simplified92.1%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (* x (- 1.0 (/ y a)))))
(if (<= a -8.5e+85)
t_2
(if (<= a -5.8e-169)
t_1
(if (<= a 2.26e-216)
(* y (/ (- t x) (- a z)))
(if (or (<= a 8.2e+34)
(and (not (<= a 1.8e+81))
(or (<= a 1.32e+94)
(and (not (<= a 7.9e+130)) (<= a 2.05e+173)))))
t_1
t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x * (1.0 - (y / a));
double tmp;
if (a <= -8.5e+85) {
tmp = t_2;
} else if (a <= -5.8e-169) {
tmp = t_1;
} else if (a <= 2.26e-216) {
tmp = y * ((t - x) / (a - z));
} else if ((a <= 8.2e+34) || (!(a <= 1.8e+81) && ((a <= 1.32e+94) || (!(a <= 7.9e+130) && (a <= 2.05e+173))))) {
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 = t * ((y - z) / (a - z))
t_2 = x * (1.0d0 - (y / a))
if (a <= (-8.5d+85)) then
tmp = t_2
else if (a <= (-5.8d-169)) then
tmp = t_1
else if (a <= 2.26d-216) then
tmp = y * ((t - x) / (a - z))
else if ((a <= 8.2d+34) .or. (.not. (a <= 1.8d+81)) .and. (a <= 1.32d+94) .or. (.not. (a <= 7.9d+130)) .and. (a <= 2.05d+173)) 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 = t * ((y - z) / (a - z));
double t_2 = x * (1.0 - (y / a));
double tmp;
if (a <= -8.5e+85) {
tmp = t_2;
} else if (a <= -5.8e-169) {
tmp = t_1;
} else if (a <= 2.26e-216) {
tmp = y * ((t - x) / (a - z));
} else if ((a <= 8.2e+34) || (!(a <= 1.8e+81) && ((a <= 1.32e+94) || (!(a <= 7.9e+130) && (a <= 2.05e+173))))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = x * (1.0 - (y / a)) tmp = 0 if a <= -8.5e+85: tmp = t_2 elif a <= -5.8e-169: tmp = t_1 elif a <= 2.26e-216: tmp = y * ((t - x) / (a - z)) elif (a <= 8.2e+34) or (not (a <= 1.8e+81) and ((a <= 1.32e+94) or (not (a <= 7.9e+130) and (a <= 2.05e+173)))): tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) t_2 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (a <= -8.5e+85) tmp = t_2; elseif (a <= -5.8e-169) tmp = t_1; elseif (a <= 2.26e-216) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif ((a <= 8.2e+34) || (!(a <= 1.8e+81) && ((a <= 1.32e+94) || (!(a <= 7.9e+130) && (a <= 2.05e+173))))) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = x * (1.0 - (y / a)); tmp = 0.0; if (a <= -8.5e+85) tmp = t_2; elseif (a <= -5.8e-169) tmp = t_1; elseif (a <= 2.26e-216) tmp = y * ((t - x) / (a - z)); elseif ((a <= 8.2e+34) || (~((a <= 1.8e+81)) && ((a <= 1.32e+94) || (~((a <= 7.9e+130)) && (a <= 2.05e+173))))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.5e+85], t$95$2, If[LessEqual[a, -5.8e-169], t$95$1, If[LessEqual[a, 2.26e-216], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 8.2e+34], And[N[Not[LessEqual[a, 1.8e+81]], $MachinePrecision], Or[LessEqual[a, 1.32e+94], And[N[Not[LessEqual[a, 7.9e+130]], $MachinePrecision], LessEqual[a, 2.05e+173]]]]], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;a \leq -8.5 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.26 \cdot 10^{-216}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+34} \lor \neg \left(a \leq 1.8 \cdot 10^{+81}\right) \land \left(a \leq 1.32 \cdot 10^{+94} \lor \neg \left(a \leq 7.9 \cdot 10^{+130}\right) \land a \leq 2.05 \cdot 10^{+173}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -8.4999999999999994e85 or 8.1999999999999997e34 < a < 1.80000000000000003e81 or 1.32000000000000003e94 < a < 7.9000000000000004e130 or 2.04999999999999988e173 < a Initial program 73.3%
associate-*l/94.9%
Simplified94.9%
Taylor expanded in x around inf 71.9%
mul-1-neg71.9%
unsub-neg71.9%
Simplified71.9%
Taylor expanded in z around 0 70.6%
if -8.4999999999999994e85 < a < -5.80000000000000038e-169 or 2.2599999999999999e-216 < a < 8.1999999999999997e34 or 1.80000000000000003e81 < a < 1.32000000000000003e94 or 7.9000000000000004e130 < a < 2.04999999999999988e173Initial program 61.4%
associate-*l/75.7%
Simplified75.7%
Taylor expanded in x around 0 52.7%
associate-*r/68.1%
Simplified68.1%
if -5.80000000000000038e-169 < a < 2.2599999999999999e-216Initial program 76.7%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in y around inf 76.4%
div-sub78.6%
Simplified78.6%
Final simplification70.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -8.4e+95)
t
(if (<= z 1.02e-181)
t_1
(if (<= z 1.25e-128)
(* y (/ (- t x) a))
(if (<= z 4.5e+64)
t_1
(if (<= z 3.3e+104)
t
(if (<= z 3.8e+139)
t_1
(if (<= z 4.3e+200) (* x (/ (- y a) z)) t)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -8.4e+95) {
tmp = t;
} else if (z <= 1.02e-181) {
tmp = t_1;
} else if (z <= 1.25e-128) {
tmp = y * ((t - x) / a);
} else if (z <= 4.5e+64) {
tmp = t_1;
} else if (z <= 3.3e+104) {
tmp = t;
} else if (z <= 3.8e+139) {
tmp = t_1;
} else if (z <= 4.3e+200) {
tmp = x * ((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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-8.4d+95)) then
tmp = t
else if (z <= 1.02d-181) then
tmp = t_1
else if (z <= 1.25d-128) then
tmp = y * ((t - x) / a)
else if (z <= 4.5d+64) then
tmp = t_1
else if (z <= 3.3d+104) then
tmp = t
else if (z <= 3.8d+139) then
tmp = t_1
else if (z <= 4.3d+200) then
tmp = x * ((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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -8.4e+95) {
tmp = t;
} else if (z <= 1.02e-181) {
tmp = t_1;
} else if (z <= 1.25e-128) {
tmp = y * ((t - x) / a);
} else if (z <= 4.5e+64) {
tmp = t_1;
} else if (z <= 3.3e+104) {
tmp = t;
} else if (z <= 3.8e+139) {
tmp = t_1;
} else if (z <= 4.3e+200) {
tmp = x * ((y - a) / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -8.4e+95: tmp = t elif z <= 1.02e-181: tmp = t_1 elif z <= 1.25e-128: tmp = y * ((t - x) / a) elif z <= 4.5e+64: tmp = t_1 elif z <= 3.3e+104: tmp = t elif z <= 3.8e+139: tmp = t_1 elif z <= 4.3e+200: tmp = x * ((y - a) / z) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -8.4e+95) tmp = t; elseif (z <= 1.02e-181) tmp = t_1; elseif (z <= 1.25e-128) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 4.5e+64) tmp = t_1; elseif (z <= 3.3e+104) tmp = t; elseif (z <= 3.8e+139) tmp = t_1; elseif (z <= 4.3e+200) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -8.4e+95) tmp = t; elseif (z <= 1.02e-181) tmp = t_1; elseif (z <= 1.25e-128) tmp = y * ((t - x) / a); elseif (z <= 4.5e+64) tmp = t_1; elseif (z <= 3.3e+104) tmp = t; elseif (z <= 3.8e+139) tmp = t_1; elseif (z <= 4.3e+200) tmp = x * ((y - a) / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.4e+95], t, If[LessEqual[z, 1.02e-181], t$95$1, If[LessEqual[z, 1.25e-128], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+64], t$95$1, If[LessEqual[z, 3.3e+104], t, If[LessEqual[z, 3.8e+139], t$95$1, If[LessEqual[z, 4.3e+200], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -8.4 \cdot 10^{+95}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-181}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-128}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+104}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+139}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+200}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -8.4e95 or 4.49999999999999973e64 < z < 3.29999999999999985e104 or 4.30000000000000031e200 < z Initial program 39.0%
associate-*l/65.0%
Simplified65.0%
Taylor expanded in z around inf 61.6%
if -8.4e95 < z < 1.02000000000000003e-181 or 1.25e-128 < z < 4.49999999999999973e64 or 3.29999999999999985e104 < z < 3.79999999999999999e139Initial program 84.6%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in x around inf 65.3%
mul-1-neg65.3%
unsub-neg65.3%
Simplified65.3%
Taylor expanded in z around 0 58.5%
if 1.02000000000000003e-181 < z < 1.25e-128Initial program 100.0%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in y around -inf 100.0%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in a around inf 88.9%
div-inv88.9%
associate-*l*88.9%
div-inv88.9%
Applied egg-rr88.9%
if 3.79999999999999999e139 < z < 4.30000000000000031e200Initial program 28.0%
associate-*l/67.4%
Simplified67.4%
Taylor expanded in x around inf 27.2%
mul-1-neg27.2%
unsub-neg27.2%
Simplified27.2%
Taylor expanded in z around inf 47.1%
associate-*r/47.1%
neg-mul-147.1%
+-commutative47.1%
distribute-lft-in47.1%
neg-mul-147.1%
remove-double-neg47.1%
neg-mul-147.1%
sub-neg47.1%
Simplified47.1%
Final simplification60.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= z -3.5e+95)
t_2
(if (<= z 1.1e-167)
t_1
(if (<= z 2.05e-35)
t_2
(if (<= z 1.05e+50)
t_1
(if (or (<= z 1.6e+142) (not (<= z 1.8e+167)))
t_2
(* (- y a) (/ x z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -3.5e+95) {
tmp = t_2;
} else if (z <= 1.1e-167) {
tmp = t_1;
} else if (z <= 2.05e-35) {
tmp = t_2;
} else if (z <= 1.05e+50) {
tmp = t_1;
} else if ((z <= 1.6e+142) || !(z <= 1.8e+167)) {
tmp = t_2;
} else {
tmp = (y - a) * (x / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
t_2 = t * ((y - z) / (a - z))
if (z <= (-3.5d+95)) then
tmp = t_2
else if (z <= 1.1d-167) then
tmp = t_1
else if (z <= 2.05d-35) then
tmp = t_2
else if (z <= 1.05d+50) then
tmp = t_1
else if ((z <= 1.6d+142) .or. (.not. (z <= 1.8d+167))) then
tmp = t_2
else
tmp = (y - a) * (x / z)
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 - (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -3.5e+95) {
tmp = t_2;
} else if (z <= 1.1e-167) {
tmp = t_1;
} else if (z <= 2.05e-35) {
tmp = t_2;
} else if (z <= 1.05e+50) {
tmp = t_1;
} else if ((z <= 1.6e+142) || !(z <= 1.8e+167)) {
tmp = t_2;
} else {
tmp = (y - a) * (x / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t * ((y - z) / (a - z)) tmp = 0 if z <= -3.5e+95: tmp = t_2 elif z <= 1.1e-167: tmp = t_1 elif z <= 2.05e-35: tmp = t_2 elif z <= 1.05e+50: tmp = t_1 elif (z <= 1.6e+142) or not (z <= 1.8e+167): tmp = t_2 else: tmp = (y - a) * (x / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -3.5e+95) tmp = t_2; elseif (z <= 1.1e-167) tmp = t_1; elseif (z <= 2.05e-35) tmp = t_2; elseif (z <= 1.05e+50) tmp = t_1; elseif ((z <= 1.6e+142) || !(z <= 1.8e+167)) tmp = t_2; else tmp = Float64(Float64(y - a) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -3.5e+95) tmp = t_2; elseif (z <= 1.1e-167) tmp = t_1; elseif (z <= 2.05e-35) tmp = t_2; elseif (z <= 1.05e+50) tmp = t_1; elseif ((z <= 1.6e+142) || ~((z <= 1.8e+167))) tmp = t_2; else tmp = (y - a) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+95], t$95$2, If[LessEqual[z, 1.1e-167], t$95$1, If[LessEqual[z, 2.05e-35], t$95$2, If[LessEqual[z, 1.05e+50], t$95$1, If[Or[LessEqual[z, 1.6e+142], N[Not[LessEqual[z, 1.8e+167]], $MachinePrecision]], t$95$2, N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+95}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-167}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-35}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+142} \lor \neg \left(z \leq 1.8 \cdot 10^{+167}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -3.5e95 or 1.1e-167 < z < 2.05000000000000013e-35 or 1.05e50 < z < 1.60000000000000003e142 or 1.80000000000000012e167 < z Initial program 48.7%
associate-*l/75.1%
Simplified75.1%
Taylor expanded in x around 0 48.3%
associate-*r/70.8%
Simplified70.8%
if -3.5e95 < z < 1.1e-167 or 2.05000000000000013e-35 < z < 1.05e50Initial program 88.4%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in x around inf 69.4%
mul-1-neg69.4%
unsub-neg69.4%
Simplified69.4%
Taylor expanded in z around 0 63.7%
if 1.60000000000000003e142 < z < 1.80000000000000012e167Initial program 19.0%
associate-*l/35.4%
Simplified35.4%
Taylor expanded in x around inf 35.4%
mul-1-neg35.4%
unsub-neg35.4%
Simplified35.4%
Taylor expanded in z around inf 74.0%
associate-*r/74.0%
neg-mul-174.0%
+-commutative74.0%
distribute-lft-in74.0%
neg-mul-174.0%
remove-double-neg74.0%
neg-mul-174.0%
sub-neg74.0%
Simplified74.0%
Taylor expanded in x around 0 65.1%
associate-*l/80.0%
*-commutative80.0%
Simplified80.0%
Final simplification67.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -5.5e+97)
t
(if (<= z 4.7e-188)
t_1
(if (<= z 9.6e-129)
(* y (/ (- t x) a))
(if (<= z 2.3e+64)
t_1
(if (<= z 1.55e+122)
t
(if (<= z 2.05e+167) (* (- y a) (/ x z)) t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5.5e+97) {
tmp = t;
} else if (z <= 4.7e-188) {
tmp = t_1;
} else if (z <= 9.6e-129) {
tmp = y * ((t - x) / a);
} else if (z <= 2.3e+64) {
tmp = t_1;
} else if (z <= 1.55e+122) {
tmp = t;
} else if (z <= 2.05e+167) {
tmp = (y - a) * (x / 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-5.5d+97)) then
tmp = t
else if (z <= 4.7d-188) then
tmp = t_1
else if (z <= 9.6d-129) then
tmp = y * ((t - x) / a)
else if (z <= 2.3d+64) then
tmp = t_1
else if (z <= 1.55d+122) then
tmp = t
else if (z <= 2.05d+167) then
tmp = (y - a) * (x / 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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5.5e+97) {
tmp = t;
} else if (z <= 4.7e-188) {
tmp = t_1;
} else if (z <= 9.6e-129) {
tmp = y * ((t - x) / a);
} else if (z <= 2.3e+64) {
tmp = t_1;
} else if (z <= 1.55e+122) {
tmp = t;
} else if (z <= 2.05e+167) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -5.5e+97: tmp = t elif z <= 4.7e-188: tmp = t_1 elif z <= 9.6e-129: tmp = y * ((t - x) / a) elif z <= 2.3e+64: tmp = t_1 elif z <= 1.55e+122: tmp = t elif z <= 2.05e+167: tmp = (y - a) * (x / z) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -5.5e+97) tmp = t; elseif (z <= 4.7e-188) tmp = t_1; elseif (z <= 9.6e-129) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 2.3e+64) tmp = t_1; elseif (z <= 1.55e+122) tmp = t; elseif (z <= 2.05e+167) tmp = Float64(Float64(y - a) * Float64(x / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -5.5e+97) tmp = t; elseif (z <= 4.7e-188) tmp = t_1; elseif (z <= 9.6e-129) tmp = y * ((t - x) / a); elseif (z <= 2.3e+64) tmp = t_1; elseif (z <= 1.55e+122) tmp = t; elseif (z <= 2.05e+167) tmp = (y - a) * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e+97], t, If[LessEqual[z, 4.7e-188], t$95$1, If[LessEqual[z, 9.6e-129], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+64], t$95$1, If[LessEqual[z, 1.55e+122], t, If[LessEqual[z, 2.05e+167], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+97}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{-188}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+122}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+167}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.50000000000000021e97 or 2.3e64 < z < 1.54999999999999999e122 or 2.05e167 < z Initial program 38.4%
associate-*l/68.9%
Simplified68.9%
Taylor expanded in z around inf 58.5%
if -5.50000000000000021e97 < z < 4.69999999999999998e-188 or 9.59999999999999954e-129 < z < 2.3e64Initial program 87.3%
associate-*l/91.7%
Simplified91.7%
Taylor expanded in x around inf 65.8%
mul-1-neg65.8%
unsub-neg65.8%
Simplified65.8%
Taylor expanded in z around 0 58.7%
if 4.69999999999999998e-188 < z < 9.59999999999999954e-129Initial program 100.0%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in y around -inf 100.0%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in a around inf 88.9%
div-inv88.9%
associate-*l*88.9%
div-inv88.9%
Applied egg-rr88.9%
if 1.54999999999999999e122 < z < 2.05e167Initial program 14.8%
associate-*l/51.5%
Simplified51.5%
Taylor expanded in x around inf 40.0%
mul-1-neg40.0%
unsub-neg40.0%
Simplified40.0%
Taylor expanded in z around inf 56.5%
associate-*r/56.5%
neg-mul-156.5%
+-commutative56.5%
distribute-lft-in56.5%
neg-mul-156.5%
remove-double-neg56.5%
neg-mul-156.5%
sub-neg56.5%
Simplified56.5%
Taylor expanded in x around 0 49.6%
associate-*l/61.0%
*-commutative61.0%
Simplified61.0%
Final simplification59.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -2.5e+98)
t
(if (<= z 3e-175)
t_1
(if (<= z 2.3e-43)
(+ x (/ (* t y) a))
(if (<= z 2.1e+64)
t_1
(if (<= z 3e+121)
t
(if (<= z 3.3e+168) (* (- y a) (/ x z)) t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -2.5e+98) {
tmp = t;
} else if (z <= 3e-175) {
tmp = t_1;
} else if (z <= 2.3e-43) {
tmp = x + ((t * y) / a);
} else if (z <= 2.1e+64) {
tmp = t_1;
} else if (z <= 3e+121) {
tmp = t;
} else if (z <= 3.3e+168) {
tmp = (y - a) * (x / 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-2.5d+98)) then
tmp = t
else if (z <= 3d-175) then
tmp = t_1
else if (z <= 2.3d-43) then
tmp = x + ((t * y) / a)
else if (z <= 2.1d+64) then
tmp = t_1
else if (z <= 3d+121) then
tmp = t
else if (z <= 3.3d+168) then
tmp = (y - a) * (x / 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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -2.5e+98) {
tmp = t;
} else if (z <= 3e-175) {
tmp = t_1;
} else if (z <= 2.3e-43) {
tmp = x + ((t * y) / a);
} else if (z <= 2.1e+64) {
tmp = t_1;
} else if (z <= 3e+121) {
tmp = t;
} else if (z <= 3.3e+168) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -2.5e+98: tmp = t elif z <= 3e-175: tmp = t_1 elif z <= 2.3e-43: tmp = x + ((t * y) / a) elif z <= 2.1e+64: tmp = t_1 elif z <= 3e+121: tmp = t elif z <= 3.3e+168: tmp = (y - a) * (x / z) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -2.5e+98) tmp = t; elseif (z <= 3e-175) tmp = t_1; elseif (z <= 2.3e-43) tmp = Float64(x + Float64(Float64(t * y) / a)); elseif (z <= 2.1e+64) tmp = t_1; elseif (z <= 3e+121) tmp = t; elseif (z <= 3.3e+168) tmp = Float64(Float64(y - a) * Float64(x / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -2.5e+98) tmp = t; elseif (z <= 3e-175) tmp = t_1; elseif (z <= 2.3e-43) tmp = x + ((t * y) / a); elseif (z <= 2.1e+64) tmp = t_1; elseif (z <= 3e+121) tmp = t; elseif (z <= 3.3e+168) tmp = (y - a) * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.5e+98], t, If[LessEqual[z, 3e-175], t$95$1, If[LessEqual[z, 2.3e-43], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e+64], t$95$1, If[LessEqual[z, 3e+121], t, If[LessEqual[z, 3.3e+168], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{+98}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-175}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-43}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+121}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+168}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.4999999999999999e98 or 2.1e64 < z < 3.0000000000000002e121 or 3.2999999999999999e168 < z Initial program 38.4%
associate-*l/68.9%
Simplified68.9%
Taylor expanded in z around inf 58.5%
if -2.4999999999999999e98 < z < 3e-175 or 2.2999999999999999e-43 < z < 2.1e64Initial program 88.7%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in x around inf 68.2%
mul-1-neg68.2%
unsub-neg68.2%
Simplified68.2%
Taylor expanded in z around 0 62.7%
if 3e-175 < z < 2.2999999999999999e-43Initial program 83.8%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in z around 0 51.1%
Taylor expanded in t around inf 50.0%
*-commutative50.0%
Simplified50.0%
if 3.0000000000000002e121 < z < 3.2999999999999999e168Initial program 14.8%
associate-*l/51.5%
Simplified51.5%
Taylor expanded in x around inf 40.0%
mul-1-neg40.0%
unsub-neg40.0%
Simplified40.0%
Taylor expanded in z around inf 56.5%
associate-*r/56.5%
neg-mul-156.5%
+-commutative56.5%
distribute-lft-in56.5%
neg-mul-156.5%
remove-double-neg56.5%
neg-mul-156.5%
sub-neg56.5%
Simplified56.5%
Taylor expanded in x around 0 49.6%
associate-*l/61.0%
*-commutative61.0%
Simplified61.0%
Final simplification60.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -5.5e+97)
t
(if (<= z 4.8e+64)
t_1
(if (<= z 8.8e+105)
t
(if (<= z 2.9e+128)
t_1
(if (<= z 2.9e+199) (* x (/ (- y a) z)) t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5.5e+97) {
tmp = t;
} else if (z <= 4.8e+64) {
tmp = t_1;
} else if (z <= 8.8e+105) {
tmp = t;
} else if (z <= 2.9e+128) {
tmp = t_1;
} else if (z <= 2.9e+199) {
tmp = x * ((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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-5.5d+97)) then
tmp = t
else if (z <= 4.8d+64) then
tmp = t_1
else if (z <= 8.8d+105) then
tmp = t
else if (z <= 2.9d+128) then
tmp = t_1
else if (z <= 2.9d+199) then
tmp = x * ((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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5.5e+97) {
tmp = t;
} else if (z <= 4.8e+64) {
tmp = t_1;
} else if (z <= 8.8e+105) {
tmp = t;
} else if (z <= 2.9e+128) {
tmp = t_1;
} else if (z <= 2.9e+199) {
tmp = x * ((y - a) / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -5.5e+97: tmp = t elif z <= 4.8e+64: tmp = t_1 elif z <= 8.8e+105: tmp = t elif z <= 2.9e+128: tmp = t_1 elif z <= 2.9e+199: tmp = x * ((y - a) / z) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -5.5e+97) tmp = t; elseif (z <= 4.8e+64) tmp = t_1; elseif (z <= 8.8e+105) tmp = t; elseif (z <= 2.9e+128) tmp = t_1; elseif (z <= 2.9e+199) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -5.5e+97) tmp = t; elseif (z <= 4.8e+64) tmp = t_1; elseif (z <= 8.8e+105) tmp = t; elseif (z <= 2.9e+128) tmp = t_1; elseif (z <= 2.9e+199) tmp = x * ((y - a) / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e+97], t, If[LessEqual[z, 4.8e+64], t$95$1, If[LessEqual[z, 8.8e+105], t, If[LessEqual[z, 2.9e+128], t$95$1, If[LessEqual[z, 2.9e+199], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+97}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{+105}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+199}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.50000000000000021e97 or 4.79999999999999999e64 < z < 8.80000000000000027e105 or 2.8999999999999999e199 < z Initial program 39.0%
associate-*l/65.0%
Simplified65.0%
Taylor expanded in z around inf 61.6%
if -5.50000000000000021e97 < z < 4.79999999999999999e64 or 8.80000000000000027e105 < z < 2.9e128Initial program 85.5%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in x around inf 64.1%
mul-1-neg64.1%
unsub-neg64.1%
Simplified64.1%
Taylor expanded in z around 0 57.3%
if 2.9e128 < z < 2.8999999999999999e199Initial program 28.0%
associate-*l/67.4%
Simplified67.4%
Taylor expanded in x around inf 27.2%
mul-1-neg27.2%
unsub-neg27.2%
Simplified27.2%
Taylor expanded in z around inf 47.1%
associate-*r/47.1%
neg-mul-147.1%
+-commutative47.1%
distribute-lft-in47.1%
neg-mul-147.1%
remove-double-neg47.1%
neg-mul-147.1%
sub-neg47.1%
Simplified47.1%
Final simplification58.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -5.8e+83)
t_1
(if (<= z 1.75e+64)
(+ x (/ y (/ a (- t x))))
(if (or (<= z 6.4e+142) (not (<= z 1.8e+167)))
t_1
(* (- y a) (/ x z)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -5.8e+83) {
tmp = t_1;
} else if (z <= 1.75e+64) {
tmp = x + (y / (a / (t - x)));
} else if ((z <= 6.4e+142) || !(z <= 1.8e+167)) {
tmp = t_1;
} else {
tmp = (y - a) * (x / 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) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-5.8d+83)) then
tmp = t_1
else if (z <= 1.75d+64) then
tmp = x + (y / (a / (t - x)))
else if ((z <= 6.4d+142) .or. (.not. (z <= 1.8d+167))) then
tmp = t_1
else
tmp = (y - a) * (x / z)
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) / (a - z));
double tmp;
if (z <= -5.8e+83) {
tmp = t_1;
} else if (z <= 1.75e+64) {
tmp = x + (y / (a / (t - x)));
} else if ((z <= 6.4e+142) || !(z <= 1.8e+167)) {
tmp = t_1;
} else {
tmp = (y - a) * (x / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -5.8e+83: tmp = t_1 elif z <= 1.75e+64: tmp = x + (y / (a / (t - x))) elif (z <= 6.4e+142) or not (z <= 1.8e+167): tmp = t_1 else: tmp = (y - a) * (x / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -5.8e+83) tmp = t_1; elseif (z <= 1.75e+64) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif ((z <= 6.4e+142) || !(z <= 1.8e+167)) tmp = t_1; else tmp = Float64(Float64(y - a) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -5.8e+83) tmp = t_1; elseif (z <= 1.75e+64) tmp = x + (y / (a / (t - x))); elseif ((z <= 6.4e+142) || ~((z <= 1.8e+167))) tmp = t_1; else tmp = (y - a) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e+83], t$95$1, If[LessEqual[z, 1.75e+64], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 6.4e+142], N[Not[LessEqual[z, 1.8e+167]], $MachinePrecision]], t$95$1, N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+142} \lor \neg \left(z \leq 1.8 \cdot 10^{+167}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -5.79999999999999999e83 or 1.7499999999999999e64 < z < 6.40000000000000011e142 or 1.80000000000000012e167 < z Initial program 38.9%
associate-*l/70.2%
Simplified70.2%
Taylor expanded in x around 0 46.5%
associate-*r/74.7%
Simplified74.7%
if -5.79999999999999999e83 < z < 1.7499999999999999e64Initial program 87.8%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in z around 0 67.7%
associate-/l*71.5%
Simplified71.5%
if 6.40000000000000011e142 < z < 1.80000000000000012e167Initial program 19.0%
associate-*l/35.4%
Simplified35.4%
Taylor expanded in x around inf 35.4%
mul-1-neg35.4%
unsub-neg35.4%
Simplified35.4%
Taylor expanded in z around inf 74.0%
associate-*r/74.0%
neg-mul-174.0%
+-commutative74.0%
distribute-lft-in74.0%
neg-mul-174.0%
remove-double-neg74.0%
neg-mul-174.0%
sub-neg74.0%
Simplified74.0%
Taylor expanded in x around 0 65.1%
associate-*l/80.0%
*-commutative80.0%
Simplified80.0%
Final simplification72.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.3e+107) (not (<= z 1.12e+142))) (+ t (/ (- x t) (/ z (- y a)))) (- x (* (- t x) (/ (- z y) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.3e+107) || !(z <= 1.12e+142)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x - ((t - x) * ((z - y) / (a - 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 <= (-3.3d+107)) .or. (.not. (z <= 1.12d+142))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x - ((t - x) * ((z - y) / (a - 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 <= -3.3e+107) || !(z <= 1.12e+142)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x - ((t - x) * ((z - y) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.3e+107) or not (z <= 1.12e+142): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x - ((t - x) * ((z - y) / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.3e+107) || !(z <= 1.12e+142)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x - Float64(Float64(t - x) * Float64(Float64(z - y) / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.3e+107) || ~((z <= 1.12e+142))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x - ((t - x) * ((z - y) / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.3e+107], N[Not[LessEqual[z, 1.12e+142]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+107} \lor \neg \left(z \leq 1.12 \cdot 10^{+142}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x - \left(t - x\right) \cdot \frac{z - y}{a - z}\\
\end{array}
\end{array}
if z < -3.30000000000000032e107 or 1.11999999999999996e142 < z Initial program 28.4%
associate-*l/60.0%
Simplified60.0%
Taylor expanded in z around inf 64.7%
associate--l+64.7%
associate-*r/64.7%
associate-*r/64.7%
div-sub64.7%
distribute-lft-out--64.7%
associate-*r/64.7%
distribute-rgt-out--65.0%
mul-1-neg65.0%
unsub-neg65.0%
associate-/l*89.3%
Simplified89.3%
if -3.30000000000000032e107 < z < 1.11999999999999996e142Initial program 84.8%
associate-*l/92.1%
Simplified92.1%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t) (/ z (- y z)))) (t_2 (* x (- 1.0 (/ y a)))))
(if (<= a -5.5e+75)
t_2
(if (<= a -4.6e-170)
t_1
(if (<= a 3.3e-215) (* y (/ (- x t) z)) (if (<= a 1.3e+30) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -t / (z / (y - z));
double t_2 = x * (1.0 - (y / a));
double tmp;
if (a <= -5.5e+75) {
tmp = t_2;
} else if (a <= -4.6e-170) {
tmp = t_1;
} else if (a <= 3.3e-215) {
tmp = y * ((x - t) / z);
} else if (a <= 1.3e+30) {
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 = -t / (z / (y - z))
t_2 = x * (1.0d0 - (y / a))
if (a <= (-5.5d+75)) then
tmp = t_2
else if (a <= (-4.6d-170)) then
tmp = t_1
else if (a <= 3.3d-215) then
tmp = y * ((x - t) / z)
else if (a <= 1.3d+30) 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 = -t / (z / (y - z));
double t_2 = x * (1.0 - (y / a));
double tmp;
if (a <= -5.5e+75) {
tmp = t_2;
} else if (a <= -4.6e-170) {
tmp = t_1;
} else if (a <= 3.3e-215) {
tmp = y * ((x - t) / z);
} else if (a <= 1.3e+30) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -t / (z / (y - z)) t_2 = x * (1.0 - (y / a)) tmp = 0 if a <= -5.5e+75: tmp = t_2 elif a <= -4.6e-170: tmp = t_1 elif a <= 3.3e-215: tmp = y * ((x - t) / z) elif a <= 1.3e+30: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-t) / Float64(z / Float64(y - z))) t_2 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (a <= -5.5e+75) tmp = t_2; elseif (a <= -4.6e-170) tmp = t_1; elseif (a <= 3.3e-215) tmp = Float64(y * Float64(Float64(x - t) / z)); elseif (a <= 1.3e+30) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -t / (z / (y - z)); t_2 = x * (1.0 - (y / a)); tmp = 0.0; if (a <= -5.5e+75) tmp = t_2; elseif (a <= -4.6e-170) tmp = t_1; elseif (a <= 3.3e-215) tmp = y * ((x - t) / z); elseif (a <= 1.3e+30) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+75], t$95$2, If[LessEqual[a, -4.6e-170], t$95$1, If[LessEqual[a, 3.3e-215], N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e+30], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-t}{\frac{z}{y - z}}\\
t_2 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-215}:\\
\;\;\;\;y \cdot \frac{x - t}{z}\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -5.5000000000000001e75 or 1.29999999999999994e30 < a Initial program 74.7%
associate-*l/94.7%
Simplified94.7%
Taylor expanded in x around inf 63.4%
mul-1-neg63.4%
unsub-neg63.4%
Simplified63.4%
Taylor expanded in z around 0 62.4%
if -5.5000000000000001e75 < a < -4.59999999999999974e-170 or 3.2999999999999998e-215 < a < 1.29999999999999994e30Initial program 58.2%
associate-*l/72.8%
Simplified72.8%
Taylor expanded in x around 0 50.2%
associate-/l*66.2%
Simplified66.2%
Taylor expanded in a around 0 43.8%
mul-1-neg43.8%
associate-/l*59.6%
distribute-neg-frac59.6%
Simplified59.6%
if -4.59999999999999974e-170 < a < 3.2999999999999998e-215Initial program 76.7%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in z around inf 87.0%
associate--l+87.0%
associate-*r/87.0%
associate-*r/87.0%
div-sub87.0%
distribute-lft-out--87.0%
associate-*r/87.0%
distribute-rgt-out--87.0%
mul-1-neg87.0%
unsub-neg87.0%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in y around -inf 65.8%
mul-1-neg65.8%
associate-*r/67.9%
distribute-rgt-neg-in67.9%
distribute-neg-frac67.9%
Simplified67.9%
Final simplification62.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8.5e-44) (not (<= a 1.12e+29))) (+ x (/ (- t x) (/ a (- y z)))) (+ t (/ (- x t) (/ z y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.5e-44) || !(a <= 1.12e+29)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / 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 ((a <= (-8.5d-44)) .or. (.not. (a <= 1.12d+29))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t + ((x - t) / (z / y))
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.5e-44) || !(a <= 1.12e+29)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8.5e-44) or not (a <= 1.12e+29): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t + ((x - t) / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8.5e-44) || !(a <= 1.12e+29)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8.5e-44) || ~((a <= 1.12e+29))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t + ((x - t) / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8.5e-44], N[Not[LessEqual[a, 1.12e+29]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{-44} \lor \neg \left(a \leq 1.12 \cdot 10^{+29}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\end{array}
\end{array}
if a < -8.5000000000000002e-44 or 1.1200000000000001e29 < a Initial program 73.3%
associate-*l/91.7%
Simplified91.7%
Taylor expanded in a around inf 67.5%
associate-/l*80.2%
Simplified80.2%
if -8.5000000000000002e-44 < a < 1.1200000000000001e29Initial program 63.6%
associate-*l/73.9%
Simplified73.9%
Taylor expanded in z around inf 76.6%
associate--l+76.6%
associate-*r/76.6%
associate-*r/76.6%
div-sub77.4%
distribute-lft-out--77.4%
associate-*r/77.4%
distribute-rgt-out--77.4%
mul-1-neg77.4%
unsub-neg77.4%
associate-/l*84.0%
Simplified84.0%
Taylor expanded in y around inf 78.8%
Final simplification79.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.8e+74) (not (<= a 7.7e+28))) (+ x (/ (- t x) (/ a (- y z)))) (+ t (/ (- x t) (/ z (- y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.8e+74) || !(a <= 7.7e+28)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / (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 ((a <= (-4.8d+74)) .or. (.not. (a <= 7.7d+28))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t + ((x - t) / (z / (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 ((a <= -4.8e+74) || !(a <= 7.7e+28)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.8e+74) or not (a <= 7.7e+28): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.8e+74) || !(a <= 7.7e+28)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.8e+74) || ~((a <= 7.7e+28))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.8e+74], N[Not[LessEqual[a, 7.7e+28]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{+74} \lor \neg \left(a \leq 7.7 \cdot 10^{+28}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if a < -4.80000000000000017e74 or 7.6999999999999997e28 < a Initial program 74.7%
associate-*l/94.7%
Simplified94.7%
Taylor expanded in a around inf 70.6%
associate-/l*85.7%
Simplified85.7%
if -4.80000000000000017e74 < a < 7.6999999999999997e28Initial program 63.9%
associate-*l/74.1%
Simplified74.1%
Taylor expanded in z around inf 72.6%
associate--l+72.6%
associate-*r/72.6%
associate-*r/72.6%
div-sub73.3%
distribute-lft-out--73.3%
associate-*r/73.3%
distribute-rgt-out--73.3%
mul-1-neg73.3%
unsub-neg73.3%
associate-/l*81.0%
Simplified81.0%
Final simplification82.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= a -4.2e-26)
t_1
(if (<= a 1.4e-151) (* y (/ (- x t) z)) (if (<= a 1.15e+33) t t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (a <= -4.2e-26) {
tmp = t_1;
} else if (a <= 1.4e-151) {
tmp = y * ((x - t) / z);
} else if (a <= 1.15e+33) {
tmp = 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 = x * (1.0d0 - (y / a))
if (a <= (-4.2d-26)) then
tmp = t_1
else if (a <= 1.4d-151) then
tmp = y * ((x - t) / z)
else if (a <= 1.15d+33) then
tmp = 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 = x * (1.0 - (y / a));
double tmp;
if (a <= -4.2e-26) {
tmp = t_1;
} else if (a <= 1.4e-151) {
tmp = y * ((x - t) / z);
} else if (a <= 1.15e+33) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if a <= -4.2e-26: tmp = t_1 elif a <= 1.4e-151: tmp = y * ((x - t) / z) elif a <= 1.15e+33: tmp = t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (a <= -4.2e-26) tmp = t_1; elseif (a <= 1.4e-151) tmp = Float64(y * Float64(Float64(x - t) / z)); elseif (a <= 1.15e+33) tmp = t; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (a <= -4.2e-26) tmp = t_1; elseif (a <= 1.4e-151) tmp = y * ((x - t) / z); elseif (a <= 1.15e+33) tmp = t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e-26], t$95$1, If[LessEqual[a, 1.4e-151], N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+33], t, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-151}:\\
\;\;\;\;y \cdot \frac{x - t}{z}\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+33}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.20000000000000016e-26 or 1.15000000000000005e33 < a Initial program 72.7%
associate-*l/91.5%
Simplified91.5%
Taylor expanded in x around inf 59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
Taylor expanded in z around 0 59.1%
if -4.20000000000000016e-26 < a < 1.4e-151Initial program 67.4%
associate-*l/73.6%
Simplified73.6%
Taylor expanded in z around inf 79.3%
associate--l+79.3%
associate-*r/79.3%
associate-*r/79.3%
div-sub80.4%
distribute-lft-out--80.4%
associate-*r/80.4%
distribute-rgt-out--80.4%
mul-1-neg80.4%
unsub-neg80.4%
associate-/l*84.4%
Simplified84.4%
Taylor expanded in y around -inf 46.7%
mul-1-neg46.7%
associate-*r/51.7%
distribute-rgt-neg-in51.7%
distribute-neg-frac51.7%
Simplified51.7%
if 1.4e-151 < a < 1.15000000000000005e33Initial program 57.0%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in z around inf 52.3%
Final simplification55.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.05e-85) (not (<= z 1.75e+64))) (+ t (/ (- x t) (/ z y))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.05e-85) || !(z <= 1.75e+64)) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (t - 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 ((z <= (-2.05d-85)) .or. (.not. (z <= 1.75d+64))) then
tmp = t + ((x - t) / (z / y))
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.05e-85) || !(z <= 1.75e+64)) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.05e-85) or not (z <= 1.75e+64): tmp = t + ((x - t) / (z / y)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.05e-85) || !(z <= 1.75e+64)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.05e-85) || ~((z <= 1.75e+64))) tmp = t + ((x - t) / (z / y)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.05e-85], N[Not[LessEqual[z, 1.75e+64]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{-85} \lor \neg \left(z \leq 1.75 \cdot 10^{+64}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -2.04999999999999997e-85 or 1.7499999999999999e64 < z Initial program 46.0%
associate-*l/70.9%
Simplified70.9%
Taylor expanded in z around inf 63.5%
associate--l+63.5%
associate-*r/63.5%
associate-*r/63.5%
div-sub63.6%
distribute-lft-out--63.6%
associate-*r/63.6%
distribute-rgt-out--63.8%
mul-1-neg63.8%
unsub-neg63.8%
associate-/l*78.2%
Simplified78.2%
Taylor expanded in y around inf 70.8%
if -2.04999999999999997e-85 < z < 1.7499999999999999e64Initial program 89.9%
associate-*l/94.2%
Simplified94.2%
Taylor expanded in z around 0 74.8%
associate-/l*77.8%
Simplified77.8%
Final simplification74.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.2e+97)
x
(if (<= a -3.5e-173)
t
(if (<= a 2.3e-156) (* x (/ y z)) (if (<= a 4e+34) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.2e+97) {
tmp = x;
} else if (a <= -3.5e-173) {
tmp = t;
} else if (a <= 2.3e-156) {
tmp = x * (y / z);
} else if (a <= 4e+34) {
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 <= (-4.2d+97)) then
tmp = x
else if (a <= (-3.5d-173)) then
tmp = t
else if (a <= 2.3d-156) then
tmp = x * (y / z)
else if (a <= 4d+34) 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 <= -4.2e+97) {
tmp = x;
} else if (a <= -3.5e-173) {
tmp = t;
} else if (a <= 2.3e-156) {
tmp = x * (y / z);
} else if (a <= 4e+34) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.2e+97: tmp = x elif a <= -3.5e-173: tmp = t elif a <= 2.3e-156: tmp = x * (y / z) elif a <= 4e+34: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.2e+97) tmp = x; elseif (a <= -3.5e-173) tmp = t; elseif (a <= 2.3e-156) tmp = Float64(x * Float64(y / z)); elseif (a <= 4e+34) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.2e+97) tmp = x; elseif (a <= -3.5e-173) tmp = t; elseif (a <= 2.3e-156) tmp = x * (y / z); elseif (a <= 4e+34) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.2e+97], x, If[LessEqual[a, -3.5e-173], t, If[LessEqual[a, 2.3e-156], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+34], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.2 \cdot 10^{+97}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.5 \cdot 10^{-173}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-156}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+34}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.20000000000000023e97 or 3.99999999999999978e34 < a Initial program 74.8%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in a around inf 48.9%
if -4.20000000000000023e97 < a < -3.50000000000000014e-173 or 2.3e-156 < a < 3.99999999999999978e34Initial program 56.0%
associate-*l/73.4%
Simplified73.4%
Taylor expanded in z around inf 41.8%
if -3.50000000000000014e-173 < a < 2.3e-156Initial program 76.0%
associate-*l/76.4%
Simplified76.4%
Taylor expanded in x around inf 40.5%
mul-1-neg40.5%
unsub-neg40.5%
Simplified40.5%
Taylor expanded in a around 0 43.6%
Final simplification45.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8.5e+95)
x
(if (<= a -9.6e-169)
t
(if (<= a 2.6e-215) (* y (/ x z)) (if (<= a 6e+32) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e+95) {
tmp = x;
} else if (a <= -9.6e-169) {
tmp = t;
} else if (a <= 2.6e-215) {
tmp = y * (x / z);
} else if (a <= 6e+32) {
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 <= (-8.5d+95)) then
tmp = x
else if (a <= (-9.6d-169)) then
tmp = t
else if (a <= 2.6d-215) then
tmp = y * (x / z)
else if (a <= 6d+32) 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 <= -8.5e+95) {
tmp = x;
} else if (a <= -9.6e-169) {
tmp = t;
} else if (a <= 2.6e-215) {
tmp = y * (x / z);
} else if (a <= 6e+32) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e+95: tmp = x elif a <= -9.6e-169: tmp = t elif a <= 2.6e-215: tmp = y * (x / z) elif a <= 6e+32: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e+95) tmp = x; elseif (a <= -9.6e-169) tmp = t; elseif (a <= 2.6e-215) tmp = Float64(y * Float64(x / z)); elseif (a <= 6e+32) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e+95) tmp = x; elseif (a <= -9.6e-169) tmp = t; elseif (a <= 2.6e-215) tmp = y * (x / z); elseif (a <= 6e+32) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e+95], x, If[LessEqual[a, -9.6e-169], t, If[LessEqual[a, 2.6e-215], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e+32], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{+95}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -9.6 \cdot 10^{-169}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-215}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+32}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -8.5000000000000002e95 or 6e32 < a Initial program 74.8%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in a around inf 48.9%
if -8.5000000000000002e95 < a < -9.60000000000000043e-169 or 2.6e-215 < a < 6e32Initial program 58.5%
associate-*l/73.6%
Simplified73.6%
Taylor expanded in z around inf 40.7%
if -9.60000000000000043e-169 < a < 2.6e-215Initial program 76.7%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in x around inf 44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in z around inf 48.1%
associate-*r/48.1%
neg-mul-148.1%
+-commutative48.1%
distribute-lft-in48.1%
neg-mul-148.1%
remove-double-neg48.1%
neg-mul-148.1%
sub-neg48.1%
Simplified48.1%
Taylor expanded in y around inf 47.9%
associate-/l*45.9%
associate-/r/47.8%
Simplified47.8%
Final simplification45.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.15e+115)
x
(if (<= a -4.05e-171)
t
(if (<= a 4.6e-217) (/ (* x y) z) (if (<= a 7.2e+34) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.15e+115) {
tmp = x;
} else if (a <= -4.05e-171) {
tmp = t;
} else if (a <= 4.6e-217) {
tmp = (x * y) / z;
} else if (a <= 7.2e+34) {
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 <= (-1.15d+115)) then
tmp = x
else if (a <= (-4.05d-171)) then
tmp = t
else if (a <= 4.6d-217) then
tmp = (x * y) / z
else if (a <= 7.2d+34) 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 <= -1.15e+115) {
tmp = x;
} else if (a <= -4.05e-171) {
tmp = t;
} else if (a <= 4.6e-217) {
tmp = (x * y) / z;
} else if (a <= 7.2e+34) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.15e+115: tmp = x elif a <= -4.05e-171: tmp = t elif a <= 4.6e-217: tmp = (x * y) / z elif a <= 7.2e+34: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.15e+115) tmp = x; elseif (a <= -4.05e-171) tmp = t; elseif (a <= 4.6e-217) tmp = Float64(Float64(x * y) / z); elseif (a <= 7.2e+34) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.15e+115) tmp = x; elseif (a <= -4.05e-171) tmp = t; elseif (a <= 4.6e-217) tmp = (x * y) / z; elseif (a <= 7.2e+34) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.15e+115], x, If[LessEqual[a, -4.05e-171], t, If[LessEqual[a, 4.6e-217], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 7.2e+34], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{+115}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.05 \cdot 10^{-171}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-217}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+34}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.15000000000000002e115 or 7.2000000000000001e34 < a Initial program 74.8%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in a around inf 48.9%
if -1.15000000000000002e115 < a < -4.05e-171 or 4.6000000000000001e-217 < a < 7.2000000000000001e34Initial program 58.5%
associate-*l/73.6%
Simplified73.6%
Taylor expanded in z around inf 40.7%
if -4.05e-171 < a < 4.6000000000000001e-217Initial program 76.7%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in x around inf 44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in a around 0 47.9%
Final simplification45.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.1e+94) t (if (<= z 2.8e+64) (* x (- 1.0 (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.1e+94) {
tmp = t;
} else if (z <= 2.8e+64) {
tmp = x * (1.0 - (y / a));
} 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 <= (-2.1d+94)) then
tmp = t
else if (z <= 2.8d+64) then
tmp = x * (1.0d0 - (y / a))
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 <= -2.1e+94) {
tmp = t;
} else if (z <= 2.8e+64) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.1e+94: tmp = t elif z <= 2.8e+64: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.1e+94) tmp = t; elseif (z <= 2.8e+64) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.1e+94) tmp = t; elseif (z <= 2.8e+64) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.1e+94], t, If[LessEqual[z, 2.8e+64], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+94}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.09999999999999989e94 or 2.80000000000000024e64 < z Initial program 36.4%
associate-*l/67.5%
Simplified67.5%
Taylor expanded in z around inf 54.5%
if -2.09999999999999989e94 < z < 2.80000000000000024e64Initial program 88.0%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in x around inf 64.5%
mul-1-neg64.5%
unsub-neg64.5%
Simplified64.5%
Taylor expanded in z around 0 57.4%
Final simplification56.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.5e+98) x (if (<= a 8.2e+34) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e+98) {
tmp = x;
} else if (a <= 8.2e+34) {
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 <= (-1.5d+98)) then
tmp = x
else if (a <= 8.2d+34) 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 <= -1.5e+98) {
tmp = x;
} else if (a <= 8.2e+34) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.5e+98: tmp = x elif a <= 8.2e+34: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.5e+98) tmp = x; elseif (a <= 8.2e+34) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.5e+98) tmp = x; elseif (a <= 8.2e+34) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e+98], x, If[LessEqual[a, 8.2e+34], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{+98}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+34}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.5000000000000001e98 or 8.1999999999999997e34 < a Initial program 74.8%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in a around inf 48.9%
if -1.5000000000000001e98 < a < 8.1999999999999997e34Initial program 64.0%
associate-*l/74.6%
Simplified74.6%
Taylor expanded in z around inf 34.9%
Final simplification40.6%
(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 68.5%
associate-*l/82.8%
Simplified82.8%
Taylor expanded in z around inf 25.5%
Final simplification25.5%
(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 2023336
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(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))))