
(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 21 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 (- y a))))
(if (<= z -2.7e+181)
(- t (pow (/ t_1 (- t x)) -1.0))
(if (<= z 4.4e+236)
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (- x t) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z / (y - a);
double tmp;
if (z <= -2.7e+181) {
tmp = t - pow((t_1 / (t - x)), -1.0);
} else if (z <= 4.4e+236) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((x - t) / 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 = z / (y - a)
if (z <= (-2.7d+181)) then
tmp = t - ((t_1 / (t - x)) ** (-1.0d0))
else if (z <= 4.4d+236) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + ((x - t) / 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 = z / (y - a);
double tmp;
if (z <= -2.7e+181) {
tmp = t - Math.pow((t_1 / (t - x)), -1.0);
} else if (z <= 4.4e+236) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((x - t) / t_1);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z / (y - a) tmp = 0 if z <= -2.7e+181: tmp = t - math.pow((t_1 / (t - x)), -1.0) elif z <= 4.4e+236: tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + ((x - t) / t_1) return tmp
function code(x, y, z, t, a) t_1 = Float64(z / Float64(y - a)) tmp = 0.0 if (z <= -2.7e+181) tmp = Float64(t - (Float64(t_1 / Float64(t - x)) ^ -1.0)); elseif (z <= 4.4e+236) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(x - t) / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z / (y - a); tmp = 0.0; if (z <= -2.7e+181) tmp = t - ((t_1 / (t - x)) ^ -1.0); elseif (z <= 4.4e+236) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + ((x - t) / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+181], N[(t - N[Power[N[(t$95$1 / N[(t - x), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e+236], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y - a}\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+181}:\\
\;\;\;\;t - {\left(\frac{t_1}{t - x}\right)}^{-1}\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+236}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{t_1}\\
\end{array}
\end{array}
if z < -2.70000000000000007e181Initial program 32.2%
associate-*l/50.0%
Simplified50.0%
Taylor expanded in z around inf 73.8%
associate--l+73.8%
associate-*r/73.8%
associate-*r/73.8%
div-sub73.8%
distribute-lft-out--73.8%
mul-1-neg73.8%
distribute-neg-frac73.8%
distribute-rgt-out--73.8%
unsub-neg73.8%
associate-/l*97.9%
Simplified97.9%
clear-num98.1%
inv-pow98.1%
Applied egg-rr98.1%
if -2.70000000000000007e181 < z < 4.39999999999999956e236Initial program 76.9%
+-commutative76.9%
associate-*l/90.8%
fma-def90.8%
Simplified90.8%
fma-udef90.8%
*-commutative90.8%
clear-num90.7%
un-div-inv90.8%
Applied egg-rr90.8%
if 4.39999999999999956e236 < z Initial program 30.0%
associate-*l/55.4%
Simplified55.4%
Taylor expanded in z around inf 74.0%
associate--l+74.0%
associate-*r/74.0%
associate-*r/74.0%
div-sub74.0%
distribute-lft-out--74.0%
mul-1-neg74.0%
distribute-neg-frac74.0%
distribute-rgt-out--74.7%
unsub-neg74.7%
associate-/l*99.9%
Simplified99.9%
Final simplification92.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.05e+181)
(+ t (/ a (/ z (- t x))))
(if (or (<= z -1.75e-72)
(and (not (<= z -2.5e-126))
(or (<= z -4.2e-153) (not (<= z 8e+90)))))
(* t (/ (- y z) (- a z)))
(+ x (* (- t x) (/ y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.05e+181) {
tmp = t + (a / (z / (t - x)));
} else if ((z <= -1.75e-72) || (!(z <= -2.5e-126) && ((z <= -4.2e-153) || !(z <= 8e+90)))) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.05d+181)) then
tmp = t + (a / (z / (t - x)))
else if ((z <= (-1.75d-72)) .or. (.not. (z <= (-2.5d-126))) .and. (z <= (-4.2d-153)) .or. (.not. (z <= 8d+90))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x + ((t - x) * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.05e+181) {
tmp = t + (a / (z / (t - x)));
} else if ((z <= -1.75e-72) || (!(z <= -2.5e-126) && ((z <= -4.2e-153) || !(z <= 8e+90)))) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.05e+181: tmp = t + (a / (z / (t - x))) elif (z <= -1.75e-72) or (not (z <= -2.5e-126) and ((z <= -4.2e-153) or not (z <= 8e+90))): tmp = t * ((y - z) / (a - z)) else: tmp = x + ((t - x) * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.05e+181) tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); elseif ((z <= -1.75e-72) || (!(z <= -2.5e-126) && ((z <= -4.2e-153) || !(z <= 8e+90)))) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.05e+181) tmp = t + (a / (z / (t - x))); elseif ((z <= -1.75e-72) || (~((z <= -2.5e-126)) && ((z <= -4.2e-153) || ~((z <= 8e+90))))) tmp = t * ((y - z) / (a - z)); else tmp = x + ((t - x) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.05e+181], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.75e-72], And[N[Not[LessEqual[z, -2.5e-126]], $MachinePrecision], Or[LessEqual[z, -4.2e-153], N[Not[LessEqual[z, 8e+90]], $MachinePrecision]]]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.05 \cdot 10^{+181}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-72} \lor \neg \left(z \leq -2.5 \cdot 10^{-126}\right) \land \left(z \leq -4.2 \cdot 10^{-153} \lor \neg \left(z \leq 8 \cdot 10^{+90}\right)\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -3.05000000000000001e181Initial program 32.2%
associate-*l/50.0%
Simplified50.0%
Taylor expanded in z around inf 73.8%
associate--l+73.8%
associate-*r/73.8%
associate-*r/73.8%
div-sub73.8%
distribute-lft-out--73.8%
mul-1-neg73.8%
distribute-neg-frac73.8%
distribute-rgt-out--73.8%
unsub-neg73.8%
associate-/l*97.9%
Simplified97.9%
Taylor expanded in y around 0 69.0%
sub-neg69.0%
mul-1-neg69.0%
remove-double-neg69.0%
associate-/l*86.3%
Simplified86.3%
if -3.05000000000000001e181 < z < -1.75e-72 or -2.50000000000000003e-126 < z < -4.20000000000000008e-153 or 7.99999999999999973e90 < z Initial program 60.3%
associate-*l/81.6%
Simplified81.6%
Taylor expanded in x around 0 48.5%
associate-*r/65.0%
Simplified65.0%
if -1.75e-72 < z < -2.50000000000000003e-126 or -4.20000000000000008e-153 < z < 7.99999999999999973e90Initial program 84.0%
associate-*l/93.7%
Simplified93.7%
Taylor expanded in z around 0 78.1%
Final simplification73.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -7.5e+181)
(+ t (/ a (/ z (- t x))))
(if (<= z -6.6e-68)
t_1
(if (<= z -2.5e-126)
(+ x (* (- t x) (/ y a)))
(if (or (<= z -2.2e-154) (not (<= z 3.7e+91)))
t_1
(+ x (/ y (/ a (- t x))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -7.5e+181) {
tmp = t + (a / (z / (t - x)));
} else if (z <= -6.6e-68) {
tmp = t_1;
} else if (z <= -2.5e-126) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -2.2e-154) || !(z <= 3.7e+91)) {
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 * ((y - z) / (a - z))
if (z <= (-7.5d+181)) then
tmp = t + (a / (z / (t - x)))
else if (z <= (-6.6d-68)) then
tmp = t_1
else if (z <= (-2.5d-126)) then
tmp = x + ((t - x) * (y / a))
else if ((z <= (-2.2d-154)) .or. (.not. (z <= 3.7d+91))) 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 * ((y - z) / (a - z));
double tmp;
if (z <= -7.5e+181) {
tmp = t + (a / (z / (t - x)));
} else if (z <= -6.6e-68) {
tmp = t_1;
} else if (z <= -2.5e-126) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -2.2e-154) || !(z <= 3.7e+91)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -7.5e+181: tmp = t + (a / (z / (t - x))) elif z <= -6.6e-68: tmp = t_1 elif z <= -2.5e-126: tmp = x + ((t - x) * (y / a)) elif (z <= -2.2e-154) or not (z <= 3.7e+91): 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(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -7.5e+181) tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); elseif (z <= -6.6e-68) tmp = t_1; elseif (z <= -2.5e-126) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif ((z <= -2.2e-154) || !(z <= 3.7e+91)) 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 * ((y - z) / (a - z)); tmp = 0.0; if (z <= -7.5e+181) tmp = t + (a / (z / (t - x))); elseif (z <= -6.6e-68) tmp = t_1; elseif (z <= -2.5e-126) tmp = x + ((t - x) * (y / a)); elseif ((z <= -2.2e-154) || ~((z <= 3.7e+91))) 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[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+181], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.6e-68], t$95$1, If[LessEqual[z, -2.5e-126], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -2.2e-154], N[Not[LessEqual[z, 3.7e+91]], $MachinePrecision]], 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 \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+181}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-126}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-154} \lor \neg \left(z \leq 3.7 \cdot 10^{+91}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -7.5000000000000005e181Initial program 32.2%
associate-*l/50.0%
Simplified50.0%
Taylor expanded in z around inf 73.8%
associate--l+73.8%
associate-*r/73.8%
associate-*r/73.8%
div-sub73.8%
distribute-lft-out--73.8%
mul-1-neg73.8%
distribute-neg-frac73.8%
distribute-rgt-out--73.8%
unsub-neg73.8%
associate-/l*97.9%
Simplified97.9%
Taylor expanded in y around 0 69.0%
sub-neg69.0%
mul-1-neg69.0%
remove-double-neg69.0%
associate-/l*86.3%
Simplified86.3%
if -7.5000000000000005e181 < z < -6.5999999999999997e-68 or -2.50000000000000003e-126 < z < -2.20000000000000007e-154 or 3.69999999999999984e91 < z Initial program 60.3%
associate-*l/81.6%
Simplified81.6%
Taylor expanded in x around 0 48.5%
associate-*r/65.0%
Simplified65.0%
if -6.5999999999999997e-68 < z < -2.50000000000000003e-126Initial program 99.7%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
if -2.20000000000000007e-154 < z < 3.69999999999999984e91Initial program 83.3%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in z around 0 68.4%
associate-/l*78.5%
Simplified78.5%
Final simplification74.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -6e-25)
t
(if (<= z -2.55e-179)
t_1
(if (<= z 4.9e-278)
(* y (/ (- t x) a))
(if (<= z 2e-20) t_1 (if (<= z 4.5e+164) (* (- y a) (/ x z)) t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -6e-25) {
tmp = t;
} else if (z <= -2.55e-179) {
tmp = t_1;
} else if (z <= 4.9e-278) {
tmp = y * ((t - x) / a);
} else if (z <= 2e-20) {
tmp = t_1;
} else if (z <= 4.5e+164) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-6d-25)) then
tmp = t
else if (z <= (-2.55d-179)) then
tmp = t_1
else if (z <= 4.9d-278) then
tmp = y * ((t - x) / a)
else if (z <= 2d-20) then
tmp = t_1
else if (z <= 4.5d+164) then
tmp = (y - a) * (x / z)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -6e-25) {
tmp = t;
} else if (z <= -2.55e-179) {
tmp = t_1;
} else if (z <= 4.9e-278) {
tmp = y * ((t - x) / a);
} else if (z <= 2e-20) {
tmp = t_1;
} else if (z <= 4.5e+164) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -6e-25: tmp = t elif z <= -2.55e-179: tmp = t_1 elif z <= 4.9e-278: tmp = y * ((t - x) / a) elif z <= 2e-20: tmp = t_1 elif z <= 4.5e+164: tmp = (y - a) * (x / z) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -6e-25) tmp = t; elseif (z <= -2.55e-179) tmp = t_1; elseif (z <= 4.9e-278) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 2e-20) tmp = t_1; elseif (z <= 4.5e+164) tmp = Float64(Float64(y - a) * Float64(x / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -6e-25) tmp = t; elseif (z <= -2.55e-179) tmp = t_1; elseif (z <= 4.9e-278) tmp = y * ((t - x) / a); elseif (z <= 2e-20) tmp = t_1; elseif (z <= 4.5e+164) tmp = (y - a) * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6e-25], t, If[LessEqual[z, -2.55e-179], t$95$1, If[LessEqual[z, 4.9e-278], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-20], t$95$1, If[LessEqual[z, 4.5e+164], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -6 \cdot 10^{-25}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2.55 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-278}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+164}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.9999999999999995e-25 or 4.49999999999999975e164 < z Initial program 51.5%
associate-*l/74.6%
Simplified74.6%
Taylor expanded in z around inf 45.7%
if -5.9999999999999995e-25 < z < -2.55000000000000014e-179 or 4.9000000000000002e-278 < z < 1.99999999999999989e-20Initial program 87.0%
associate-*l/94.2%
Simplified94.2%
Taylor expanded in z around 0 63.6%
associate-/l*71.7%
Simplified71.7%
Taylor expanded in x around inf 58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
if -2.55000000000000014e-179 < z < 4.9000000000000002e-278Initial program 80.1%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in z around 0 77.4%
associate-/l*94.1%
Simplified94.1%
Taylor expanded in y around inf 67.1%
div-sub70.2%
Simplified70.2%
if 1.99999999999999989e-20 < z < 4.49999999999999975e164Initial program 58.2%
associate-*l/76.2%
Simplified76.2%
Taylor expanded in z around inf 59.1%
associate--l+59.1%
associate-*r/59.1%
associate-*r/59.1%
div-sub59.1%
distribute-lft-out--59.1%
mul-1-neg59.1%
distribute-neg-frac59.1%
distribute-rgt-out--59.1%
unsub-neg59.1%
associate-/l*65.5%
Simplified65.5%
Taylor expanded in t around 0 38.9%
associate-/l*44.6%
associate-/r/47.7%
Simplified47.7%
Final simplification54.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= a -4.8e+161)
(+ x (/ y (/ a t)))
(if (<= a 1.02e-100)
t_1
(if (<= a 1.8e-41)
(* (- y a) (/ x z))
(if (<= a 7.6e+63) t_1 (+ x (/ t (/ a y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -4.8e+161) {
tmp = x + (y / (a / t));
} else if (a <= 1.02e-100) {
tmp = t_1;
} else if (a <= 1.8e-41) {
tmp = (y - a) * (x / z);
} else if (a <= 7.6e+63) {
tmp = t_1;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (a <= (-4.8d+161)) then
tmp = x + (y / (a / t))
else if (a <= 1.02d-100) then
tmp = t_1
else if (a <= 1.8d-41) then
tmp = (y - a) * (x / z)
else if (a <= 7.6d+63) then
tmp = t_1
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -4.8e+161) {
tmp = x + (y / (a / t));
} else if (a <= 1.02e-100) {
tmp = t_1;
} else if (a <= 1.8e-41) {
tmp = (y - a) * (x / z);
} else if (a <= 7.6e+63) {
tmp = t_1;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if a <= -4.8e+161: tmp = x + (y / (a / t)) elif a <= 1.02e-100: tmp = t_1 elif a <= 1.8e-41: tmp = (y - a) * (x / z) elif a <= 7.6e+63: tmp = t_1 else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -4.8e+161) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (a <= 1.02e-100) tmp = t_1; elseif (a <= 1.8e-41) tmp = Float64(Float64(y - a) * Float64(x / z)); elseif (a <= 7.6e+63) tmp = t_1; else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -4.8e+161) tmp = x + (y / (a / t)); elseif (a <= 1.02e-100) tmp = t_1; elseif (a <= 1.8e-41) tmp = (y - a) * (x / z); elseif (a <= 7.6e+63) tmp = t_1; else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+161], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.02e-100], t$95$1, If[LessEqual[a, 1.8e-41], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.6e+63], t$95$1, N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+161}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{-100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-41}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -4.7999999999999998e161Initial program 67.0%
associate-*l/90.8%
Simplified90.8%
Taylor expanded in z around 0 61.5%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in t around inf 78.0%
if -4.7999999999999998e161 < a < 1.02e-100 or 1.8e-41 < a < 7.6000000000000002e63Initial program 69.7%
associate-*l/80.4%
Simplified80.4%
Taylor expanded in x around 0 50.0%
associate-*r/60.8%
Simplified60.8%
if 1.02e-100 < a < 1.8e-41Initial program 73.8%
associate-*l/82.2%
Simplified82.2%
Taylor expanded in z around inf 49.8%
associate--l+49.8%
associate-*r/49.8%
associate-*r/49.8%
div-sub58.9%
distribute-lft-out--58.9%
mul-1-neg58.9%
distribute-neg-frac58.9%
distribute-rgt-out--58.9%
unsub-neg58.9%
associate-/l*67.1%
Simplified67.1%
Taylor expanded in t around 0 56.5%
associate-/l*64.7%
associate-/r/64.7%
Simplified64.7%
if 7.6000000000000002e63 < a Initial program 73.6%
associate-*l/97.8%
Simplified97.8%
Taylor expanded in z around 0 67.2%
associate-/l*80.4%
Simplified80.4%
Taylor expanded in t around inf 63.8%
associate-/l*73.3%
Simplified73.3%
Final simplification65.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5e+170) (not (<= z 2.9e+239))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (* (- t x) (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5e+170) || !(z <= 2.9e+239)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-5d+170)) .or. (.not. (z <= 2.9d+239))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - x) * ((y - z) / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5e+170) || !(z <= 2.9e+239)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5e+170) or not (z <= 2.9e+239): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((t - x) * ((y - z) / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5e+170) || !(z <= 2.9e+239)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5e+170) || ~((z <= 2.9e+239))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((t - x) * ((y - z) / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5e+170], N[Not[LessEqual[z, 2.9e+239]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+170} \lor \neg \left(z \leq 2.9 \cdot 10^{+239}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if z < -4.99999999999999977e170 or 2.9000000000000002e239 < z Initial program 32.6%
associate-*l/54.6%
Simplified54.6%
Taylor expanded in z around inf 73.0%
associate--l+73.0%
associate-*r/73.0%
associate-*r/73.0%
div-sub73.0%
distribute-lft-out--73.0%
mul-1-neg73.0%
distribute-neg-frac73.0%
distribute-rgt-out--73.3%
unsub-neg73.3%
associate-/l*98.8%
Simplified98.8%
if -4.99999999999999977e170 < z < 2.9000000000000002e239Initial program 77.0%
associate-*l/90.7%
Simplified90.7%
Final simplification91.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.2e+180) (not (<= z 8e+235))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (/ (- t x) (/ (- a z) (- y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.2e+180) || !(z <= 8e+235)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) / ((a - z) / (y - 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 <= (-5.2d+180)) .or. (.not. (z <= 8d+235))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - x) / ((a - z) / (y - 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 <= -5.2e+180) || !(z <= 8e+235)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) / ((a - z) / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.2e+180) or not (z <= 8e+235): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((t - x) / ((a - z) / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.2e+180) || !(z <= 8e+235)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5.2e+180) || ~((z <= 8e+235))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((t - x) / ((a - z) / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.2e+180], N[Not[LessEqual[z, 8e+235]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+180} \lor \neg \left(z \leq 8 \cdot 10^{+235}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if z < -5.20000000000000042e180 or 8.0000000000000004e235 < z Initial program 31.3%
associate-*l/52.2%
Simplified52.2%
Taylor expanded in z around inf 73.9%
associate--l+73.9%
associate-*r/73.9%
associate-*r/73.9%
div-sub73.9%
distribute-lft-out--73.9%
mul-1-neg73.9%
distribute-neg-frac73.9%
distribute-rgt-out--74.2%
unsub-neg74.2%
associate-/l*98.7%
Simplified98.7%
if -5.20000000000000042e180 < z < 8.0000000000000004e235Initial program 76.9%
+-commutative76.9%
associate-*l/90.8%
fma-def90.8%
Simplified90.8%
fma-udef90.8%
*-commutative90.8%
clear-num90.7%
un-div-inv90.8%
Applied egg-rr90.8%
Final simplification91.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (/ z y))))
(if (<= a -1.22e-24)
x
(if (<= a -9e-54)
t_1
(if (<= a -4.6e-54)
x
(if (<= a 2.4e-111) t (if (<= a 9500.0) t_1 x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (z / y);
double tmp;
if (a <= -1.22e-24) {
tmp = x;
} else if (a <= -9e-54) {
tmp = t_1;
} else if (a <= -4.6e-54) {
tmp = x;
} else if (a <= 2.4e-111) {
tmp = t;
} else if (a <= 9500.0) {
tmp = t_1;
} 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 <= (-1.22d-24)) then
tmp = x
else if (a <= (-9d-54)) then
tmp = t_1
else if (a <= (-4.6d-54)) then
tmp = x
else if (a <= 2.4d-111) then
tmp = t
else if (a <= 9500.0d0) then
tmp = t_1
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 <= -1.22e-24) {
tmp = x;
} else if (a <= -9e-54) {
tmp = t_1;
} else if (a <= -4.6e-54) {
tmp = x;
} else if (a <= 2.4e-111) {
tmp = t;
} else if (a <= 9500.0) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (z / y) tmp = 0 if a <= -1.22e-24: tmp = x elif a <= -9e-54: tmp = t_1 elif a <= -4.6e-54: tmp = x elif a <= 2.4e-111: tmp = t elif a <= 9500.0: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(z / y)) tmp = 0.0 if (a <= -1.22e-24) tmp = x; elseif (a <= -9e-54) tmp = t_1; elseif (a <= -4.6e-54) tmp = x; elseif (a <= 2.4e-111) tmp = t; elseif (a <= 9500.0) tmp = t_1; 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 <= -1.22e-24) tmp = x; elseif (a <= -9e-54) tmp = t_1; elseif (a <= -4.6e-54) tmp = x; elseif (a <= 2.4e-111) tmp = t; elseif (a <= 9500.0) tmp = t_1; 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, -1.22e-24], x, If[LessEqual[a, -9e-54], t$95$1, If[LessEqual[a, -4.6e-54], x, If[LessEqual[a, 2.4e-111], t, If[LessEqual[a, 9500.0], t$95$1, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{z}{y}}\\
\mathbf{if}\;a \leq -1.22 \cdot 10^{-24}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-54}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-111}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 9500:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.22000000000000004e-24 or -8.9999999999999997e-54 < a < -4.5999999999999998e-54 or 9500 < a Initial program 70.8%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in a around inf 41.4%
if -1.22000000000000004e-24 < a < -8.9999999999999997e-54 or 2.4000000000000001e-111 < a < 9500Initial program 66.4%
associate-*l/72.8%
Simplified72.8%
Taylor expanded in z around inf 56.5%
associate--l+56.5%
associate-*r/56.5%
associate-*r/56.5%
div-sub63.9%
distribute-lft-out--63.9%
mul-1-neg63.9%
distribute-neg-frac63.9%
distribute-rgt-out--63.9%
unsub-neg63.9%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in y around -inf 47.7%
associate-*r/47.7%
associate-*r*47.7%
mul-1-neg47.7%
Simplified47.7%
Taylor expanded in t around 0 39.6%
associate-/l*53.7%
Simplified53.7%
if -4.5999999999999998e-54 < a < 2.4000000000000001e-111Initial program 70.7%
associate-*l/78.5%
Simplified78.5%
Taylor expanded in z around inf 41.2%
Final simplification42.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (/ z y))))
(if (<= a -2.75e+160)
x
(if (<= a -1.05e+34)
(* y (/ (- x) a))
(if (<= a -5e-54)
t_1
(if (<= a 1.56e-105) t (if (<= a 7400.0) t_1 x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (z / y);
double tmp;
if (a <= -2.75e+160) {
tmp = x;
} else if (a <= -1.05e+34) {
tmp = y * (-x / a);
} else if (a <= -5e-54) {
tmp = t_1;
} else if (a <= 1.56e-105) {
tmp = t;
} else if (a <= 7400.0) {
tmp = t_1;
} 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 <= (-2.75d+160)) then
tmp = x
else if (a <= (-1.05d+34)) then
tmp = y * (-x / a)
else if (a <= (-5d-54)) then
tmp = t_1
else if (a <= 1.56d-105) then
tmp = t
else if (a <= 7400.0d0) then
tmp = t_1
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 <= -2.75e+160) {
tmp = x;
} else if (a <= -1.05e+34) {
tmp = y * (-x / a);
} else if (a <= -5e-54) {
tmp = t_1;
} else if (a <= 1.56e-105) {
tmp = t;
} else if (a <= 7400.0) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (z / y) tmp = 0 if a <= -2.75e+160: tmp = x elif a <= -1.05e+34: tmp = y * (-x / a) elif a <= -5e-54: tmp = t_1 elif a <= 1.56e-105: tmp = t elif a <= 7400.0: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(z / y)) tmp = 0.0 if (a <= -2.75e+160) tmp = x; elseif (a <= -1.05e+34) tmp = Float64(y * Float64(Float64(-x) / a)); elseif (a <= -5e-54) tmp = t_1; elseif (a <= 1.56e-105) tmp = t; elseif (a <= 7400.0) tmp = t_1; 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 <= -2.75e+160) tmp = x; elseif (a <= -1.05e+34) tmp = y * (-x / a); elseif (a <= -5e-54) tmp = t_1; elseif (a <= 1.56e-105) tmp = t; elseif (a <= 7400.0) tmp = t_1; 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, -2.75e+160], x, If[LessEqual[a, -1.05e+34], N[(y * N[((-x) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e-54], t$95$1, If[LessEqual[a, 1.56e-105], t, If[LessEqual[a, 7400.0], t$95$1, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{z}{y}}\\
\mathbf{if}\;a \leq -2.75 \cdot 10^{+160}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{+34}:\\
\;\;\;\;y \cdot \frac{-x}{a}\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.56 \cdot 10^{-105}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 7400:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.75e160 or 7400 < a Initial program 72.7%
associate-*l/94.7%
Simplified94.7%
Taylor expanded in a around inf 49.3%
if -2.75e160 < a < -1.05000000000000009e34Initial program 60.9%
associate-*l/86.3%
Simplified86.3%
Taylor expanded in z around 0 41.8%
associate-/l*54.6%
Simplified54.6%
Taylor expanded in y around inf 41.9%
div-sub41.9%
Simplified41.9%
Taylor expanded in t around 0 30.1%
neg-mul-130.1%
distribute-neg-frac30.1%
Simplified30.1%
if -1.05000000000000009e34 < a < -5.00000000000000015e-54 or 1.56000000000000004e-105 < a < 7400Initial program 70.6%
associate-*l/77.6%
Simplified77.6%
Taylor expanded in z around inf 47.5%
associate--l+47.5%
associate-*r/47.5%
associate-*r/47.5%
div-sub52.9%
distribute-lft-out--52.9%
mul-1-neg52.9%
distribute-neg-frac52.9%
distribute-rgt-out--52.9%
unsub-neg52.9%
associate-/l*65.6%
Simplified65.6%
Taylor expanded in y around -inf 36.2%
associate-*r/36.2%
associate-*r*36.2%
mul-1-neg36.2%
Simplified36.2%
Taylor expanded in t around 0 30.4%
associate-/l*43.2%
Simplified43.2%
if -5.00000000000000015e-54 < a < 1.56000000000000004e-105Initial program 70.7%
associate-*l/78.5%
Simplified78.5%
Taylor expanded in z around inf 41.2%
Final simplification43.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.05e-26)
t
(if (<= z 3.8e-277)
(* t (/ y (- a z)))
(if (<= z 1.3e-246)
(/ (* y (- x)) a)
(if (<= z 4.3e-16) x (if (<= z 2.05e+164) (/ x (/ z y)) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.05e-26) {
tmp = t;
} else if (z <= 3.8e-277) {
tmp = t * (y / (a - z));
} else if (z <= 1.3e-246) {
tmp = (y * -x) / a;
} else if (z <= 4.3e-16) {
tmp = x;
} else if (z <= 2.05e+164) {
tmp = x / (z / 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 <= (-1.05d-26)) then
tmp = t
else if (z <= 3.8d-277) then
tmp = t * (y / (a - z))
else if (z <= 1.3d-246) then
tmp = (y * -x) / a
else if (z <= 4.3d-16) then
tmp = x
else if (z <= 2.05d+164) then
tmp = x / (z / 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 <= -1.05e-26) {
tmp = t;
} else if (z <= 3.8e-277) {
tmp = t * (y / (a - z));
} else if (z <= 1.3e-246) {
tmp = (y * -x) / a;
} else if (z <= 4.3e-16) {
tmp = x;
} else if (z <= 2.05e+164) {
tmp = x / (z / y);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.05e-26: tmp = t elif z <= 3.8e-277: tmp = t * (y / (a - z)) elif z <= 1.3e-246: tmp = (y * -x) / a elif z <= 4.3e-16: tmp = x elif z <= 2.05e+164: tmp = x / (z / y) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.05e-26) tmp = t; elseif (z <= 3.8e-277) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 1.3e-246) tmp = Float64(Float64(y * Float64(-x)) / a); elseif (z <= 4.3e-16) tmp = x; elseif (z <= 2.05e+164) tmp = Float64(x / Float64(z / y)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.05e-26) tmp = t; elseif (z <= 3.8e-277) tmp = t * (y / (a - z)); elseif (z <= 1.3e-246) tmp = (y * -x) / a; elseif (z <= 4.3e-16) tmp = x; elseif (z <= 2.05e+164) tmp = x / (z / y); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.05e-26], t, If[LessEqual[z, 3.8e-277], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e-246], N[(N[(y * (-x)), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 4.3e-16], x, If[LessEqual[z, 2.05e+164], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{-26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-277}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-246}:\\
\;\;\;\;\frac{y \cdot \left(-x\right)}{a}\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{-16}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+164}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.05000000000000004e-26 or 2.05000000000000008e164 < z Initial program 51.5%
associate-*l/74.6%
Simplified74.6%
Taylor expanded in z around inf 45.7%
if -1.05000000000000004e-26 < z < 3.79999999999999986e-277Initial program 83.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in y around -inf 45.6%
Taylor expanded in t around inf 28.7%
*-lft-identity28.7%
times-frac36.5%
/-rgt-identity36.5%
Simplified36.5%
if 3.79999999999999986e-277 < z < 1.2999999999999999e-246Initial program 92.1%
associate-*l/91.8%
Simplified91.8%
Taylor expanded in z around 0 92.1%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 67.6%
div-sub67.6%
Simplified67.6%
Taylor expanded in t around 0 51.9%
associate-*r/51.9%
mul-1-neg51.9%
*-commutative51.9%
distribute-rgt-neg-in51.9%
Simplified51.9%
if 1.2999999999999999e-246 < z < 4.2999999999999999e-16Initial program 86.3%
associate-*l/96.3%
Simplified96.3%
Taylor expanded in a around inf 43.2%
if 4.2999999999999999e-16 < z < 2.05000000000000008e164Initial program 56.8%
associate-*l/75.4%
Simplified75.4%
Taylor expanded in z around inf 57.8%
associate--l+57.8%
associate-*r/57.8%
associate-*r/57.8%
div-sub57.8%
distribute-lft-out--57.8%
mul-1-neg57.8%
distribute-neg-frac57.8%
distribute-rgt-out--57.8%
unsub-neg57.8%
associate-/l*64.4%
Simplified64.4%
Taylor expanded in y around -inf 36.7%
associate-*r/36.7%
associate-*r*36.7%
mul-1-neg36.7%
Simplified36.7%
Taylor expanded in t around 0 33.5%
associate-/l*42.6%
Simplified42.6%
Final simplification42.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -7.4e-31)
t
(if (<= z -2e-185)
t_1
(if (<= z -3.85e-255) (* t (/ y (- a z))) (if (<= z 3.2e+91) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -7.4e-31) {
tmp = t;
} else if (z <= -2e-185) {
tmp = t_1;
} else if (z <= -3.85e-255) {
tmp = t * (y / (a - z));
} else if (z <= 3.2e+91) {
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 * (1.0d0 - (y / a))
if (z <= (-7.4d-31)) then
tmp = t
else if (z <= (-2d-185)) then
tmp = t_1
else if (z <= (-3.85d-255)) then
tmp = t * (y / (a - z))
else if (z <= 3.2d+91) 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 * (1.0 - (y / a));
double tmp;
if (z <= -7.4e-31) {
tmp = t;
} else if (z <= -2e-185) {
tmp = t_1;
} else if (z <= -3.85e-255) {
tmp = t * (y / (a - z));
} else if (z <= 3.2e+91) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -7.4e-31: tmp = t elif z <= -2e-185: tmp = t_1 elif z <= -3.85e-255: tmp = t * (y / (a - z)) elif z <= 3.2e+91: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -7.4e-31) tmp = t; elseif (z <= -2e-185) tmp = t_1; elseif (z <= -3.85e-255) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 3.2e+91) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -7.4e-31) tmp = t; elseif (z <= -2e-185) tmp = t_1; elseif (z <= -3.85e-255) tmp = t * (y / (a - z)); elseif (z <= 3.2e+91) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.4e-31], t, If[LessEqual[z, -2e-185], t$95$1, If[LessEqual[z, -3.85e-255], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+91], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -7.4 \cdot 10^{-31}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-185}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.85 \cdot 10^{-255}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -7.3999999999999996e-31 or 3.19999999999999989e91 < z Initial program 51.1%
associate-*l/73.6%
Simplified73.6%
Taylor expanded in z around inf 43.6%
if -7.3999999999999996e-31 < z < -2e-185 or -3.8500000000000001e-255 < z < 3.19999999999999989e91Initial program 85.1%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in z around 0 64.5%
associate-/l*72.5%
Simplified72.5%
Taylor expanded in x around inf 56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
if -2e-185 < z < -3.8500000000000001e-255Initial program 66.2%
associate-*l/99.4%
Simplified99.4%
Taylor expanded in y around -inf 45.6%
Taylor expanded in t around inf 38.3%
*-lft-identity38.3%
times-frac63.5%
/-rgt-identity63.5%
Simplified63.5%
Final simplification51.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -6.8e-25)
t
(if (<= z -5.8e-180)
t_1
(if (<= z 5e-278) (* y (/ (- t x) a)) (if (<= z 1.6e+91) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -6.8e-25) {
tmp = t;
} else if (z <= -5.8e-180) {
tmp = t_1;
} else if (z <= 5e-278) {
tmp = y * ((t - x) / a);
} else if (z <= 1.6e+91) {
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 * (1.0d0 - (y / a))
if (z <= (-6.8d-25)) then
tmp = t
else if (z <= (-5.8d-180)) then
tmp = t_1
else if (z <= 5d-278) then
tmp = y * ((t - x) / a)
else if (z <= 1.6d+91) 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 * (1.0 - (y / a));
double tmp;
if (z <= -6.8e-25) {
tmp = t;
} else if (z <= -5.8e-180) {
tmp = t_1;
} else if (z <= 5e-278) {
tmp = y * ((t - x) / a);
} else if (z <= 1.6e+91) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -6.8e-25: tmp = t elif z <= -5.8e-180: tmp = t_1 elif z <= 5e-278: tmp = y * ((t - x) / a) elif z <= 1.6e+91: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -6.8e-25) tmp = t; elseif (z <= -5.8e-180) tmp = t_1; elseif (z <= 5e-278) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 1.6e+91) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -6.8e-25) tmp = t; elseif (z <= -5.8e-180) tmp = t_1; elseif (z <= 5e-278) tmp = y * ((t - x) / a); elseif (z <= 1.6e+91) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.8e-25], t, If[LessEqual[z, -5.8e-180], t$95$1, If[LessEqual[z, 5e-278], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+91], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{-25}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -5.8 \cdot 10^{-180}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-278}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.80000000000000003e-25 or 1.59999999999999995e91 < z Initial program 51.1%
associate-*l/73.6%
Simplified73.6%
Taylor expanded in z around inf 43.6%
if -6.80000000000000003e-25 < z < -5.79999999999999961e-180 or 4.99999999999999985e-278 < z < 1.59999999999999995e91Initial program 84.3%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 60.3%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in x around inf 55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
if -5.79999999999999961e-180 < z < 4.99999999999999985e-278Initial program 80.1%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in z around 0 77.4%
associate-/l*94.1%
Simplified94.1%
Taylor expanded in y around inf 67.1%
div-sub70.2%
Simplified70.2%
Final simplification52.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.25e-24)
t
(if (<= z -1.2e-165)
(* x (- 1.0 (/ y a)))
(if (<= z 1.65e-16)
(+ x (/ t (/ a y)))
(if (<= z 1.5e+165) (* (- y a) (/ x z)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e-24) {
tmp = t;
} else if (z <= -1.2e-165) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.65e-16) {
tmp = x + (t / (a / y));
} else if (z <= 1.5e+165) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.25d-24)) then
tmp = t
else if (z <= (-1.2d-165)) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 1.65d-16) then
tmp = x + (t / (a / y))
else if (z <= 1.5d+165) then
tmp = (y - a) * (x / z)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e-24) {
tmp = t;
} else if (z <= -1.2e-165) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.65e-16) {
tmp = x + (t / (a / y));
} else if (z <= 1.5e+165) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.25e-24: tmp = t elif z <= -1.2e-165: tmp = x * (1.0 - (y / a)) elif z <= 1.65e-16: tmp = x + (t / (a / y)) elif z <= 1.5e+165: tmp = (y - a) * (x / z) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.25e-24) tmp = t; elseif (z <= -1.2e-165) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 1.65e-16) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 1.5e+165) tmp = Float64(Float64(y - a) * Float64(x / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.25e-24) tmp = t; elseif (z <= -1.2e-165) tmp = x * (1.0 - (y / a)); elseif (z <= 1.65e-16) tmp = x + (t / (a / y)); elseif (z <= 1.5e+165) tmp = (y - a) * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.25e-24], t, If[LessEqual[z, -1.2e-165], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-16], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+165], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{-24}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-165}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-16}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+165}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.24999999999999995e-24 or 1.49999999999999995e165 < z Initial program 51.5%
associate-*l/74.6%
Simplified74.6%
Taylor expanded in z around inf 45.7%
if -1.24999999999999995e-24 < z < -1.2000000000000001e-165Initial program 87.3%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in z around 0 52.6%
associate-/l*58.7%
Simplified58.7%
Taylor expanded in x around inf 53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
if -1.2000000000000001e-165 < z < 1.64999999999999994e-16Initial program 84.9%
associate-*l/94.4%
Simplified94.4%
Taylor expanded in z around 0 70.4%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in t around inf 56.7%
associate-/l*64.5%
Simplified64.5%
if 1.64999999999999994e-16 < z < 1.49999999999999995e165Initial program 56.8%
associate-*l/75.4%
Simplified75.4%
Taylor expanded in z around inf 57.8%
associate--l+57.8%
associate-*r/57.8%
associate-*r/57.8%
div-sub57.8%
distribute-lft-out--57.8%
mul-1-neg57.8%
distribute-neg-frac57.8%
distribute-rgt-out--57.8%
unsub-neg57.8%
associate-/l*64.4%
Simplified64.4%
Taylor expanded in t around 0 40.2%
associate-/l*46.0%
associate-/r/49.3%
Simplified49.3%
Final simplification54.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8.5e-26)
t
(if (<= z -7.2e-166)
(* x (- 1.0 (/ y a)))
(if (<= z 1e-16)
(+ x (/ y (/ a t)))
(if (<= z 8e+165) (* (- y a) (/ x z)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.5e-26) {
tmp = t;
} else if (z <= -7.2e-166) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1e-16) {
tmp = x + (y / (a / t));
} else if (z <= 8e+165) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8.5d-26)) then
tmp = t
else if (z <= (-7.2d-166)) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 1d-16) then
tmp = x + (y / (a / t))
else if (z <= 8d+165) then
tmp = (y - a) * (x / z)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.5e-26) {
tmp = t;
} else if (z <= -7.2e-166) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1e-16) {
tmp = x + (y / (a / t));
} else if (z <= 8e+165) {
tmp = (y - a) * (x / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.5e-26: tmp = t elif z <= -7.2e-166: tmp = x * (1.0 - (y / a)) elif z <= 1e-16: tmp = x + (y / (a / t)) elif z <= 8e+165: tmp = (y - a) * (x / z) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.5e-26) tmp = t; elseif (z <= -7.2e-166) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 1e-16) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (z <= 8e+165) tmp = Float64(Float64(y - a) * Float64(x / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.5e-26) tmp = t; elseif (z <= -7.2e-166) tmp = x * (1.0 - (y / a)); elseif (z <= 1e-16) tmp = x + (y / (a / t)); elseif (z <= 8e+165) tmp = (y - a) * (x / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.5e-26], t, If[LessEqual[z, -7.2e-166], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-16], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+165], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{-26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-166}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 10^{-16}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+165}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -8.50000000000000004e-26 or 7.9999999999999992e165 < z Initial program 51.5%
associate-*l/74.6%
Simplified74.6%
Taylor expanded in z around inf 45.7%
if -8.50000000000000004e-26 < z < -7.2000000000000002e-166Initial program 87.3%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in z around 0 52.6%
associate-/l*58.7%
Simplified58.7%
Taylor expanded in x around inf 53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
if -7.2000000000000002e-166 < z < 9.9999999999999998e-17Initial program 84.9%
associate-*l/94.4%
Simplified94.4%
Taylor expanded in z around 0 70.4%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in t around inf 65.5%
if 9.9999999999999998e-17 < z < 7.9999999999999992e165Initial program 56.8%
associate-*l/75.4%
Simplified75.4%
Taylor expanded in z around inf 57.8%
associate--l+57.8%
associate-*r/57.8%
associate-*r/57.8%
div-sub57.8%
distribute-lft-out--57.8%
mul-1-neg57.8%
distribute-neg-frac57.8%
distribute-rgt-out--57.8%
unsub-neg57.8%
associate-/l*64.4%
Simplified64.4%
Taylor expanded in t around 0 40.2%
associate-/l*46.0%
associate-/r/49.3%
Simplified49.3%
Final simplification55.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.1e+165)
(+ x (/ y (/ a t)))
(if (<= a -6.5e-54)
(* x (- 1.0 (/ y a)))
(if (<= a -1.05e-201)
t
(if (<= a 100.0) (* (/ y z) (- x t)) (+ x (/ t (/ a y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.1e+165) {
tmp = x + (y / (a / t));
} else if (a <= -6.5e-54) {
tmp = x * (1.0 - (y / a));
} else if (a <= -1.05e-201) {
tmp = t;
} else if (a <= 100.0) {
tmp = (y / z) * (x - t);
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-3.1d+165)) then
tmp = x + (y / (a / t))
else if (a <= (-6.5d-54)) then
tmp = x * (1.0d0 - (y / a))
else if (a <= (-1.05d-201)) then
tmp = t
else if (a <= 100.0d0) then
tmp = (y / z) * (x - t)
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.1e+165) {
tmp = x + (y / (a / t));
} else if (a <= -6.5e-54) {
tmp = x * (1.0 - (y / a));
} else if (a <= -1.05e-201) {
tmp = t;
} else if (a <= 100.0) {
tmp = (y / z) * (x - t);
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.1e+165: tmp = x + (y / (a / t)) elif a <= -6.5e-54: tmp = x * (1.0 - (y / a)) elif a <= -1.05e-201: tmp = t elif a <= 100.0: tmp = (y / z) * (x - t) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.1e+165) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (a <= -6.5e-54) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (a <= -1.05e-201) tmp = t; elseif (a <= 100.0) tmp = Float64(Float64(y / z) * Float64(x - t)); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.1e+165) tmp = x + (y / (a / t)); elseif (a <= -6.5e-54) tmp = x * (1.0 - (y / a)); elseif (a <= -1.05e-201) tmp = t; elseif (a <= 100.0) tmp = (y / z) * (x - t); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.1e+165], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.5e-54], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.05e-201], t, If[LessEqual[a, 100.0], N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{+165}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-54}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-201}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 100:\\
\;\;\;\;\frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -3.1000000000000002e165Initial program 65.9%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in z around 0 60.2%
associate-/l*81.5%
Simplified81.5%
Taylor expanded in t around inf 77.3%
if -3.1000000000000002e165 < a < -6.49999999999999991e-54Initial program 65.9%
associate-*l/82.5%
Simplified82.5%
Taylor expanded in z around 0 48.9%
associate-/l*54.3%
Simplified54.3%
Taylor expanded in x around inf 45.8%
mul-1-neg45.8%
unsub-neg45.8%
Simplified45.8%
if -6.49999999999999991e-54 < a < -1.05000000000000006e-201Initial program 69.7%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in z around inf 47.7%
if -1.05000000000000006e-201 < a < 100Initial program 70.8%
associate-*l/79.4%
Simplified79.4%
Taylor expanded in z around inf 79.1%
associate--l+79.1%
associate-*r/79.1%
associate-*r/79.1%
div-sub80.3%
distribute-lft-out--80.3%
mul-1-neg80.3%
distribute-neg-frac80.3%
distribute-rgt-out--80.3%
unsub-neg80.3%
associate-/l*86.4%
Simplified86.4%
Taylor expanded in y around -inf 44.3%
associate-*r/44.3%
associate-*r*44.3%
mul-1-neg44.3%
Simplified44.3%
Taylor expanded in y around 0 44.3%
mul-1-neg44.3%
associate-/l*46.8%
associate-/r/50.8%
*-commutative50.8%
distribute-rgt-neg-in50.8%
distribute-frac-neg50.8%
Simplified50.8%
if 100 < a Initial program 75.6%
associate-*l/96.7%
Simplified96.7%
Taylor expanded in z around 0 64.2%
associate-/l*74.8%
Simplified74.8%
Taylor expanded in t around inf 56.9%
associate-/l*64.6%
Simplified64.6%
Final simplification56.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -6e+160)
(+ x (/ y (/ a t)))
(if (<= a 1.55e-111)
(* t (/ (- y z) (- a z)))
(if (<= a 1.06e+59) (* y (/ (- t x) (- a z))) (+ x (/ t (/ a y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6e+160) {
tmp = x + (y / (a / t));
} else if (a <= 1.55e-111) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 1.06e+59) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-6d+160)) then
tmp = x + (y / (a / t))
else if (a <= 1.55d-111) then
tmp = t * ((y - z) / (a - z))
else if (a <= 1.06d+59) then
tmp = y * ((t - x) / (a - z))
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6e+160) {
tmp = x + (y / (a / t));
} else if (a <= 1.55e-111) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 1.06e+59) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6e+160: tmp = x + (y / (a / t)) elif a <= 1.55e-111: tmp = t * ((y - z) / (a - z)) elif a <= 1.06e+59: tmp = y * ((t - x) / (a - z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6e+160) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (a <= 1.55e-111) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 1.06e+59) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6e+160) tmp = x + (y / (a / t)); elseif (a <= 1.55e-111) tmp = t * ((y - z) / (a - z)); elseif (a <= 1.06e+59) tmp = y * ((t - x) / (a - z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6e+160], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e-111], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.06e+59], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6 \cdot 10^{+160}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-111}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 1.06 \cdot 10^{+59}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -5.9999999999999997e160Initial program 67.0%
associate-*l/90.8%
Simplified90.8%
Taylor expanded in z around 0 61.5%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in t around inf 78.0%
if -5.9999999999999997e160 < a < 1.55000000000000007e-111Initial program 68.6%
associate-*l/79.6%
Simplified79.6%
Taylor expanded in x around 0 49.9%
associate-*r/60.8%
Simplified60.8%
if 1.55000000000000007e-111 < a < 1.0600000000000001e59Initial program 75.5%
associate-*l/84.7%
Simplified84.7%
Taylor expanded in y around inf 64.7%
div-sub64.7%
Simplified64.7%
if 1.0600000000000001e59 < a Initial program 74.1%
associate-*l/97.8%
Simplified97.8%
Taylor expanded in z around 0 65.9%
associate-/l*78.8%
Simplified78.8%
Taylor expanded in t around inf 62.6%
associate-/l*71.9%
Simplified71.9%
Final simplification65.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.35e+43) (not (<= y 1.15e+65))) (* y (/ (- t x) (- a z))) (+ x (/ (- y z) (/ (- a z) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.35e+43) || !(y <= 1.15e+65)) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.35d+43)) .or. (.not. (y <= 1.15d+65))) then
tmp = y * ((t - x) / (a - z))
else
tmp = x + ((y - z) / ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.35e+43) || !(y <= 1.15e+65)) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.35e+43) or not (y <= 1.15e+65): tmp = y * ((t - x) / (a - z)) else: tmp = x + ((y - z) / ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.35e+43) || !(y <= 1.15e+65)) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.35e+43) || ~((y <= 1.15e+65))) tmp = y * ((t - x) / (a - z)); else tmp = x + ((y - z) / ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.35e+43], N[Not[LessEqual[y, 1.15e+65]], $MachinePrecision]], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+43} \lor \neg \left(y \leq 1.15 \cdot 10^{+65}\right):\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\end{array}
\end{array}
if y < -1.3500000000000001e43 or 1.15e65 < y Initial program 66.3%
associate-*l/89.8%
Simplified89.8%
Taylor expanded in y around inf 78.7%
div-sub79.7%
Simplified79.7%
if -1.3500000000000001e43 < y < 1.15e65Initial program 73.3%
associate-/l*76.1%
Simplified76.1%
Taylor expanded in t around inf 72.8%
Final simplification75.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.1e-25) (not (<= a 100.0))) (+ x (/ (- y z) (/ (- a z) t))) (+ t (/ (- x t) (/ z (- y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.1e-25) || !(a <= 100.0)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-4.1d-25)) .or. (.not. (a <= 100.0d0))) then
tmp = x + ((y - z) / ((a - z) / t))
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.1e-25) || !(a <= 100.0)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.1e-25) or not (a <= 100.0): tmp = x + ((y - z) / ((a - z) / t)) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.1e-25) || !(a <= 100.0)) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.1e-25) || ~((a <= 100.0))) tmp = x + ((y - z) / ((a - z) / t)); else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.1e-25], N[Not[LessEqual[a, 100.0]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.1 \cdot 10^{-25} \lor \neg \left(a \leq 100\right):\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if a < -4.09999999999999987e-25 or 100 < a Initial program 70.5%
associate-/l*90.4%
Simplified90.4%
Taylor expanded in t around inf 76.4%
if -4.09999999999999987e-25 < a < 100Initial program 70.0%
associate-*l/77.4%
Simplified77.4%
Taylor expanded in z around inf 76.2%
associate--l+76.2%
associate-*r/76.2%
associate-*r/76.2%
div-sub78.6%
distribute-lft-out--78.6%
mul-1-neg78.6%
distribute-neg-frac78.6%
distribute-rgt-out--78.6%
unsub-neg78.6%
associate-/l*83.5%
Simplified83.5%
Final simplification79.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.1e-25) (+ x (/ y (/ a (- t x)))) (if (<= a 105.0) (- t (/ y (/ z (- t x)))) (+ x (* (- t x) (/ y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.1e-25) {
tmp = x + (y / (a / (t - x)));
} else if (a <= 105.0) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-4.1d-25)) then
tmp = x + (y / (a / (t - x)))
else if (a <= 105.0d0) then
tmp = t - (y / (z / (t - x)))
else
tmp = x + ((t - x) * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.1e-25) {
tmp = x + (y / (a / (t - x)));
} else if (a <= 105.0) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.1e-25: tmp = x + (y / (a / (t - x))) elif a <= 105.0: tmp = t - (y / (z / (t - x))) else: tmp = x + ((t - x) * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.1e-25) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (a <= 105.0) tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.1e-25) tmp = x + (y / (a / (t - x))); elseif (a <= 105.0) tmp = t - (y / (z / (t - x))); else tmp = x + ((t - x) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.1e-25], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 105.0], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.1 \cdot 10^{-25}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;a \leq 105:\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if a < -4.09999999999999987e-25Initial program 66.1%
associate-*l/88.8%
Simplified88.8%
Taylor expanded in z around 0 52.8%
associate-/l*67.5%
Simplified67.5%
if -4.09999999999999987e-25 < a < 105Initial program 70.0%
associate-*l/77.4%
Simplified77.4%
Taylor expanded in z around inf 76.2%
associate--l+76.2%
associate-*r/76.2%
associate-*r/76.2%
div-sub78.6%
distribute-lft-out--78.6%
mul-1-neg78.6%
distribute-neg-frac78.6%
distribute-rgt-out--78.6%
unsub-neg78.6%
associate-/l*83.5%
Simplified83.5%
Taylor expanded in y around inf 72.1%
associate-/l*73.9%
Simplified73.9%
if 105 < a Initial program 75.6%
associate-*l/96.7%
Simplified96.7%
Taylor expanded in z around 0 76.2%
Final simplification72.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -8e-54) x (if (<= a 1.85e+59) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8e-54) {
tmp = x;
} else if (a <= 1.85e+59) {
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 <= (-8d-54)) then
tmp = x
else if (a <= 1.85d+59) 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 <= -8e-54) {
tmp = x;
} else if (a <= 1.85e+59) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8e-54: tmp = x elif a <= 1.85e+59: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8e-54) tmp = x; elseif (a <= 1.85e+59) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8e-54) tmp = x; elseif (a <= 1.85e+59) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8e-54], x, If[LessEqual[a, 1.85e+59], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8 \cdot 10^{-54}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+59}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -8.0000000000000002e-54 or 1.84999999999999999e59 < a Initial program 69.1%
associate-*l/90.3%
Simplified90.3%
Taylor expanded in a around inf 41.6%
if -8.0000000000000002e-54 < a < 1.84999999999999999e59Initial program 71.6%
associate-*l/79.8%
Simplified79.8%
Taylor expanded in z around inf 36.0%
Final simplification38.9%
(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 70.3%
associate-*l/85.2%
Simplified85.2%
Taylor expanded in z around inf 22.6%
Final simplification22.6%
(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 2023290
(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))))