
(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 26 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
(let* ((t_1 (/ z (- a z))))
(if (<= t -7e+15)
(+ x (* (/ (- y z) (- a z)) (- t x)))
(if (<= t 2.9e+63)
(-
(/ (* t (- y z)) (- a z))
(*
x
(+
(/ y (- a z))
(/ (- -1.0 (pow t_1 3.0)) (+ 1.0 (- (pow t_1 2.0) t_1))))))
(+ x (/ (- y z) (/ (- a z) (- t x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z / (a - z);
double tmp;
if (t <= -7e+15) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else if (t <= 2.9e+63) {
tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) + ((-1.0 - pow(t_1, 3.0)) / (1.0 + (pow(t_1, 2.0) - t_1)))));
} else {
tmp = x + ((y - z) / ((a - z) / (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) :: t_1
real(8) :: tmp
t_1 = z / (a - z)
if (t <= (-7d+15)) then
tmp = x + (((y - z) / (a - z)) * (t - x))
else if (t <= 2.9d+63) then
tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) + (((-1.0d0) - (t_1 ** 3.0d0)) / (1.0d0 + ((t_1 ** 2.0d0) - t_1)))))
else
tmp = x + ((y - z) / ((a - z) / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z / (a - z);
double tmp;
if (t <= -7e+15) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else if (t <= 2.9e+63) {
tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) + ((-1.0 - Math.pow(t_1, 3.0)) / (1.0 + (Math.pow(t_1, 2.0) - t_1)))));
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z / (a - z) tmp = 0 if t <= -7e+15: tmp = x + (((y - z) / (a - z)) * (t - x)) elif t <= 2.9e+63: tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) + ((-1.0 - math.pow(t_1, 3.0)) / (1.0 + (math.pow(t_1, 2.0) - t_1))))) else: tmp = x + ((y - z) / ((a - z) / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(z / Float64(a - z)) tmp = 0.0 if (t <= -7e+15) tmp = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * Float64(t - x))); elseif (t <= 2.9e+63) tmp = Float64(Float64(Float64(t * Float64(y - z)) / Float64(a - z)) - Float64(x * Float64(Float64(y / Float64(a - z)) + Float64(Float64(-1.0 - (t_1 ^ 3.0)) / Float64(1.0 + Float64((t_1 ^ 2.0) - t_1)))))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z / (a - z); tmp = 0.0; if (t <= -7e+15) tmp = x + (((y - z) / (a - z)) * (t - x)); elseif (t <= 2.9e+63) tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) + ((-1.0 - (t_1 ^ 3.0)) / (1.0 + ((t_1 ^ 2.0) - t_1))))); else tmp = x + ((y - z) / ((a - z) / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7e+15], N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+63], N[(N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] + N[(N[(-1.0 - N[Power[t$95$1, 3.0], $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(N[Power[t$95$1, 2.0], $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{a - z}\\
\mathbf{if}\;t \leq -7 \cdot 10^{+15}:\\
\;\;\;\;x + \frac{y - z}{a - z} \cdot \left(t - x\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+63}:\\
\;\;\;\;\frac{t \cdot \left(y - z\right)}{a - z} - x \cdot \left(\frac{y}{a - z} + \frac{-1 - {t_1}^{3}}{1 + \left({t_1}^{2} - t_1\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if t < -7e15Initial program 72.5%
associate-*l/90.6%
Simplified90.6%
if -7e15 < t < 2.8999999999999999e63Initial program 66.8%
associate-*l/74.4%
Simplified74.4%
Taylor expanded in x around -inf 92.1%
flip3-+92.1%
metadata-eval92.1%
metadata-eval92.1%
pow292.1%
*-un-lft-identity92.1%
Applied egg-rr92.1%
if 2.8999999999999999e63 < t Initial program 63.9%
associate-/l*99.8%
Simplified99.8%
Final simplification93.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.8e+16)
(+ x (* (/ (- y z) (- a z)) (- t x)))
(if (<= t 6.6e+70)
(-
(/ (* t (- y z)) (- a z))
(* x (- (/ y (- a z)) (log (exp (+ 1.0 (/ z (- a z))))))))
(+ x (/ (- y z) (/ (- a z) (- t x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+16) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else if (t <= 6.6e+70) {
tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) - log(exp((1.0 + (z / (a - z)))))));
} else {
tmp = x + ((y - z) / ((a - z) / (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 (t <= (-2.8d+16)) then
tmp = x + (((y - z) / (a - z)) * (t - x))
else if (t <= 6.6d+70) then
tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) - log(exp((1.0d0 + (z / (a - z)))))))
else
tmp = x + ((y - z) / ((a - z) / (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 (t <= -2.8e+16) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else if (t <= 6.6e+70) {
tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) - Math.log(Math.exp((1.0 + (z / (a - z)))))));
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.8e+16: tmp = x + (((y - z) / (a - z)) * (t - x)) elif t <= 6.6e+70: tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) - math.log(math.exp((1.0 + (z / (a - z))))))) else: tmp = x + ((y - z) / ((a - z) / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.8e+16) tmp = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * Float64(t - x))); elseif (t <= 6.6e+70) tmp = Float64(Float64(Float64(t * Float64(y - z)) / Float64(a - z)) - Float64(x * Float64(Float64(y / Float64(a - z)) - log(exp(Float64(1.0 + Float64(z / Float64(a - z)))))))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.8e+16) tmp = x + (((y - z) / (a - z)) * (t - x)); elseif (t <= 6.6e+70) tmp = ((t * (y - z)) / (a - z)) - (x * ((y / (a - z)) - log(exp((1.0 + (z / (a - z))))))); else tmp = x + ((y - z) / ((a - z) / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.8e+16], N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e+70], N[(N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] - N[Log[N[Exp[N[(1.0 + N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+16}:\\
\;\;\;\;x + \frac{y - z}{a - z} \cdot \left(t - x\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+70}:\\
\;\;\;\;\frac{t \cdot \left(y - z\right)}{a - z} - x \cdot \left(\frac{y}{a - z} - \log \left(e^{1 + \frac{z}{a - z}}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if t < -2.8e16Initial program 72.5%
associate-*l/90.6%
Simplified90.6%
if -2.8e16 < t < 6.60000000000000033e70Initial program 66.8%
associate-*l/74.4%
Simplified74.4%
Taylor expanded in x around -inf 92.1%
add-log-exp92.1%
Applied egg-rr92.1%
if 6.60000000000000033e70 < t Initial program 63.9%
associate-/l*99.8%
Simplified99.8%
Final simplification93.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4e+17)
(+ x (* (/ (- y z) (- a z)) (- t x)))
(if (<= t 2.9e+71)
(+
(/ (* t (- y z)) (- a z))
(* x (- (+ 1.0 (/ z (- a z))) (/ y (- a z)))))
(+ x (/ (- y z) (/ (- a z) (- t x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4e+17) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else if (t <= 2.9e+71) {
tmp = ((t * (y - z)) / (a - z)) + (x * ((1.0 + (z / (a - z))) - (y / (a - z))));
} else {
tmp = x + ((y - z) / ((a - z) / (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 (t <= (-4d+17)) then
tmp = x + (((y - z) / (a - z)) * (t - x))
else if (t <= 2.9d+71) then
tmp = ((t * (y - z)) / (a - z)) + (x * ((1.0d0 + (z / (a - z))) - (y / (a - z))))
else
tmp = x + ((y - z) / ((a - z) / (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 (t <= -4e+17) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else if (t <= 2.9e+71) {
tmp = ((t * (y - z)) / (a - z)) + (x * ((1.0 + (z / (a - z))) - (y / (a - z))));
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4e+17: tmp = x + (((y - z) / (a - z)) * (t - x)) elif t <= 2.9e+71: tmp = ((t * (y - z)) / (a - z)) + (x * ((1.0 + (z / (a - z))) - (y / (a - z)))) else: tmp = x + ((y - z) / ((a - z) / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4e+17) tmp = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * Float64(t - x))); elseif (t <= 2.9e+71) tmp = Float64(Float64(Float64(t * Float64(y - z)) / Float64(a - z)) + Float64(x * Float64(Float64(1.0 + Float64(z / Float64(a - z))) - Float64(y / Float64(a - z))))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4e+17) tmp = x + (((y - z) / (a - z)) * (t - x)); elseif (t <= 2.9e+71) tmp = ((t * (y - z)) / (a - z)) + (x * ((1.0 + (z / (a - z))) - (y / (a - z)))); else tmp = x + ((y - z) / ((a - z) / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4e+17], N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+71], N[(N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(1.0 + N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+17}:\\
\;\;\;\;x + \frac{y - z}{a - z} \cdot \left(t - x\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+71}:\\
\;\;\;\;\frac{t \cdot \left(y - z\right)}{a - z} + x \cdot \left(\left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if t < -4e17Initial program 72.5%
associate-*l/90.6%
Simplified90.6%
if -4e17 < t < 2.90000000000000007e71Initial program 66.8%
associate-*l/74.4%
Simplified74.4%
Taylor expanded in x around -inf 92.1%
if 2.90000000000000007e71 < t Initial program 63.9%
associate-/l*99.8%
Simplified99.8%
Final simplification93.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (- x (/ t (/ a z)))))
(if (<= a -5.4e+91)
t_2
(if (<= a -7e-191)
t_1
(if (<= a -3.8e-276)
(* y (/ (- t x) (- a z)))
(if (<= a 8.8e-278)
(/ (- t) (/ z (- y z)))
(if (<= a 2.4e-196)
(/ (- y) (/ z (- t x)))
(if (<= a 1.4e+137) 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 - (t / (a / z));
double tmp;
if (a <= -5.4e+91) {
tmp = t_2;
} else if (a <= -7e-191) {
tmp = t_1;
} else if (a <= -3.8e-276) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 8.8e-278) {
tmp = -t / (z / (y - z));
} else if (a <= 2.4e-196) {
tmp = -y / (z / (t - x));
} else if (a <= 1.4e+137) {
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 - (t / (a / z))
if (a <= (-5.4d+91)) then
tmp = t_2
else if (a <= (-7d-191)) then
tmp = t_1
else if (a <= (-3.8d-276)) then
tmp = y * ((t - x) / (a - z))
else if (a <= 8.8d-278) then
tmp = -t / (z / (y - z))
else if (a <= 2.4d-196) then
tmp = -y / (z / (t - x))
else if (a <= 1.4d+137) 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 - (t / (a / z));
double tmp;
if (a <= -5.4e+91) {
tmp = t_2;
} else if (a <= -7e-191) {
tmp = t_1;
} else if (a <= -3.8e-276) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 8.8e-278) {
tmp = -t / (z / (y - z));
} else if (a <= 2.4e-196) {
tmp = -y / (z / (t - x));
} else if (a <= 1.4e+137) {
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 - (t / (a / z)) tmp = 0 if a <= -5.4e+91: tmp = t_2 elif a <= -7e-191: tmp = t_1 elif a <= -3.8e-276: tmp = y * ((t - x) / (a - z)) elif a <= 8.8e-278: tmp = -t / (z / (y - z)) elif a <= 2.4e-196: tmp = -y / (z / (t - x)) elif a <= 1.4e+137: 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(t / Float64(a / z))) tmp = 0.0 if (a <= -5.4e+91) tmp = t_2; elseif (a <= -7e-191) tmp = t_1; elseif (a <= -3.8e-276) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 8.8e-278) tmp = Float64(Float64(-t) / Float64(z / Float64(y - z))); elseif (a <= 2.4e-196) tmp = Float64(Float64(-y) / Float64(z / Float64(t - x))); elseif (a <= 1.4e+137) 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 - (t / (a / z)); tmp = 0.0; if (a <= -5.4e+91) tmp = t_2; elseif (a <= -7e-191) tmp = t_1; elseif (a <= -3.8e-276) tmp = y * ((t - x) / (a - z)); elseif (a <= 8.8e-278) tmp = -t / (z / (y - z)); elseif (a <= 2.4e-196) tmp = -y / (z / (t - x)); elseif (a <= 1.4e+137) 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[(t / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.4e+91], t$95$2, If[LessEqual[a, -7e-191], t$95$1, If[LessEqual[a, -3.8e-276], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e-278], N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-196], N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+137], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x - \frac{t}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -5.4 \cdot 10^{+91}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-191}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-276}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{-278}:\\
\;\;\;\;\frac{-t}{\frac{z}{y - z}}\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-196}:\\
\;\;\;\;\frac{-y}{\frac{z}{t - x}}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -5.4e91 or 1.4e137 < a Initial program 69.1%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in a around inf 67.4%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in y around 0 70.6%
associate-*r/70.6%
mul-1-neg70.6%
Simplified70.6%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
associate-/l*70.4%
distribute-neg-frac70.4%
Simplified70.4%
if -5.4e91 < a < -7.00000000000000013e-191 or 2.40000000000000021e-196 < a < 1.4e137Initial program 65.4%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in x around 0 53.5%
associate-*r/64.9%
Simplified64.9%
if -7.00000000000000013e-191 < a < -3.8e-276Initial program 92.3%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in y around inf 77.3%
div-sub85.0%
Simplified85.0%
if -3.8e-276 < a < 8.8000000000000003e-278Initial program 46.3%
associate-*l/67.7%
Simplified67.7%
Taylor expanded in x around -inf 68.3%
Taylor expanded in x around 0 52.1%
associate-/l*78.3%
associate-/r/67.7%
Simplified67.7%
Taylor expanded in a around 0 52.1%
mul-1-neg52.1%
associate-/l*78.3%
Simplified78.3%
if 8.8000000000000003e-278 < a < 2.40000000000000021e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in a around 0 76.2%
mul-1-neg76.2%
associate-/l*76.3%
distribute-neg-frac76.3%
Simplified76.3%
Final simplification69.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z))))
(t_2 (- x (/ t (/ a z))))
(t_3 (* (- t x) (/ y (- a z)))))
(if (<= a -5e+90)
t_2
(if (<= a -5.8e-191)
t_1
(if (<= a -9.5e-304)
t_3
(if (<= a 2.15e-277)
(/ (- t) (/ z (- y z)))
(if (<= a 2.8e-196) t_3 (if (<= a 6e+137) 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 - (t / (a / z));
double t_3 = (t - x) * (y / (a - z));
double tmp;
if (a <= -5e+90) {
tmp = t_2;
} else if (a <= -5.8e-191) {
tmp = t_1;
} else if (a <= -9.5e-304) {
tmp = t_3;
} else if (a <= 2.15e-277) {
tmp = -t / (z / (y - z));
} else if (a <= 2.8e-196) {
tmp = t_3;
} else if (a <= 6e+137) {
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) :: t_3
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
t_2 = x - (t / (a / z))
t_3 = (t - x) * (y / (a - z))
if (a <= (-5d+90)) then
tmp = t_2
else if (a <= (-5.8d-191)) then
tmp = t_1
else if (a <= (-9.5d-304)) then
tmp = t_3
else if (a <= 2.15d-277) then
tmp = -t / (z / (y - z))
else if (a <= 2.8d-196) then
tmp = t_3
else if (a <= 6d+137) 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 - (t / (a / z));
double t_3 = (t - x) * (y / (a - z));
double tmp;
if (a <= -5e+90) {
tmp = t_2;
} else if (a <= -5.8e-191) {
tmp = t_1;
} else if (a <= -9.5e-304) {
tmp = t_3;
} else if (a <= 2.15e-277) {
tmp = -t / (z / (y - z));
} else if (a <= 2.8e-196) {
tmp = t_3;
} else if (a <= 6e+137) {
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 - (t / (a / z)) t_3 = (t - x) * (y / (a - z)) tmp = 0 if a <= -5e+90: tmp = t_2 elif a <= -5.8e-191: tmp = t_1 elif a <= -9.5e-304: tmp = t_3 elif a <= 2.15e-277: tmp = -t / (z / (y - z)) elif a <= 2.8e-196: tmp = t_3 elif a <= 6e+137: 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(t / Float64(a / z))) t_3 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) tmp = 0.0 if (a <= -5e+90) tmp = t_2; elseif (a <= -5.8e-191) tmp = t_1; elseif (a <= -9.5e-304) tmp = t_3; elseif (a <= 2.15e-277) tmp = Float64(Float64(-t) / Float64(z / Float64(y - z))); elseif (a <= 2.8e-196) tmp = t_3; elseif (a <= 6e+137) 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 - (t / (a / z)); t_3 = (t - x) * (y / (a - z)); tmp = 0.0; if (a <= -5e+90) tmp = t_2; elseif (a <= -5.8e-191) tmp = t_1; elseif (a <= -9.5e-304) tmp = t_3; elseif (a <= 2.15e-277) tmp = -t / (z / (y - z)); elseif (a <= 2.8e-196) tmp = t_3; elseif (a <= 6e+137) 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[(t / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5e+90], t$95$2, If[LessEqual[a, -5.8e-191], t$95$1, If[LessEqual[a, -9.5e-304], t$95$3, If[LessEqual[a, 2.15e-277], N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-196], t$95$3, If[LessEqual[a, 6e+137], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x - \frac{t}{\frac{a}{z}}\\
t_3 := \left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{if}\;a \leq -5 \cdot 10^{+90}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-191}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-304}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-277}:\\
\;\;\;\;\frac{-t}{\frac{z}{y - z}}\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-196}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -5.0000000000000004e90 or 6.0000000000000002e137 < a Initial program 69.1%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in a around inf 67.4%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in y around 0 70.6%
associate-*r/70.6%
mul-1-neg70.6%
Simplified70.6%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
associate-/l*70.4%
distribute-neg-frac70.4%
Simplified70.4%
if -5.0000000000000004e90 < a < -5.7999999999999999e-191 or 2.7999999999999998e-196 < a < 6.0000000000000002e137Initial program 65.4%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in x around 0 53.5%
associate-*r/64.9%
Simplified64.9%
if -5.7999999999999999e-191 < a < -9.50000000000000023e-304 or 2.14999999999999995e-277 < a < 2.7999999999999998e-196Initial program 78.3%
associate-*l/81.0%
Simplified81.0%
Taylor expanded in y around -inf 79.9%
associate-*l/80.0%
Simplified80.0%
if -9.50000000000000023e-304 < a < 2.14999999999999995e-277Initial program 46.7%
associate-*l/78.6%
Simplified78.6%
Taylor expanded in x around -inf 47.3%
Taylor expanded in x around 0 58.4%
associate-/l*100.0%
associate-/r/89.3%
Simplified89.3%
Taylor expanded in a around 0 58.4%
mul-1-neg58.4%
associate-/l*100.0%
Simplified100.0%
Final simplification69.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z y)))) (t_2 (+ x (/ (- y z) (/ (- a z) t)))))
(if (<= a -125000000.0)
t_2
(if (<= a 4.7e-51)
t_1
(if (<= a 4.6e+27)
t_2
(if (<= a 3.5e+59)
t_1
(if (<= a 7.3e+140) (+ x (/ (- t x) (/ a (- y z)))) t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / y));
double t_2 = x + ((y - z) / ((a - z) / t));
double tmp;
if (a <= -125000000.0) {
tmp = t_2;
} else if (a <= 4.7e-51) {
tmp = t_1;
} else if (a <= 4.6e+27) {
tmp = t_2;
} else if (a <= 3.5e+59) {
tmp = t_1;
} else if (a <= 7.3e+140) {
tmp = x + ((t - x) / (a / (y - 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 + ((x - t) / (z / y))
t_2 = x + ((y - z) / ((a - z) / t))
if (a <= (-125000000.0d0)) then
tmp = t_2
else if (a <= 4.7d-51) then
tmp = t_1
else if (a <= 4.6d+27) then
tmp = t_2
else if (a <= 3.5d+59) then
tmp = t_1
else if (a <= 7.3d+140) then
tmp = x + ((t - x) / (a / (y - 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 + ((x - t) / (z / y));
double t_2 = x + ((y - z) / ((a - z) / t));
double tmp;
if (a <= -125000000.0) {
tmp = t_2;
} else if (a <= 4.7e-51) {
tmp = t_1;
} else if (a <= 4.6e+27) {
tmp = t_2;
} else if (a <= 3.5e+59) {
tmp = t_1;
} else if (a <= 7.3e+140) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / y)) t_2 = x + ((y - z) / ((a - z) / t)) tmp = 0 if a <= -125000000.0: tmp = t_2 elif a <= 4.7e-51: tmp = t_1 elif a <= 4.6e+27: tmp = t_2 elif a <= 3.5e+59: tmp = t_1 elif a <= 7.3e+140: tmp = x + ((t - x) / (a / (y - z))) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / y))) t_2 = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))) tmp = 0.0 if (a <= -125000000.0) tmp = t_2; elseif (a <= 4.7e-51) tmp = t_1; elseif (a <= 4.6e+27) tmp = t_2; elseif (a <= 3.5e+59) tmp = t_1; elseif (a <= 7.3e+140) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / y)); t_2 = x + ((y - z) / ((a - z) / t)); tmp = 0.0; if (a <= -125000000.0) tmp = t_2; elseif (a <= 4.7e-51) tmp = t_1; elseif (a <= 4.6e+27) tmp = t_2; elseif (a <= 3.5e+59) tmp = t_1; elseif (a <= 7.3e+140) tmp = x + ((t - x) / (a / (y - z))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -125000000.0], t$95$2, If[LessEqual[a, 4.7e-51], t$95$1, If[LessEqual[a, 4.6e+27], t$95$2, If[LessEqual[a, 3.5e+59], t$95$1, If[LessEqual[a, 7.3e+140], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y}}\\
t_2 := x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{if}\;a \leq -125000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+27}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.3 \cdot 10^{+140}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.25e8 or 4.6999999999999997e-51 < a < 4.6000000000000001e27 or 7.3000000000000004e140 < a Initial program 72.5%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in t around inf 83.2%
if -1.25e8 < a < 4.6999999999999997e-51 or 4.6000000000000001e27 < a < 3.5e59Initial program 62.4%
associate-*l/74.3%
Simplified74.3%
Taylor expanded in z around inf 80.0%
associate--l+80.0%
associate-*r/80.0%
associate-*r/80.0%
div-sub82.9%
distribute-lft-out--82.9%
associate-*r/82.9%
distribute-rgt-out--82.9%
mul-1-neg82.9%
unsub-neg82.9%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in y around inf 83.7%
if 3.5e59 < a < 7.3000000000000004e140Initial program 85.3%
associate-*l/92.4%
Simplified92.4%
Taylor expanded in a around inf 70.9%
associate-/l*78.2%
Simplified78.2%
Final simplification83.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t) (/ z (- y z)))))
(if (<= a -1.34e+26)
(- x (/ x (/ a y)))
(if (<= a -1.35e-190)
t_1
(if (<= a -7.5e-266)
(/ (- x) (/ (- a z) y))
(if (<= a 3.6e-276)
t_1
(if (<= a 2.4e-196)
(/ x (/ z y))
(if (<= a 3.4e+61) t_1 (- x (/ t (/ a z)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -t / (z / (y - z));
double tmp;
if (a <= -1.34e+26) {
tmp = x - (x / (a / y));
} else if (a <= -1.35e-190) {
tmp = t_1;
} else if (a <= -7.5e-266) {
tmp = -x / ((a - z) / y);
} else if (a <= 3.6e-276) {
tmp = t_1;
} else if (a <= 2.4e-196) {
tmp = x / (z / y);
} else if (a <= 3.4e+61) {
tmp = t_1;
} else {
tmp = x - (t / (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) :: t_1
real(8) :: tmp
t_1 = -t / (z / (y - z))
if (a <= (-1.34d+26)) then
tmp = x - (x / (a / y))
else if (a <= (-1.35d-190)) then
tmp = t_1
else if (a <= (-7.5d-266)) then
tmp = -x / ((a - z) / y)
else if (a <= 3.6d-276) then
tmp = t_1
else if (a <= 2.4d-196) then
tmp = x / (z / y)
else if (a <= 3.4d+61) then
tmp = t_1
else
tmp = x - (t / (a / 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 / (z / (y - z));
double tmp;
if (a <= -1.34e+26) {
tmp = x - (x / (a / y));
} else if (a <= -1.35e-190) {
tmp = t_1;
} else if (a <= -7.5e-266) {
tmp = -x / ((a - z) / y);
} else if (a <= 3.6e-276) {
tmp = t_1;
} else if (a <= 2.4e-196) {
tmp = x / (z / y);
} else if (a <= 3.4e+61) {
tmp = t_1;
} else {
tmp = x - (t / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -t / (z / (y - z)) tmp = 0 if a <= -1.34e+26: tmp = x - (x / (a / y)) elif a <= -1.35e-190: tmp = t_1 elif a <= -7.5e-266: tmp = -x / ((a - z) / y) elif a <= 3.6e-276: tmp = t_1 elif a <= 2.4e-196: tmp = x / (z / y) elif a <= 3.4e+61: tmp = t_1 else: tmp = x - (t / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-t) / Float64(z / Float64(y - z))) tmp = 0.0 if (a <= -1.34e+26) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (a <= -1.35e-190) tmp = t_1; elseif (a <= -7.5e-266) tmp = Float64(Float64(-x) / Float64(Float64(a - z) / y)); elseif (a <= 3.6e-276) tmp = t_1; elseif (a <= 2.4e-196) tmp = Float64(x / Float64(z / y)); elseif (a <= 3.4e+61) tmp = t_1; else tmp = Float64(x - Float64(t / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -t / (z / (y - z)); tmp = 0.0; if (a <= -1.34e+26) tmp = x - (x / (a / y)); elseif (a <= -1.35e-190) tmp = t_1; elseif (a <= -7.5e-266) tmp = -x / ((a - z) / y); elseif (a <= 3.6e-276) tmp = t_1; elseif (a <= 2.4e-196) tmp = x / (z / y); elseif (a <= 3.4e+61) tmp = t_1; else tmp = x - (t / (a / z)); 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]}, If[LessEqual[a, -1.34e+26], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.35e-190], t$95$1, If[LessEqual[a, -7.5e-266], N[((-x) / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.6e-276], t$95$1, If[LessEqual[a, 2.4e-196], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e+61], t$95$1, N[(x - N[(t / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-t}{\frac{z}{y - z}}\\
\mathbf{if}\;a \leq -1.34 \cdot 10^{+26}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -1.35 \cdot 10^{-190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-266}:\\
\;\;\;\;\frac{-x}{\frac{a - z}{y}}\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{-276}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-196}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{+61}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{t}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -1.34000000000000007e26Initial program 68.9%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in z around 0 71.4%
Taylor expanded in t around 0 53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*61.6%
Simplified61.6%
if -1.34000000000000007e26 < a < -1.35e-190 or -7.4999999999999995e-266 < a < 3.59999999999999994e-276 or 2.40000000000000021e-196 < a < 3.40000000000000026e61Initial program 60.3%
associate-*l/73.1%
Simplified73.1%
Taylor expanded in x around -inf 75.3%
Taylor expanded in x around 0 54.7%
associate-/l*68.7%
associate-/r/55.7%
Simplified55.7%
Taylor expanded in a around 0 46.5%
mul-1-neg46.5%
associate-/l*61.2%
Simplified61.2%
if -1.35e-190 < a < -7.4999999999999995e-266Initial program 90.9%
associate-*l/91.1%
Simplified91.1%
Taylor expanded in y around -inf 90.9%
Taylor expanded in t around 0 73.1%
mul-1-neg73.1%
associate-/l*73.1%
distribute-neg-frac73.1%
Simplified73.1%
if 3.59999999999999994e-276 < a < 2.40000000000000021e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in t around 0 61.4%
mul-1-neg61.4%
associate-/l*68.4%
distribute-neg-frac68.4%
Simplified68.4%
Taylor expanded in a around 0 61.4%
associate-/l*68.4%
Simplified68.4%
if 3.40000000000000026e61 < a Initial program 76.1%
associate-*l/92.7%
Simplified92.7%
Taylor expanded in a around inf 71.4%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in y around 0 67.4%
associate-*r/67.4%
mul-1-neg67.4%
Simplified67.4%
Taylor expanded in t around inf 60.5%
mul-1-neg60.5%
associate-/l*67.0%
distribute-neg-frac67.0%
Simplified67.0%
Final simplification63.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t) (/ z (- y z)))))
(if (<= a -1.55e+26)
(- x (/ x (/ a y)))
(if (<= a -3.2e-192)
t_1
(if (<= a -6.8e-264)
(/ (- x) (/ (- a z) y))
(if (<= a 7e-277)
t_1
(if (<= a 2.5e-196)
(/ (- y) (/ z (- t x)))
(if (<= a 1.55e+62) t_1 (- x (/ t (/ a z)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -t / (z / (y - z));
double tmp;
if (a <= -1.55e+26) {
tmp = x - (x / (a / y));
} else if (a <= -3.2e-192) {
tmp = t_1;
} else if (a <= -6.8e-264) {
tmp = -x / ((a - z) / y);
} else if (a <= 7e-277) {
tmp = t_1;
} else if (a <= 2.5e-196) {
tmp = -y / (z / (t - x));
} else if (a <= 1.55e+62) {
tmp = t_1;
} else {
tmp = x - (t / (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) :: t_1
real(8) :: tmp
t_1 = -t / (z / (y - z))
if (a <= (-1.55d+26)) then
tmp = x - (x / (a / y))
else if (a <= (-3.2d-192)) then
tmp = t_1
else if (a <= (-6.8d-264)) then
tmp = -x / ((a - z) / y)
else if (a <= 7d-277) then
tmp = t_1
else if (a <= 2.5d-196) then
tmp = -y / (z / (t - x))
else if (a <= 1.55d+62) then
tmp = t_1
else
tmp = x - (t / (a / 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 / (z / (y - z));
double tmp;
if (a <= -1.55e+26) {
tmp = x - (x / (a / y));
} else if (a <= -3.2e-192) {
tmp = t_1;
} else if (a <= -6.8e-264) {
tmp = -x / ((a - z) / y);
} else if (a <= 7e-277) {
tmp = t_1;
} else if (a <= 2.5e-196) {
tmp = -y / (z / (t - x));
} else if (a <= 1.55e+62) {
tmp = t_1;
} else {
tmp = x - (t / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -t / (z / (y - z)) tmp = 0 if a <= -1.55e+26: tmp = x - (x / (a / y)) elif a <= -3.2e-192: tmp = t_1 elif a <= -6.8e-264: tmp = -x / ((a - z) / y) elif a <= 7e-277: tmp = t_1 elif a <= 2.5e-196: tmp = -y / (z / (t - x)) elif a <= 1.55e+62: tmp = t_1 else: tmp = x - (t / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-t) / Float64(z / Float64(y - z))) tmp = 0.0 if (a <= -1.55e+26) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (a <= -3.2e-192) tmp = t_1; elseif (a <= -6.8e-264) tmp = Float64(Float64(-x) / Float64(Float64(a - z) / y)); elseif (a <= 7e-277) tmp = t_1; elseif (a <= 2.5e-196) tmp = Float64(Float64(-y) / Float64(z / Float64(t - x))); elseif (a <= 1.55e+62) tmp = t_1; else tmp = Float64(x - Float64(t / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -t / (z / (y - z)); tmp = 0.0; if (a <= -1.55e+26) tmp = x - (x / (a / y)); elseif (a <= -3.2e-192) tmp = t_1; elseif (a <= -6.8e-264) tmp = -x / ((a - z) / y); elseif (a <= 7e-277) tmp = t_1; elseif (a <= 2.5e-196) tmp = -y / (z / (t - x)); elseif (a <= 1.55e+62) tmp = t_1; else tmp = x - (t / (a / z)); 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]}, If[LessEqual[a, -1.55e+26], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-192], t$95$1, If[LessEqual[a, -6.8e-264], N[((-x) / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e-277], t$95$1, If[LessEqual[a, 2.5e-196], N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e+62], t$95$1, N[(x - N[(t / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-t}{\frac{z}{y - z}}\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{+26}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-264}:\\
\;\;\;\;\frac{-x}{\frac{a - z}{y}}\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-196}:\\
\;\;\;\;\frac{-y}{\frac{z}{t - x}}\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{t}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -1.55e26Initial program 68.9%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in z around 0 71.4%
Taylor expanded in t around 0 53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*61.6%
Simplified61.6%
if -1.55e26 < a < -3.2000000000000002e-192 or -6.7999999999999997e-264 < a < 6.99999999999999966e-277 or 2.5000000000000002e-196 < a < 1.55000000000000007e62Initial program 60.3%
associate-*l/73.1%
Simplified73.1%
Taylor expanded in x around -inf 75.3%
Taylor expanded in x around 0 54.7%
associate-/l*68.7%
associate-/r/55.7%
Simplified55.7%
Taylor expanded in a around 0 46.5%
mul-1-neg46.5%
associate-/l*61.2%
Simplified61.2%
if -3.2000000000000002e-192 < a < -6.7999999999999997e-264Initial program 90.9%
associate-*l/91.1%
Simplified91.1%
Taylor expanded in y around -inf 90.9%
Taylor expanded in t around 0 73.1%
mul-1-neg73.1%
associate-/l*73.1%
distribute-neg-frac73.1%
Simplified73.1%
if 6.99999999999999966e-277 < a < 2.5000000000000002e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in a around 0 76.2%
mul-1-neg76.2%
associate-/l*76.3%
distribute-neg-frac76.3%
Simplified76.3%
if 1.55000000000000007e62 < a Initial program 76.1%
associate-*l/92.7%
Simplified92.7%
Taylor expanded in a around inf 71.4%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in y around 0 67.4%
associate-*r/67.4%
mul-1-neg67.4%
Simplified67.4%
Taylor expanded in t around inf 60.5%
mul-1-neg60.5%
associate-/l*67.0%
distribute-neg-frac67.0%
Simplified67.0%
Final simplification63.6%
(FPCore (x y z t a)
:precision binary64
(if (or (<= a -25000000.0)
(and (not (<= a 9.5e-51)) (or (<= a 4.1e+27) (not (<= a 4.9e+60)))))
(+ x (/ (- y z) (/ (- a z) t)))
(+ t (* (- y a) (/ (- x t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -25000000.0) || (!(a <= 9.5e-51) && ((a <= 4.1e+27) || !(a <= 4.9e+60)))) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t + ((y - a) * ((x - 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 ((a <= (-25000000.0d0)) .or. (.not. (a <= 9.5d-51)) .and. (a <= 4.1d+27) .or. (.not. (a <= 4.9d+60))) then
tmp = x + ((y - z) / ((a - z) / t))
else
tmp = t + ((y - a) * ((x - 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 ((a <= -25000000.0) || (!(a <= 9.5e-51) && ((a <= 4.1e+27) || !(a <= 4.9e+60)))) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t + ((y - a) * ((x - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -25000000.0) or (not (a <= 9.5e-51) and ((a <= 4.1e+27) or not (a <= 4.9e+60))): tmp = x + ((y - z) / ((a - z) / t)) else: tmp = t + ((y - a) * ((x - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -25000000.0) || (!(a <= 9.5e-51) && ((a <= 4.1e+27) || !(a <= 4.9e+60)))) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); else tmp = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -25000000.0) || (~((a <= 9.5e-51)) && ((a <= 4.1e+27) || ~((a <= 4.9e+60))))) tmp = x + ((y - z) / ((a - z) / t)); else tmp = t + ((y - a) * ((x - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -25000000.0], And[N[Not[LessEqual[a, 9.5e-51]], $MachinePrecision], Or[LessEqual[a, 4.1e+27], N[Not[LessEqual[a, 4.9e+60]], $MachinePrecision]]]], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -25000000 \lor \neg \left(a \leq 9.5 \cdot 10^{-51}\right) \land \left(a \leq 4.1 \cdot 10^{+27} \lor \neg \left(a \leq 4.9 \cdot 10^{+60}\right)\right):\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\
\end{array}
\end{array}
if a < -2.5e7 or 9.4999999999999998e-51 < a < 4.1000000000000002e27 or 4.9000000000000003e60 < a Initial program 73.7%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in t around inf 82.5%
if -2.5e7 < a < 9.4999999999999998e-51 or 4.1000000000000002e27 < a < 4.9000000000000003e60Initial program 62.7%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in z around inf 79.4%
associate--l+79.4%
associate-*r/79.4%
associate-*r/79.4%
div-sub82.3%
distribute-lft-out--82.3%
associate-*r/82.3%
distribute-rgt-out--83.0%
mul-1-neg83.0%
unsub-neg83.0%
associate-/l*87.8%
Simplified87.8%
associate-/r/84.5%
Applied egg-rr84.5%
Final simplification83.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y z) (/ (- a z) t)))))
(if (<= a -820000000.0)
t_1
(if (<= a 2.55e-54)
(+ t (/ (- x t) (/ z (- y a))))
(if (or (<= a 1.1e+27) (not (<= a 3.6e+60)))
t_1
(+ t (* (- y a) (/ (- x t) z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) / ((a - z) / t));
double tmp;
if (a <= -820000000.0) {
tmp = t_1;
} else if (a <= 2.55e-54) {
tmp = t + ((x - t) / (z / (y - a)));
} else if ((a <= 1.1e+27) || !(a <= 3.6e+60)) {
tmp = t_1;
} else {
tmp = t + ((y - a) * ((x - 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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) / ((a - z) / t))
if (a <= (-820000000.0d0)) then
tmp = t_1
else if (a <= 2.55d-54) then
tmp = t + ((x - t) / (z / (y - a)))
else if ((a <= 1.1d+27) .or. (.not. (a <= 3.6d+60))) then
tmp = t_1
else
tmp = t + ((y - a) * ((x - t) / 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 + ((y - z) / ((a - z) / t));
double tmp;
if (a <= -820000000.0) {
tmp = t_1;
} else if (a <= 2.55e-54) {
tmp = t + ((x - t) / (z / (y - a)));
} else if ((a <= 1.1e+27) || !(a <= 3.6e+60)) {
tmp = t_1;
} else {
tmp = t + ((y - a) * ((x - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) / ((a - z) / t)) tmp = 0 if a <= -820000000.0: tmp = t_1 elif a <= 2.55e-54: tmp = t + ((x - t) / (z / (y - a))) elif (a <= 1.1e+27) or not (a <= 3.6e+60): tmp = t_1 else: tmp = t + ((y - a) * ((x - t) / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))) tmp = 0.0 if (a <= -820000000.0) tmp = t_1; elseif (a <= 2.55e-54) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); elseif ((a <= 1.1e+27) || !(a <= 3.6e+60)) tmp = t_1; else tmp = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) / ((a - z) / t)); tmp = 0.0; if (a <= -820000000.0) tmp = t_1; elseif (a <= 2.55e-54) tmp = t + ((x - t) / (z / (y - a))); elseif ((a <= 1.1e+27) || ~((a <= 3.6e+60))) tmp = t_1; else tmp = t + ((y - a) * ((x - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -820000000.0], t$95$1, If[LessEqual[a, 2.55e-54], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 1.1e+27], N[Not[LessEqual[a, 3.6e+60]], $MachinePrecision]], t$95$1, N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{if}\;a \leq -820000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{-54}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+27} \lor \neg \left(a \leq 3.6 \cdot 10^{+60}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\
\end{array}
\end{array}
if a < -8.2e8 or 2.55000000000000005e-54 < a < 1.0999999999999999e27 or 3.59999999999999968e60 < a Initial program 73.7%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in t around inf 82.5%
if -8.2e8 < a < 2.55000000000000005e-54Initial program 63.3%
associate-*l/74.3%
Simplified74.3%
Taylor expanded in z around inf 80.4%
associate--l+80.4%
associate-*r/80.4%
associate-*r/80.4%
div-sub83.5%
distribute-lft-out--83.5%
associate-*r/83.5%
distribute-rgt-out--83.5%
mul-1-neg83.5%
unsub-neg83.5%
associate-/l*87.1%
Simplified87.1%
if 1.0999999999999999e27 < a < 3.59999999999999968e60Initial program 52.3%
associate-*l/76.2%
Simplified76.2%
Taylor expanded in z around inf 62.8%
associate--l+62.8%
associate-*r/62.8%
associate-*r/62.8%
div-sub62.8%
distribute-lft-out--62.8%
associate-*r/62.8%
distribute-rgt-out--75.3%
mul-1-neg75.3%
unsub-neg75.3%
associate-/l*99.8%
Simplified99.8%
associate-/r/99.8%
Applied egg-rr99.8%
Final simplification85.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z y)))) (t_2 (+ x (/ (- t x) (/ a (- y z))))))
(if (<= a -36000000000000.0)
t_2
(if (<= a 7.5e-52)
t_1
(if (<= a 3.5e+27)
(/ t (/ (- a z) (- y z)))
(if (<= a 4.6e+58) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / y));
double t_2 = x + ((t - x) / (a / (y - z)));
double tmp;
if (a <= -36000000000000.0) {
tmp = t_2;
} else if (a <= 7.5e-52) {
tmp = t_1;
} else if (a <= 3.5e+27) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 4.6e+58) {
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 + ((x - t) / (z / y))
t_2 = x + ((t - x) / (a / (y - z)))
if (a <= (-36000000000000.0d0)) then
tmp = t_2
else if (a <= 7.5d-52) then
tmp = t_1
else if (a <= 3.5d+27) then
tmp = t / ((a - z) / (y - z))
else if (a <= 4.6d+58) 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 + ((x - t) / (z / y));
double t_2 = x + ((t - x) / (a / (y - z)));
double tmp;
if (a <= -36000000000000.0) {
tmp = t_2;
} else if (a <= 7.5e-52) {
tmp = t_1;
} else if (a <= 3.5e+27) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 4.6e+58) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / y)) t_2 = x + ((t - x) / (a / (y - z))) tmp = 0 if a <= -36000000000000.0: tmp = t_2 elif a <= 7.5e-52: tmp = t_1 elif a <= 3.5e+27: tmp = t / ((a - z) / (y - z)) elif a <= 4.6e+58: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / y))) t_2 = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))) tmp = 0.0 if (a <= -36000000000000.0) tmp = t_2; elseif (a <= 7.5e-52) tmp = t_1; elseif (a <= 3.5e+27) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= 4.6e+58) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / y)); t_2 = x + ((t - x) / (a / (y - z))); tmp = 0.0; if (a <= -36000000000000.0) tmp = t_2; elseif (a <= 7.5e-52) tmp = t_1; elseif (a <= 3.5e+27) tmp = t / ((a - z) / (y - z)); elseif (a <= 4.6e+58) 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[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -36000000000000.0], t$95$2, If[LessEqual[a, 7.5e-52], t$95$1, If[LessEqual[a, 3.5e+27], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.6e+58], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y}}\\
t_2 := x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{if}\;a \leq -36000000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+27}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.6e13 or 4.60000000000000005e58 < a Initial program 72.8%
associate-*l/91.7%
Simplified91.7%
Taylor expanded in a around inf 66.4%
associate-/l*78.7%
Simplified78.7%
if -3.6e13 < a < 7.50000000000000006e-52 or 3.5000000000000002e27 < a < 4.60000000000000005e58Initial program 62.4%
associate-*l/74.3%
Simplified74.3%
Taylor expanded in z around inf 80.0%
associate--l+80.0%
associate-*r/80.0%
associate-*r/80.0%
div-sub82.9%
distribute-lft-out--82.9%
associate-*r/82.9%
distribute-rgt-out--82.9%
mul-1-neg82.9%
unsub-neg82.9%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in y around inf 83.7%
if 7.50000000000000006e-52 < a < 3.5000000000000002e27Initial program 88.5%
associate-*l/88.5%
Simplified88.5%
Taylor expanded in x around 0 75.2%
associate-/l*75.4%
Simplified75.4%
Final simplification81.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (- x (/ t (/ a z)))))
(if (<= a -1.3e+92)
t_2
(if (<= a 7.5e-278)
t_1
(if (<= a 2.7e-196)
(/ (- y) (/ z (- t x)))
(if (<= a 1.35e+137) 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 - (t / (a / z));
double tmp;
if (a <= -1.3e+92) {
tmp = t_2;
} else if (a <= 7.5e-278) {
tmp = t_1;
} else if (a <= 2.7e-196) {
tmp = -y / (z / (t - x));
} else if (a <= 1.35e+137) {
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 - (t / (a / z))
if (a <= (-1.3d+92)) then
tmp = t_2
else if (a <= 7.5d-278) then
tmp = t_1
else if (a <= 2.7d-196) then
tmp = -y / (z / (t - x))
else if (a <= 1.35d+137) 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 - (t / (a / z));
double tmp;
if (a <= -1.3e+92) {
tmp = t_2;
} else if (a <= 7.5e-278) {
tmp = t_1;
} else if (a <= 2.7e-196) {
tmp = -y / (z / (t - x));
} else if (a <= 1.35e+137) {
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 - (t / (a / z)) tmp = 0 if a <= -1.3e+92: tmp = t_2 elif a <= 7.5e-278: tmp = t_1 elif a <= 2.7e-196: tmp = -y / (z / (t - x)) elif a <= 1.35e+137: 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(t / Float64(a / z))) tmp = 0.0 if (a <= -1.3e+92) tmp = t_2; elseif (a <= 7.5e-278) tmp = t_1; elseif (a <= 2.7e-196) tmp = Float64(Float64(-y) / Float64(z / Float64(t - x))); elseif (a <= 1.35e+137) 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 - (t / (a / z)); tmp = 0.0; if (a <= -1.3e+92) tmp = t_2; elseif (a <= 7.5e-278) tmp = t_1; elseif (a <= 2.7e-196) tmp = -y / (z / (t - x)); elseif (a <= 1.35e+137) 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[(t / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.3e+92], t$95$2, If[LessEqual[a, 7.5e-278], t$95$1, If[LessEqual[a, 2.7e-196], N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+137], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x - \frac{t}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -1.3 \cdot 10^{+92}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-278}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-196}:\\
\;\;\;\;\frac{-y}{\frac{z}{t - x}}\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.2999999999999999e92 or 1.35000000000000009e137 < a Initial program 69.1%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in a around inf 67.4%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in y around 0 70.6%
associate-*r/70.6%
mul-1-neg70.6%
Simplified70.6%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
associate-/l*70.4%
distribute-neg-frac70.4%
Simplified70.4%
if -1.2999999999999999e92 < a < 7.49999999999999946e-278 or 2.69999999999999982e-196 < a < 1.35000000000000009e137Initial program 65.5%
associate-*l/77.2%
Simplified77.2%
Taylor expanded in x around 0 52.8%
associate-*r/64.9%
Simplified64.9%
if 7.49999999999999946e-278 < a < 2.69999999999999982e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in a around 0 76.2%
mul-1-neg76.2%
associate-/l*76.3%
distribute-neg-frac76.3%
Simplified76.3%
Final simplification67.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z y)))))
(if (<= a -2700000000000.0)
(+ x (* (- t x) (/ y a)))
(if (<= a 7.8e-51)
t_1
(if (<= a 1.8e+25)
(* t (/ (- y z) (- a z)))
(if (<= a 3.3e+59) t_1 (+ x (/ y (/ a (- t x))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / y));
double tmp;
if (a <= -2700000000000.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 7.8e-51) {
tmp = t_1;
} else if (a <= 1.8e+25) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 3.3e+59) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t + ((x - t) / (z / y))
if (a <= (-2700000000000.0d0)) then
tmp = x + ((t - x) * (y / a))
else if (a <= 7.8d-51) then
tmp = t_1
else if (a <= 1.8d+25) then
tmp = t * ((y - z) / (a - z))
else if (a <= 3.3d+59) then
tmp = t_1
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 t_1 = t + ((x - t) / (z / y));
double tmp;
if (a <= -2700000000000.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 7.8e-51) {
tmp = t_1;
} else if (a <= 1.8e+25) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 3.3e+59) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / y)) tmp = 0 if a <= -2700000000000.0: tmp = x + ((t - x) * (y / a)) elif a <= 7.8e-51: tmp = t_1 elif a <= 1.8e+25: tmp = t * ((y - z) / (a - z)) elif a <= 3.3e+59: tmp = t_1 else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / y))) tmp = 0.0 if (a <= -2700000000000.0) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (a <= 7.8e-51) tmp = t_1; elseif (a <= 1.8e+25) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 3.3e+59) tmp = t_1; else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / y)); tmp = 0.0; if (a <= -2700000000000.0) tmp = x + ((t - x) * (y / a)); elseif (a <= 7.8e-51) tmp = t_1; elseif (a <= 1.8e+25) tmp = t * ((y - z) / (a - z)); elseif (a <= 3.3e+59) tmp = t_1; else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2700000000000.0], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e-51], t$95$1, If[LessEqual[a, 1.8e+25], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e+59], t$95$1, N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{if}\;a \leq -2700000000000:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+25}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if a < -2.7e12Initial program 70.2%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in z around 0 69.8%
if -2.7e12 < a < 7.7999999999999995e-51 or 1.80000000000000008e25 < a < 3.2999999999999999e59Initial program 62.4%
associate-*l/74.3%
Simplified74.3%
Taylor expanded in z around inf 80.0%
associate--l+80.0%
associate-*r/80.0%
associate-*r/80.0%
div-sub82.9%
distribute-lft-out--82.9%
associate-*r/82.9%
distribute-rgt-out--82.9%
mul-1-neg82.9%
unsub-neg82.9%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in y around inf 83.7%
if 7.7999999999999995e-51 < a < 1.80000000000000008e25Initial program 88.5%
associate-*l/88.5%
Simplified88.5%
Taylor expanded in x around 0 75.2%
associate-*r/75.2%
Simplified75.2%
if 3.2999999999999999e59 < a Initial program 76.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 72.4%
associate-/l*74.7%
Simplified74.7%
Final simplification78.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z y)))))
(if (<= a -62000000000.0)
(+ x (* (- t x) (/ y a)))
(if (<= a 3e-54)
t_1
(if (<= a 4.5e+27)
(/ t (/ (- a z) (- y z)))
(if (<= a 3.5e+58) t_1 (+ x (/ y (/ a (- t x))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / y));
double tmp;
if (a <= -62000000000.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 3e-54) {
tmp = t_1;
} else if (a <= 4.5e+27) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 3.5e+58) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t + ((x - t) / (z / y))
if (a <= (-62000000000.0d0)) then
tmp = x + ((t - x) * (y / a))
else if (a <= 3d-54) then
tmp = t_1
else if (a <= 4.5d+27) then
tmp = t / ((a - z) / (y - z))
else if (a <= 3.5d+58) then
tmp = t_1
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 t_1 = t + ((x - t) / (z / y));
double tmp;
if (a <= -62000000000.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 3e-54) {
tmp = t_1;
} else if (a <= 4.5e+27) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 3.5e+58) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / y)) tmp = 0 if a <= -62000000000.0: tmp = x + ((t - x) * (y / a)) elif a <= 3e-54: tmp = t_1 elif a <= 4.5e+27: tmp = t / ((a - z) / (y - z)) elif a <= 3.5e+58: tmp = t_1 else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / y))) tmp = 0.0 if (a <= -62000000000.0) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (a <= 3e-54) tmp = t_1; elseif (a <= 4.5e+27) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= 3.5e+58) tmp = t_1; else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / y)); tmp = 0.0; if (a <= -62000000000.0) tmp = x + ((t - x) * (y / a)); elseif (a <= 3e-54) tmp = t_1; elseif (a <= 4.5e+27) tmp = t / ((a - z) / (y - z)); elseif (a <= 3.5e+58) tmp = t_1; else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -62000000000.0], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e-54], t$95$1, If[LessEqual[a, 4.5e+27], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e+58], t$95$1, N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{if}\;a \leq -62000000000:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{+27}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if a < -6.2e10Initial program 70.2%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in z around 0 69.8%
if -6.2e10 < a < 3.00000000000000009e-54 or 4.4999999999999999e27 < a < 3.4999999999999997e58Initial program 62.4%
associate-*l/74.3%
Simplified74.3%
Taylor expanded in z around inf 80.0%
associate--l+80.0%
associate-*r/80.0%
associate-*r/80.0%
div-sub82.9%
distribute-lft-out--82.9%
associate-*r/82.9%
distribute-rgt-out--82.9%
mul-1-neg82.9%
unsub-neg82.9%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in y around inf 83.7%
if 3.00000000000000009e-54 < a < 4.4999999999999999e27Initial program 88.5%
associate-*l/88.5%
Simplified88.5%
Taylor expanded in x around 0 75.2%
associate-/l*75.4%
Simplified75.4%
if 3.4999999999999997e58 < a Initial program 76.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 72.4%
associate-/l*74.7%
Simplified74.7%
Final simplification78.3%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.08e+207)
(+ t (/ (- x t) (/ z (- y a))))
(if (<= z 1.9e+104)
(+ x (* (/ (- y z) (- a z)) (- t x)))
(+ t (* (- y a) (/ (- x t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.08e+207) {
tmp = t + ((x - t) / (z / (y - a)));
} else if (z <= 1.9e+104) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else {
tmp = t + ((y - a) * ((x - 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 <= (-1.08d+207)) then
tmp = t + ((x - t) / (z / (y - a)))
else if (z <= 1.9d+104) then
tmp = x + (((y - z) / (a - z)) * (t - x))
else
tmp = t + ((y - a) * ((x - 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 <= -1.08e+207) {
tmp = t + ((x - t) / (z / (y - a)));
} else if (z <= 1.9e+104) {
tmp = x + (((y - z) / (a - z)) * (t - x));
} else {
tmp = t + ((y - a) * ((x - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.08e+207: tmp = t + ((x - t) / (z / (y - a))) elif z <= 1.9e+104: tmp = x + (((y - z) / (a - z)) * (t - x)) else: tmp = t + ((y - a) * ((x - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.08e+207) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); elseif (z <= 1.9e+104) tmp = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * Float64(t - x))); else tmp = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.08e+207) tmp = t + ((x - t) / (z / (y - a))); elseif (z <= 1.9e+104) tmp = x + (((y - z) / (a - z)) * (t - x)); else tmp = t + ((y - a) * ((x - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.08e+207], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+104], N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.08 \cdot 10^{+207}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+104}:\\
\;\;\;\;x + \frac{y - z}{a - z} \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\
\end{array}
\end{array}
if z < -1.08000000000000001e207Initial program 20.0%
associate-*l/44.2%
Simplified44.2%
Taylor expanded in z around inf 76.0%
associate--l+76.0%
associate-*r/76.0%
associate-*r/76.0%
div-sub76.0%
distribute-lft-out--76.0%
associate-*r/76.0%
distribute-rgt-out--76.0%
mul-1-neg76.0%
unsub-neg76.0%
associate-/l*96.1%
Simplified96.1%
if -1.08000000000000001e207 < z < 1.89999999999999984e104Initial program 82.7%
associate-*l/91.2%
Simplified91.2%
if 1.89999999999999984e104 < z Initial program 27.0%
associate-*l/63.1%
Simplified63.1%
Taylor expanded in z around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
div-sub70.1%
distribute-lft-out--70.1%
associate-*r/70.1%
distribute-rgt-out--70.4%
mul-1-neg70.4%
unsub-neg70.4%
associate-/l*87.3%
Simplified87.3%
associate-/r/87.4%
Applied egg-rr87.4%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t) (/ z (- y z)))))
(if (<= a -1.8e+26)
(- x (/ x (/ a y)))
(if (<= a 1.52e-276)
t_1
(if (<= a 2.4e-196)
(/ x (/ z y))
(if (<= a 9.5e+58) t_1 (* x (- 1.0 (/ y a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -t / (z / (y - z));
double tmp;
if (a <= -1.8e+26) {
tmp = x - (x / (a / y));
} else if (a <= 1.52e-276) {
tmp = t_1;
} else if (a <= 2.4e-196) {
tmp = x / (z / y);
} else if (a <= 9.5e+58) {
tmp = t_1;
} else {
tmp = x * (1.0 - (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) :: t_1
real(8) :: tmp
t_1 = -t / (z / (y - z))
if (a <= (-1.8d+26)) then
tmp = x - (x / (a / y))
else if (a <= 1.52d-276) then
tmp = t_1
else if (a <= 2.4d-196) then
tmp = x / (z / y)
else if (a <= 9.5d+58) then
tmp = t_1
else
tmp = x * (1.0d0 - (y / 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 / (z / (y - z));
double tmp;
if (a <= -1.8e+26) {
tmp = x - (x / (a / y));
} else if (a <= 1.52e-276) {
tmp = t_1;
} else if (a <= 2.4e-196) {
tmp = x / (z / y);
} else if (a <= 9.5e+58) {
tmp = t_1;
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -t / (z / (y - z)) tmp = 0 if a <= -1.8e+26: tmp = x - (x / (a / y)) elif a <= 1.52e-276: tmp = t_1 elif a <= 2.4e-196: tmp = x / (z / y) elif a <= 9.5e+58: tmp = t_1 else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-t) / Float64(z / Float64(y - z))) tmp = 0.0 if (a <= -1.8e+26) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (a <= 1.52e-276) tmp = t_1; elseif (a <= 2.4e-196) tmp = Float64(x / Float64(z / y)); elseif (a <= 9.5e+58) tmp = t_1; else tmp = Float64(x * Float64(1.0 - Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -t / (z / (y - z)); tmp = 0.0; if (a <= -1.8e+26) tmp = x - (x / (a / y)); elseif (a <= 1.52e-276) tmp = t_1; elseif (a <= 2.4e-196) tmp = x / (z / y); elseif (a <= 9.5e+58) tmp = t_1; else tmp = x * (1.0 - (y / a)); 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]}, If[LessEqual[a, -1.8e+26], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.52e-276], t$95$1, If[LessEqual[a, 2.4e-196], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+58], t$95$1, N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-t}{\frac{z}{y - z}}\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+26}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 1.52 \cdot 10^{-276}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-196}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if a < -1.80000000000000012e26Initial program 68.9%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in z around 0 71.4%
Taylor expanded in t around 0 53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*61.6%
Simplified61.6%
if -1.80000000000000012e26 < a < 1.51999999999999994e-276 or 2.40000000000000021e-196 < a < 9.5000000000000002e58Initial program 62.4%
associate-*l/74.3%
Simplified74.3%
Taylor expanded in x around -inf 76.3%
Taylor expanded in x around 0 54.4%
associate-/l*67.4%
associate-/r/55.4%
Simplified55.4%
Taylor expanded in a around 0 45.3%
mul-1-neg45.3%
associate-/l*58.3%
Simplified58.3%
if 1.51999999999999994e-276 < a < 2.40000000000000021e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in t around 0 61.4%
mul-1-neg61.4%
associate-/l*68.4%
distribute-neg-frac68.4%
Simplified68.4%
Taylor expanded in a around 0 61.4%
associate-/l*68.4%
Simplified68.4%
if 9.5000000000000002e58 < a Initial program 76.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 70.5%
Taylor expanded in x around inf 61.9%
mul-1-neg61.9%
unsub-neg61.9%
Simplified61.9%
Final simplification60.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t) (/ z (- y z)))))
(if (<= a -1.7e+26)
(- x (/ x (/ a y)))
(if (<= a 7.5e-277)
t_1
(if (<= a 2.6e-196)
(/ x (/ z y))
(if (<= a 6.6e+62) t_1 (- x (/ t (/ a z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -t / (z / (y - z));
double tmp;
if (a <= -1.7e+26) {
tmp = x - (x / (a / y));
} else if (a <= 7.5e-277) {
tmp = t_1;
} else if (a <= 2.6e-196) {
tmp = x / (z / y);
} else if (a <= 6.6e+62) {
tmp = t_1;
} else {
tmp = x - (t / (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) :: t_1
real(8) :: tmp
t_1 = -t / (z / (y - z))
if (a <= (-1.7d+26)) then
tmp = x - (x / (a / y))
else if (a <= 7.5d-277) then
tmp = t_1
else if (a <= 2.6d-196) then
tmp = x / (z / y)
else if (a <= 6.6d+62) then
tmp = t_1
else
tmp = x - (t / (a / 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 / (z / (y - z));
double tmp;
if (a <= -1.7e+26) {
tmp = x - (x / (a / y));
} else if (a <= 7.5e-277) {
tmp = t_1;
} else if (a <= 2.6e-196) {
tmp = x / (z / y);
} else if (a <= 6.6e+62) {
tmp = t_1;
} else {
tmp = x - (t / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -t / (z / (y - z)) tmp = 0 if a <= -1.7e+26: tmp = x - (x / (a / y)) elif a <= 7.5e-277: tmp = t_1 elif a <= 2.6e-196: tmp = x / (z / y) elif a <= 6.6e+62: tmp = t_1 else: tmp = x - (t / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-t) / Float64(z / Float64(y - z))) tmp = 0.0 if (a <= -1.7e+26) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (a <= 7.5e-277) tmp = t_1; elseif (a <= 2.6e-196) tmp = Float64(x / Float64(z / y)); elseif (a <= 6.6e+62) tmp = t_1; else tmp = Float64(x - Float64(t / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -t / (z / (y - z)); tmp = 0.0; if (a <= -1.7e+26) tmp = x - (x / (a / y)); elseif (a <= 7.5e-277) tmp = t_1; elseif (a <= 2.6e-196) tmp = x / (z / y); elseif (a <= 6.6e+62) tmp = t_1; else tmp = x - (t / (a / z)); 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]}, If[LessEqual[a, -1.7e+26], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-277], t$95$1, If[LessEqual[a, 2.6e-196], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.6e+62], t$95$1, N[(x - N[(t / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-t}{\frac{z}{y - z}}\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+26}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-196}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{t}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -1.7000000000000001e26Initial program 68.9%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in z around 0 71.4%
Taylor expanded in t around 0 53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*61.6%
Simplified61.6%
if -1.7000000000000001e26 < a < 7.49999999999999971e-277 or 2.5999999999999998e-196 < a < 6.6e62Initial program 62.7%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in x around -inf 76.5%
Taylor expanded in x around 0 54.0%
associate-/l*67.0%
associate-/r/55.0%
Simplified55.0%
Taylor expanded in a around 0 45.0%
mul-1-neg45.0%
associate-/l*58.6%
Simplified58.6%
if 7.49999999999999971e-277 < a < 2.5999999999999998e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in t around 0 61.4%
mul-1-neg61.4%
associate-/l*68.4%
distribute-neg-frac68.4%
Simplified68.4%
Taylor expanded in a around 0 61.4%
associate-/l*68.4%
Simplified68.4%
if 6.6e62 < a Initial program 76.1%
associate-*l/92.7%
Simplified92.7%
Taylor expanded in a around inf 71.4%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in y around 0 67.4%
associate-*r/67.4%
mul-1-neg67.4%
Simplified67.4%
Taylor expanded in t around inf 60.5%
mul-1-neg60.5%
associate-/l*67.0%
distribute-neg-frac67.0%
Simplified67.0%
Final simplification61.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (/ z y))))
(if (<= a -31000000000000.0)
x
(if (<= a -1.15e-191)
t
(if (<= a 3e-309)
t_1
(if (<= a 5.4e-278)
t
(if (<= a 4.5e-196) t_1 (if (<= a 8.8e+62) t x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (z / y);
double tmp;
if (a <= -31000000000000.0) {
tmp = x;
} else if (a <= -1.15e-191) {
tmp = t;
} else if (a <= 3e-309) {
tmp = t_1;
} else if (a <= 5.4e-278) {
tmp = t;
} else if (a <= 4.5e-196) {
tmp = t_1;
} else if (a <= 8.8e+62) {
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) :: t_1
real(8) :: tmp
t_1 = x / (z / y)
if (a <= (-31000000000000.0d0)) then
tmp = x
else if (a <= (-1.15d-191)) then
tmp = t
else if (a <= 3d-309) then
tmp = t_1
else if (a <= 5.4d-278) then
tmp = t
else if (a <= 4.5d-196) then
tmp = t_1
else if (a <= 8.8d+62) 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 t_1 = x / (z / y);
double tmp;
if (a <= -31000000000000.0) {
tmp = x;
} else if (a <= -1.15e-191) {
tmp = t;
} else if (a <= 3e-309) {
tmp = t_1;
} else if (a <= 5.4e-278) {
tmp = t;
} else if (a <= 4.5e-196) {
tmp = t_1;
} else if (a <= 8.8e+62) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (z / y) tmp = 0 if a <= -31000000000000.0: tmp = x elif a <= -1.15e-191: tmp = t elif a <= 3e-309: tmp = t_1 elif a <= 5.4e-278: tmp = t elif a <= 4.5e-196: tmp = t_1 elif a <= 8.8e+62: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(z / y)) tmp = 0.0 if (a <= -31000000000000.0) tmp = x; elseif (a <= -1.15e-191) tmp = t; elseif (a <= 3e-309) tmp = t_1; elseif (a <= 5.4e-278) tmp = t; elseif (a <= 4.5e-196) tmp = t_1; elseif (a <= 8.8e+62) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (z / y); tmp = 0.0; if (a <= -31000000000000.0) tmp = x; elseif (a <= -1.15e-191) tmp = t; elseif (a <= 3e-309) tmp = t_1; elseif (a <= 5.4e-278) tmp = t; elseif (a <= 4.5e-196) tmp = t_1; elseif (a <= 8.8e+62) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -31000000000000.0], x, If[LessEqual[a, -1.15e-191], t, If[LessEqual[a, 3e-309], t$95$1, If[LessEqual[a, 5.4e-278], t, If[LessEqual[a, 4.5e-196], t$95$1, If[LessEqual[a, 8.8e+62], t, x]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{z}{y}}\\
\mathbf{if}\;a \leq -31000000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-191}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-309}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{-278}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{+62}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.1e13 or 8.80000000000000058e62 < a Initial program 72.6%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in a around inf 54.1%
if -3.1e13 < a < -1.15000000000000005e-191 or 3.000000000000001e-309 < a < 5.4000000000000003e-278 or 4.5e-196 < a < 8.80000000000000058e62Initial program 59.5%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 47.4%
if -1.15000000000000005e-191 < a < 3.000000000000001e-309 or 5.4000000000000003e-278 < a < 4.5e-196Initial program 78.3%
associate-*l/81.0%
Simplified81.0%
Taylor expanded in y around -inf 79.9%
Taylor expanded in t around 0 60.7%
mul-1-neg60.7%
associate-/l*65.8%
distribute-neg-frac65.8%
Simplified65.8%
Taylor expanded in a around 0 55.0%
associate-/l*57.7%
Simplified57.7%
Final simplification51.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -530000000.0)
x
(if (<= a -1.15e-192)
t
(if (<= a 3.7e-307)
(/ (* x y) z)
(if (<= a 2.8e-279)
t
(if (<= a 4.1e-196) (/ x (/ z y)) (if (<= a 8.2e+60) t x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -530000000.0) {
tmp = x;
} else if (a <= -1.15e-192) {
tmp = t;
} else if (a <= 3.7e-307) {
tmp = (x * y) / z;
} else if (a <= 2.8e-279) {
tmp = t;
} else if (a <= 4.1e-196) {
tmp = x / (z / y);
} else if (a <= 8.2e+60) {
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 <= (-530000000.0d0)) then
tmp = x
else if (a <= (-1.15d-192)) then
tmp = t
else if (a <= 3.7d-307) then
tmp = (x * y) / z
else if (a <= 2.8d-279) then
tmp = t
else if (a <= 4.1d-196) then
tmp = x / (z / y)
else if (a <= 8.2d+60) 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 <= -530000000.0) {
tmp = x;
} else if (a <= -1.15e-192) {
tmp = t;
} else if (a <= 3.7e-307) {
tmp = (x * y) / z;
} else if (a <= 2.8e-279) {
tmp = t;
} else if (a <= 4.1e-196) {
tmp = x / (z / y);
} else if (a <= 8.2e+60) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -530000000.0: tmp = x elif a <= -1.15e-192: tmp = t elif a <= 3.7e-307: tmp = (x * y) / z elif a <= 2.8e-279: tmp = t elif a <= 4.1e-196: tmp = x / (z / y) elif a <= 8.2e+60: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -530000000.0) tmp = x; elseif (a <= -1.15e-192) tmp = t; elseif (a <= 3.7e-307) tmp = Float64(Float64(x * y) / z); elseif (a <= 2.8e-279) tmp = t; elseif (a <= 4.1e-196) tmp = Float64(x / Float64(z / y)); elseif (a <= 8.2e+60) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -530000000.0) tmp = x; elseif (a <= -1.15e-192) tmp = t; elseif (a <= 3.7e-307) tmp = (x * y) / z; elseif (a <= 2.8e-279) tmp = t; elseif (a <= 4.1e-196) tmp = x / (z / y); elseif (a <= 8.2e+60) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -530000000.0], x, If[LessEqual[a, -1.15e-192], t, If[LessEqual[a, 3.7e-307], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 2.8e-279], t, If[LessEqual[a, 4.1e-196], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.2e+60], t, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -530000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-192}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{-307}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-279}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-196}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+60}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5.3e8 or 8.2e60 < a Initial program 72.6%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in a around inf 54.1%
if -5.3e8 < a < -1.15000000000000009e-192 or 3.7e-307 < a < 2.8000000000000001e-279 or 4.10000000000000021e-196 < a < 8.2e60Initial program 59.5%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 47.4%
if -1.15000000000000009e-192 < a < 3.7e-307Initial program 73.3%
associate-*l/77.9%
Simplified77.9%
Taylor expanded in y around -inf 82.3%
Taylor expanded in t around 0 60.3%
mul-1-neg60.3%
associate-/l*64.2%
distribute-neg-frac64.2%
Simplified64.2%
Taylor expanded in a around 0 51.0%
if 2.8000000000000001e-279 < a < 4.10000000000000021e-196Initial program 86.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in y around -inf 76.2%
Taylor expanded in t around 0 61.4%
mul-1-neg61.4%
associate-/l*68.4%
distribute-neg-frac68.4%
Simplified68.4%
Taylor expanded in a around 0 61.4%
associate-/l*68.4%
Simplified68.4%
Final simplification51.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ x (/ a y)))))
(if (<= z -2.85e+81)
t
(if (<= z -1.9e-249)
t_1
(if (<= z -2e-307) (/ (* t y) (- a z)) (if (<= z 2.35e+122) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (x / (a / y));
double tmp;
if (z <= -2.85e+81) {
tmp = t;
} else if (z <= -1.9e-249) {
tmp = t_1;
} else if (z <= -2e-307) {
tmp = (t * y) / (a - z);
} else if (z <= 2.35e+122) {
tmp = t_1;
} 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 - (x / (a / y))
if (z <= (-2.85d+81)) then
tmp = t
else if (z <= (-1.9d-249)) then
tmp = t_1
else if (z <= (-2d-307)) then
tmp = (t * y) / (a - z)
else if (z <= 2.35d+122) then
tmp = t_1
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 - (x / (a / y));
double tmp;
if (z <= -2.85e+81) {
tmp = t;
} else if (z <= -1.9e-249) {
tmp = t_1;
} else if (z <= -2e-307) {
tmp = (t * y) / (a - z);
} else if (z <= 2.35e+122) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (x / (a / y)) tmp = 0 if z <= -2.85e+81: tmp = t elif z <= -1.9e-249: tmp = t_1 elif z <= -2e-307: tmp = (t * y) / (a - z) elif z <= 2.35e+122: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(x / Float64(a / y))) tmp = 0.0 if (z <= -2.85e+81) tmp = t; elseif (z <= -1.9e-249) tmp = t_1; elseif (z <= -2e-307) tmp = Float64(Float64(t * y) / Float64(a - z)); elseif (z <= 2.35e+122) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (x / (a / y)); tmp = 0.0; if (z <= -2.85e+81) tmp = t; elseif (z <= -1.9e-249) tmp = t_1; elseif (z <= -2e-307) tmp = (t * y) / (a - z); elseif (z <= 2.35e+122) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.85e+81], t, If[LessEqual[z, -1.9e-249], t$95$1, If[LessEqual[z, -2e-307], N[(N[(t * y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.35e+122], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{x}{\frac{a}{y}}\\
\mathbf{if}\;z \leq -2.85 \cdot 10^{+81}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-307}:\\
\;\;\;\;\frac{t \cdot y}{a - z}\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.85000000000000017e81 or 2.35000000000000012e122 < z Initial program 30.5%
associate-*l/64.0%
Simplified64.0%
Taylor expanded in z around inf 61.0%
if -2.85000000000000017e81 < z < -1.9e-249 or -1.99999999999999982e-307 < z < 2.35000000000000012e122Initial program 87.3%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in z around 0 62.4%
Taylor expanded in t around 0 47.2%
mul-1-neg47.2%
unsub-neg47.2%
associate-/l*50.9%
Simplified50.9%
if -1.9e-249 < z < -1.99999999999999982e-307Initial program 100.0%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in x around -inf 91.7%
Taylor expanded in x around 0 76.3%
associate-/l*68.4%
associate-/r/68.5%
Simplified68.5%
Taylor expanded in y around inf 76.3%
Final simplification55.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.36e-85) (* t (/ (- y z) (- a z))) (if (<= z 1.55e+108) (+ x (* (- t x) (/ y a))) (+ t (/ a (/ z (- t x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.36e-85) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 1.55e+108) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + (a / (z / (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.36d-85)) then
tmp = t * ((y - z) / (a - z))
else if (z <= 1.55d+108) then
tmp = x + ((t - x) * (y / a))
else
tmp = t + (a / (z / (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.36e-85) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 1.55e+108) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + (a / (z / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.36e-85: tmp = t * ((y - z) / (a - z)) elif z <= 1.55e+108: tmp = x + ((t - x) * (y / a)) else: tmp = t + (a / (z / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.36e-85) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= 1.55e+108) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.36e-85) tmp = t * ((y - z) / (a - z)); elseif (z <= 1.55e+108) tmp = x + ((t - x) * (y / a)); else tmp = t + (a / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.36e-85], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+108], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.36 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+108}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if z < -2.35999999999999999e-85Initial program 50.9%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in x around 0 45.2%
associate-*r/61.2%
Simplified61.2%
if -2.35999999999999999e-85 < z < 1.5500000000000001e108Initial program 91.1%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in z around 0 70.2%
if 1.5500000000000001e108 < z Initial program 27.0%
associate-*l/63.1%
Simplified63.1%
Taylor expanded in z around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
div-sub70.1%
distribute-lft-out--70.1%
associate-*r/70.1%
distribute-rgt-out--70.4%
mul-1-neg70.4%
unsub-neg70.4%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in y around 0 69.8%
sub-neg69.8%
mul-1-neg69.8%
remove-double-neg69.8%
associate-/l*77.7%
Simplified77.7%
Final simplification68.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.4e-85) (* t (/ (- y z) (- a z))) (if (<= z 8.5e+74) (+ x (/ y (/ a (- t x)))) (+ t (/ a (/ z (- t x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.4e-85) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 8.5e+74) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (a / (z / (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.4d-85)) then
tmp = t * ((y - z) / (a - z))
else if (z <= 8.5d+74) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + (a / (z / (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.4e-85) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 8.5e+74) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (a / (z / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.4e-85: tmp = t * ((y - z) / (a - z)) elif z <= 8.5e+74: tmp = x + (y / (a / (t - x))) else: tmp = t + (a / (z / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.4e-85) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= 8.5e+74) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.4e-85) tmp = t * ((y - z) / (a - z)); elseif (z <= 8.5e+74) tmp = x + (y / (a / (t - x))); else tmp = t + (a / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.4e-85], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e+74], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+74}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if z < -2.4000000000000001e-85Initial program 50.9%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in x around 0 45.2%
associate-*r/61.2%
Simplified61.2%
if -2.4000000000000001e-85 < z < 8.50000000000000028e74Initial program 94.4%
associate-*l/95.2%
Simplified95.2%
Taylor expanded in z around 0 72.0%
associate-/l*72.7%
Simplified72.7%
if 8.50000000000000028e74 < z Initial program 30.2%
associate-*l/65.8%
Simplified65.8%
Taylor expanded in z around inf 67.9%
associate--l+67.9%
associate-*r/67.9%
associate-*r/67.9%
div-sub67.9%
distribute-lft-out--67.9%
associate-*r/67.9%
distribute-rgt-out--68.1%
mul-1-neg68.1%
unsub-neg68.1%
associate-/l*82.1%
Simplified82.1%
Taylor expanded in y around 0 65.8%
sub-neg65.8%
mul-1-neg65.8%
remove-double-neg65.8%
associate-/l*70.6%
Simplified70.6%
Final simplification68.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -2e+83) t (if (<= z 1.85e+112) (* x (- 1.0 (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e+83) {
tmp = t;
} else if (z <= 1.85e+112) {
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 <= (-2d+83)) then
tmp = t
else if (z <= 1.85d+112) 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 <= -2e+83) {
tmp = t;
} else if (z <= 1.85e+112) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2e+83: tmp = t elif z <= 1.85e+112: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2e+83) tmp = t; elseif (z <= 1.85e+112) 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 <= -2e+83) tmp = t; elseif (z <= 1.85e+112) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2e+83], t, If[LessEqual[z, 1.85e+112], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+83}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+112}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.00000000000000006e83 or 1.85000000000000002e112 < z Initial program 30.5%
associate-*l/64.0%
Simplified64.0%
Taylor expanded in z around inf 61.0%
if -2.00000000000000006e83 < z < 1.85000000000000002e112Initial program 88.2%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in z around 0 63.9%
Taylor expanded in x around inf 50.3%
mul-1-neg50.3%
unsub-neg50.3%
Simplified50.3%
Final simplification54.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.3e+83) t (if (<= z 5e+114) (- x (/ x (/ a y))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.3e+83) {
tmp = t;
} else if (z <= 5e+114) {
tmp = x - (x / (a / y));
} 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 <= (-3.3d+83)) then
tmp = t
else if (z <= 5d+114) then
tmp = x - (x / (a / y))
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 <= -3.3e+83) {
tmp = t;
} else if (z <= 5e+114) {
tmp = x - (x / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.3e+83: tmp = t elif z <= 5e+114: tmp = x - (x / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.3e+83) tmp = t; elseif (z <= 5e+114) tmp = Float64(x - Float64(x / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.3e+83) tmp = t; elseif (z <= 5e+114) tmp = x - (x / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.3e+83], t, If[LessEqual[z, 5e+114], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+83}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+114}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.29999999999999985e83 or 5.0000000000000001e114 < z Initial program 30.5%
associate-*l/64.0%
Simplified64.0%
Taylor expanded in z around inf 61.0%
if -3.29999999999999985e83 < z < 5.0000000000000001e114Initial program 88.2%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in z around 0 63.9%
Taylor expanded in t around 0 46.4%
mul-1-neg46.4%
unsub-neg46.4%
associate-/l*50.3%
Simplified50.3%
Final simplification54.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -5500000000000.0) x (if (<= a 4.8e+61) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5500000000000.0) {
tmp = x;
} else if (a <= 4.8e+61) {
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 <= (-5500000000000.0d0)) then
tmp = x
else if (a <= 4.8d+61) 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 <= -5500000000000.0) {
tmp = x;
} else if (a <= 4.8e+61) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5500000000000.0: tmp = x elif a <= 4.8e+61: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5500000000000.0) tmp = x; elseif (a <= 4.8e+61) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5500000000000.0) tmp = x; elseif (a <= 4.8e+61) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5500000000000.0], x, If[LessEqual[a, 4.8e+61], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5500000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+61}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5.5e12 or 4.7999999999999998e61 < a Initial program 72.6%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in a around inf 54.1%
if -5.5e12 < a < 4.7999999999999998e61Initial program 64.1%
associate-*l/75.2%
Simplified75.2%
Taylor expanded in z around inf 40.0%
Final simplification46.0%
(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 67.7%
associate-*l/82.2%
Simplified82.2%
Taylor expanded in z around inf 27.9%
Final simplification27.9%
(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 2023308
(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))))