
(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 17 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 (/ (- x t) (/ z (- y a)))))
(if (<= z -4.5e+154)
(+ (- t (* (/ a (/ z (- t x))) (/ (- y a) z))) t_1)
(if (<= z 1.55e+131) (+ x (* (- t x) (/ (- y z) (- a z)))) (+ t t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x - t) / (z / (y - a));
double tmp;
if (z <= -4.5e+154) {
tmp = (t - ((a / (z / (t - x))) * ((y - a) / z))) + t_1;
} else if (z <= 1.55e+131) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = 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 = (x - t) / (z / (y - a))
if (z <= (-4.5d+154)) then
tmp = (t - ((a / (z / (t - x))) * ((y - a) / z))) + t_1
else if (z <= 1.55d+131) then
tmp = x + ((t - x) * ((y - z) / (a - z)))
else
tmp = 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 = (x - t) / (z / (y - a));
double tmp;
if (z <= -4.5e+154) {
tmp = (t - ((a / (z / (t - x))) * ((y - a) / z))) + t_1;
} else if (z <= 1.55e+131) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = t + t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x - t) / (z / (y - a)) tmp = 0 if z <= -4.5e+154: tmp = (t - ((a / (z / (t - x))) * ((y - a) / z))) + t_1 elif z <= 1.55e+131: tmp = x + ((t - x) * ((y - z) / (a - z))) else: tmp = t + t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x - t) / Float64(z / Float64(y - a))) tmp = 0.0 if (z <= -4.5e+154) tmp = Float64(Float64(t - Float64(Float64(a / Float64(z / Float64(t - x))) * Float64(Float64(y - a) / z))) + t_1); elseif (z <= 1.55e+131) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))); else tmp = Float64(t + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x - t) / (z / (y - a)); tmp = 0.0; if (z <= -4.5e+154) tmp = (t - ((a / (z / (t - x))) * ((y - a) / z))) + t_1; elseif (z <= 1.55e+131) tmp = x + ((t - x) * ((y - z) / (a - z))); else tmp = t + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+154], N[(N[(t - N[(N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[z, 1.55e+131], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+154}:\\
\;\;\;\;\left(t - \frac{a}{\frac{z}{t - x}} \cdot \frac{y - a}{z}\right) + t_1\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+131}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + t_1\\
\end{array}
\end{array}
if z < -4.50000000000000009e154Initial program 30.0%
associate-*l/59.3%
Simplified59.3%
Taylor expanded in z around -inf 47.3%
associate-+r+47.3%
mul-1-neg47.3%
distribute-rgt-out--47.2%
unsub-neg47.2%
Simplified89.8%
if -4.50000000000000009e154 < z < 1.55000000000000008e131Initial program 83.7%
associate-*l/93.6%
Simplified93.6%
if 1.55000000000000008e131 < z Initial program 34.4%
associate-*l/62.7%
Simplified62.7%
Taylor expanded in z around inf 61.9%
associate--l+61.9%
associate-*r/61.9%
associate-*r/61.9%
div-sub61.9%
distribute-lft-out--61.9%
mul-1-neg61.9%
distribute-neg-frac61.9%
distribute-rgt-out--62.4%
unsub-neg62.4%
associate-/l*86.9%
Simplified86.9%
Final simplification92.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ x z))))
(if (<= y -1.7e+229)
t_1
(if (<= y -1.56e+122)
(/ (* x (- y)) a)
(if (<= y -1.05e+118)
t_1
(if (<= y 2.8e-83)
(+ t x)
(if (<= y 1.4e+175) (* x (+ (/ z a) 1.0)) (/ (- x) (/ a y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (x / z);
double tmp;
if (y <= -1.7e+229) {
tmp = t_1;
} else if (y <= -1.56e+122) {
tmp = (x * -y) / a;
} else if (y <= -1.05e+118) {
tmp = t_1;
} else if (y <= 2.8e-83) {
tmp = t + x;
} else if (y <= 1.4e+175) {
tmp = x * ((z / a) + 1.0);
} else {
tmp = -x / (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 = y * (x / z)
if (y <= (-1.7d+229)) then
tmp = t_1
else if (y <= (-1.56d+122)) then
tmp = (x * -y) / a
else if (y <= (-1.05d+118)) then
tmp = t_1
else if (y <= 2.8d-83) then
tmp = t + x
else if (y <= 1.4d+175) then
tmp = x * ((z / a) + 1.0d0)
else
tmp = -x / (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 = y * (x / z);
double tmp;
if (y <= -1.7e+229) {
tmp = t_1;
} else if (y <= -1.56e+122) {
tmp = (x * -y) / a;
} else if (y <= -1.05e+118) {
tmp = t_1;
} else if (y <= 2.8e-83) {
tmp = t + x;
} else if (y <= 1.4e+175) {
tmp = x * ((z / a) + 1.0);
} else {
tmp = -x / (a / y);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (x / z) tmp = 0 if y <= -1.7e+229: tmp = t_1 elif y <= -1.56e+122: tmp = (x * -y) / a elif y <= -1.05e+118: tmp = t_1 elif y <= 2.8e-83: tmp = t + x elif y <= 1.4e+175: tmp = x * ((z / a) + 1.0) else: tmp = -x / (a / y) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(x / z)) tmp = 0.0 if (y <= -1.7e+229) tmp = t_1; elseif (y <= -1.56e+122) tmp = Float64(Float64(x * Float64(-y)) / a); elseif (y <= -1.05e+118) tmp = t_1; elseif (y <= 2.8e-83) tmp = Float64(t + x); elseif (y <= 1.4e+175) tmp = Float64(x * Float64(Float64(z / a) + 1.0)); else tmp = Float64(Float64(-x) / Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (x / z); tmp = 0.0; if (y <= -1.7e+229) tmp = t_1; elseif (y <= -1.56e+122) tmp = (x * -y) / a; elseif (y <= -1.05e+118) tmp = t_1; elseif (y <= 2.8e-83) tmp = t + x; elseif (y <= 1.4e+175) tmp = x * ((z / a) + 1.0); else tmp = -x / (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+229], t$95$1, If[LessEqual[y, -1.56e+122], N[(N[(x * (-y)), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, -1.05e+118], t$95$1, If[LessEqual[y, 2.8e-83], N[(t + x), $MachinePrecision], If[LessEqual[y, 1.4e+175], N[(x * N[(N[(z / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{x}{z}\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.56 \cdot 10^{+122}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{a}\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-83}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+175}:\\
\;\;\;\;x \cdot \left(\frac{z}{a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\end{array}
\end{array}
if y < -1.7e229 or -1.55999999999999993e122 < y < -1.05e118Initial program 70.1%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around -inf 65.5%
Taylor expanded in a around 0 51.6%
mul-1-neg51.6%
associate-/l*64.3%
distribute-neg-frac64.3%
Simplified64.3%
Taylor expanded in t around 0 43.4%
associate-/l*54.9%
Simplified54.9%
associate-/r/56.1%
Applied egg-rr56.1%
if -1.7e229 < y < -1.55999999999999993e122Initial program 56.4%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in y around -inf 56.6%
Taylor expanded in t around 0 41.2%
mul-1-neg41.2%
associate-/l*41.2%
distribute-neg-frac41.2%
Simplified41.2%
Taylor expanded in a around inf 33.7%
if -1.05e118 < y < 2.8000000000000001e-83Initial program 73.8%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in y around 0 54.7%
mul-1-neg54.7%
associate-*r/62.9%
unsub-neg62.9%
Simplified62.9%
Taylor expanded in t around inf 62.0%
Taylor expanded in z around inf 46.8%
mul-1-neg46.8%
Simplified46.8%
if 2.8000000000000001e-83 < y < 1.4000000000000001e175Initial program 74.8%
associate-*l/85.5%
Simplified85.5%
Taylor expanded in y around 0 42.4%
mul-1-neg42.4%
associate-*r/52.4%
unsub-neg52.4%
Simplified52.4%
Taylor expanded in t around 0 38.7%
sub-neg38.7%
mul-1-neg38.7%
remove-double-neg38.7%
associate-/l*38.6%
Simplified38.6%
Taylor expanded in a around inf 38.9%
Taylor expanded in x around 0 38.9%
if 1.4000000000000001e175 < y Initial program 77.2%
associate-*l/95.1%
Simplified95.1%
Taylor expanded in y around -inf 73.0%
Taylor expanded in t around 0 49.6%
mul-1-neg49.6%
associate-/l*67.4%
distribute-neg-frac67.4%
Simplified67.4%
Taylor expanded in a around inf 35.8%
mul-1-neg35.8%
associate-/l*49.3%
distribute-neg-frac49.3%
Simplified49.3%
Final simplification45.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* x (/ y a)))) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= t -1.7e-15)
t_2
(if (<= t -5.7e-92)
t_1
(if (<= t -5.6e-157)
(* y (/ (- t x) (- a z)))
(if (<= t 5e-59) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (x * (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.7e-15) {
tmp = t_2;
} else if (t <= -5.7e-92) {
tmp = t_1;
} else if (t <= -5.6e-157) {
tmp = y * ((t - x) / (a - z));
} else if (t <= 5e-59) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - (x * (y / a))
t_2 = t * ((y - z) / (a - z))
if (t <= (-1.7d-15)) then
tmp = t_2
else if (t <= (-5.7d-92)) then
tmp = t_1
else if (t <= (-5.6d-157)) then
tmp = y * ((t - x) / (a - z))
else if (t <= 5d-59) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (x * (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.7e-15) {
tmp = t_2;
} else if (t <= -5.7e-92) {
tmp = t_1;
} else if (t <= -5.6e-157) {
tmp = y * ((t - x) / (a - z));
} else if (t <= 5e-59) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (x * (y / a)) t_2 = t * ((y - z) / (a - z)) tmp = 0 if t <= -1.7e-15: tmp = t_2 elif t <= -5.7e-92: tmp = t_1 elif t <= -5.6e-157: tmp = y * ((t - x) / (a - z)) elif t <= 5e-59: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(x * Float64(y / a))) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -1.7e-15) tmp = t_2; elseif (t <= -5.7e-92) tmp = t_1; elseif (t <= -5.6e-157) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (t <= 5e-59) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (x * (y / a)); t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -1.7e-15) tmp = t_2; elseif (t <= -5.7e-92) tmp = t_1; elseif (t <= -5.6e-157) tmp = y * ((t - x) / (a - z)); elseif (t <= 5e-59) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-15], t$95$2, If[LessEqual[t, -5.7e-92], t$95$1, If[LessEqual[t, -5.6e-157], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-59], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - x \cdot \frac{y}{a}\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-15}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.7 \cdot 10^{-92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.6 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-59}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.7e-15 or 5.0000000000000001e-59 < t Initial program 70.1%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in x around 0 47.1%
associate-*r/68.7%
Simplified68.7%
if -1.7e-15 < t < -5.70000000000000009e-92 or -5.6000000000000002e-157 < t < 5.0000000000000001e-59Initial program 74.2%
associate-*l/79.7%
Simplified79.7%
Taylor expanded in z around 0 68.0%
Taylor expanded in x around inf 66.1%
distribute-lft-in66.1%
*-rgt-identity66.1%
mul-1-neg66.1%
distribute-rgt-neg-in66.1%
unsub-neg66.1%
Simplified66.1%
if -5.70000000000000009e-92 < t < -5.6000000000000002e-157Initial program 80.6%
associate-*l/85.6%
Simplified85.6%
Taylor expanded in y around inf 80.4%
div-sub80.4%
Simplified80.4%
Final simplification68.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.1e+156) (not (<= z 3.5e+130))) (+ 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 <= -1.1e+156) || !(z <= 3.5e+130)) {
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 <= (-1.1d+156)) .or. (.not. (z <= 3.5d+130))) 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 <= -1.1e+156) || !(z <= 3.5e+130)) {
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 <= -1.1e+156) or not (z <= 3.5e+130): 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 <= -1.1e+156) || !(z <= 3.5e+130)) 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 <= -1.1e+156) || ~((z <= 3.5e+130))) 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, -1.1e+156], N[Not[LessEqual[z, 3.5e+130]], $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 -1.1 \cdot 10^{+156} \lor \neg \left(z \leq 3.5 \cdot 10^{+130}\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 < -1.10000000000000002e156 or 3.5000000000000001e130 < z Initial program 32.9%
associate-*l/61.6%
Simplified61.6%
Taylor expanded in z around inf 59.3%
associate--l+59.3%
associate-*r/59.3%
associate-*r/59.3%
div-sub59.3%
distribute-lft-out--59.3%
mul-1-neg59.3%
distribute-neg-frac59.3%
distribute-rgt-out--59.6%
unsub-neg59.6%
associate-/l*87.8%
Simplified87.8%
if -1.10000000000000002e156 < z < 3.5000000000000001e130Initial program 83.7%
associate-*l/93.6%
Simplified93.6%
Final simplification92.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- x) (/ a y))) (t_2 (* y (/ x z))))
(if (<= y -2.1e+229)
t_2
(if (<= y -2.5e+122)
t_1
(if (<= y -3.8e+118)
t_2
(if (<= y 4.1e-44) (+ t x) (if (<= y 2.5e+174) x t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -x / (a / y);
double t_2 = y * (x / z);
double tmp;
if (y <= -2.1e+229) {
tmp = t_2;
} else if (y <= -2.5e+122) {
tmp = t_1;
} else if (y <= -3.8e+118) {
tmp = t_2;
} else if (y <= 4.1e-44) {
tmp = t + x;
} else if (y <= 2.5e+174) {
tmp = 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) :: t_2
real(8) :: tmp
t_1 = -x / (a / y)
t_2 = y * (x / z)
if (y <= (-2.1d+229)) then
tmp = t_2
else if (y <= (-2.5d+122)) then
tmp = t_1
else if (y <= (-3.8d+118)) then
tmp = t_2
else if (y <= 4.1d-44) then
tmp = t + x
else if (y <= 2.5d+174) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -x / (a / y);
double t_2 = y * (x / z);
double tmp;
if (y <= -2.1e+229) {
tmp = t_2;
} else if (y <= -2.5e+122) {
tmp = t_1;
} else if (y <= -3.8e+118) {
tmp = t_2;
} else if (y <= 4.1e-44) {
tmp = t + x;
} else if (y <= 2.5e+174) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -x / (a / y) t_2 = y * (x / z) tmp = 0 if y <= -2.1e+229: tmp = t_2 elif y <= -2.5e+122: tmp = t_1 elif y <= -3.8e+118: tmp = t_2 elif y <= 4.1e-44: tmp = t + x elif y <= 2.5e+174: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-x) / Float64(a / y)) t_2 = Float64(y * Float64(x / z)) tmp = 0.0 if (y <= -2.1e+229) tmp = t_2; elseif (y <= -2.5e+122) tmp = t_1; elseif (y <= -3.8e+118) tmp = t_2; elseif (y <= 4.1e-44) tmp = Float64(t + x); elseif (y <= 2.5e+174) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -x / (a / y); t_2 = y * (x / z); tmp = 0.0; if (y <= -2.1e+229) tmp = t_2; elseif (y <= -2.5e+122) tmp = t_1; elseif (y <= -3.8e+118) tmp = t_2; elseif (y <= 4.1e-44) tmp = t + x; elseif (y <= 2.5e+174) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.1e+229], t$95$2, If[LessEqual[y, -2.5e+122], t$95$1, If[LessEqual[y, -3.8e+118], t$95$2, If[LessEqual[y, 4.1e-44], N[(t + x), $MachinePrecision], If[LessEqual[y, 2.5e+174], x, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-x}{\frac{a}{y}}\\
t_2 := y \cdot \frac{x}{z}\\
\mathbf{if}\;y \leq -2.1 \cdot 10^{+229}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{+118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{-44}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+174}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.09999999999999988e229 or -2.49999999999999994e122 < y < -3.80000000000000016e118Initial program 70.1%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around -inf 65.5%
Taylor expanded in a around 0 51.6%
mul-1-neg51.6%
associate-/l*64.3%
distribute-neg-frac64.3%
Simplified64.3%
Taylor expanded in t around 0 43.4%
associate-/l*54.9%
Simplified54.9%
associate-/r/56.1%
Applied egg-rr56.1%
if -2.09999999999999988e229 < y < -2.49999999999999994e122 or 2.4999999999999998e174 < y Initial program 66.5%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in y around -inf 64.6%
Taylor expanded in t around 0 45.3%
mul-1-neg45.3%
associate-/l*54.0%
distribute-neg-frac54.0%
Simplified54.0%
Taylor expanded in a around inf 34.8%
mul-1-neg34.8%
associate-/l*41.3%
distribute-neg-frac41.3%
Simplified41.3%
if -3.80000000000000016e118 < y < 4.09999999999999992e-44Initial program 73.6%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in y around 0 54.6%
mul-1-neg54.6%
associate-*r/63.0%
unsub-neg63.0%
Simplified63.0%
Taylor expanded in t around inf 62.0%
Taylor expanded in z around inf 46.8%
mul-1-neg46.8%
Simplified46.8%
if 4.09999999999999992e-44 < y < 2.4999999999999998e174Initial program 75.9%
associate-*l/85.7%
Simplified85.7%
Taylor expanded in a around inf 37.5%
Final simplification45.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ x z))))
(if (<= y -1.9e+229)
t_1
(if (<= y -1.7e+122)
(/ (* x (- y)) a)
(if (<= y -3.6e+118)
t_1
(if (<= y 1.15e-44)
(+ t x)
(if (<= y 2.4e+174) x (/ (- x) (/ a y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (x / z);
double tmp;
if (y <= -1.9e+229) {
tmp = t_1;
} else if (y <= -1.7e+122) {
tmp = (x * -y) / a;
} else if (y <= -3.6e+118) {
tmp = t_1;
} else if (y <= 1.15e-44) {
tmp = t + x;
} else if (y <= 2.4e+174) {
tmp = x;
} else {
tmp = -x / (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 = y * (x / z)
if (y <= (-1.9d+229)) then
tmp = t_1
else if (y <= (-1.7d+122)) then
tmp = (x * -y) / a
else if (y <= (-3.6d+118)) then
tmp = t_1
else if (y <= 1.15d-44) then
tmp = t + x
else if (y <= 2.4d+174) then
tmp = x
else
tmp = -x / (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 = y * (x / z);
double tmp;
if (y <= -1.9e+229) {
tmp = t_1;
} else if (y <= -1.7e+122) {
tmp = (x * -y) / a;
} else if (y <= -3.6e+118) {
tmp = t_1;
} else if (y <= 1.15e-44) {
tmp = t + x;
} else if (y <= 2.4e+174) {
tmp = x;
} else {
tmp = -x / (a / y);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (x / z) tmp = 0 if y <= -1.9e+229: tmp = t_1 elif y <= -1.7e+122: tmp = (x * -y) / a elif y <= -3.6e+118: tmp = t_1 elif y <= 1.15e-44: tmp = t + x elif y <= 2.4e+174: tmp = x else: tmp = -x / (a / y) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(x / z)) tmp = 0.0 if (y <= -1.9e+229) tmp = t_1; elseif (y <= -1.7e+122) tmp = Float64(Float64(x * Float64(-y)) / a); elseif (y <= -3.6e+118) tmp = t_1; elseif (y <= 1.15e-44) tmp = Float64(t + x); elseif (y <= 2.4e+174) tmp = x; else tmp = Float64(Float64(-x) / Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (x / z); tmp = 0.0; if (y <= -1.9e+229) tmp = t_1; elseif (y <= -1.7e+122) tmp = (x * -y) / a; elseif (y <= -3.6e+118) tmp = t_1; elseif (y <= 1.15e-44) tmp = t + x; elseif (y <= 2.4e+174) tmp = x; else tmp = -x / (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.9e+229], t$95$1, If[LessEqual[y, -1.7e+122], N[(N[(x * (-y)), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, -3.6e+118], t$95$1, If[LessEqual[y, 1.15e-44], N[(t + x), $MachinePrecision], If[LessEqual[y, 2.4e+174], x, N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{x}{z}\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{+122}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{a}\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-44}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+174}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\end{array}
\end{array}
if y < -1.90000000000000009e229 or -1.7e122 < y < -3.6e118Initial program 70.1%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around -inf 65.5%
Taylor expanded in a around 0 51.6%
mul-1-neg51.6%
associate-/l*64.3%
distribute-neg-frac64.3%
Simplified64.3%
Taylor expanded in t around 0 43.4%
associate-/l*54.9%
Simplified54.9%
associate-/r/56.1%
Applied egg-rr56.1%
if -1.90000000000000009e229 < y < -1.7e122Initial program 56.4%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in y around -inf 56.6%
Taylor expanded in t around 0 41.2%
mul-1-neg41.2%
associate-/l*41.2%
distribute-neg-frac41.2%
Simplified41.2%
Taylor expanded in a around inf 33.7%
if -3.6e118 < y < 1.14999999999999999e-44Initial program 73.6%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in y around 0 54.6%
mul-1-neg54.6%
associate-*r/63.0%
unsub-neg63.0%
Simplified63.0%
Taylor expanded in t around inf 62.0%
Taylor expanded in z around inf 46.8%
mul-1-neg46.8%
Simplified46.8%
if 1.14999999999999999e-44 < y < 2.3999999999999998e174Initial program 75.9%
associate-*l/85.7%
Simplified85.7%
Taylor expanded in a around inf 37.5%
if 2.3999999999999998e174 < y Initial program 77.2%
associate-*l/95.1%
Simplified95.1%
Taylor expanded in y around -inf 73.0%
Taylor expanded in t around 0 49.6%
mul-1-neg49.6%
associate-/l*67.4%
distribute-neg-frac67.4%
Simplified67.4%
Taylor expanded in a around inf 35.8%
mul-1-neg35.8%
associate-/l*49.3%
distribute-neg-frac49.3%
Simplified49.3%
Final simplification45.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= z -2.05e+138)
t
(if (<= z -4e-301)
t_1
(if (<= z 7e-79) (- x (* x (/ y a))) (if (<= z 1.6e+126) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (z <= -2.05e+138) {
tmp = t;
} else if (z <= -4e-301) {
tmp = t_1;
} else if (z <= 7e-79) {
tmp = x - (x * (y / a));
} else if (z <= 1.6e+126) {
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 + (t * (y / a))
if (z <= (-2.05d+138)) then
tmp = t
else if (z <= (-4d-301)) then
tmp = t_1
else if (z <= 7d-79) then
tmp = x - (x * (y / a))
else if (z <= 1.6d+126) 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 + (t * (y / a));
double tmp;
if (z <= -2.05e+138) {
tmp = t;
} else if (z <= -4e-301) {
tmp = t_1;
} else if (z <= 7e-79) {
tmp = x - (x * (y / a));
} else if (z <= 1.6e+126) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if z <= -2.05e+138: tmp = t elif z <= -4e-301: tmp = t_1 elif z <= 7e-79: tmp = x - (x * (y / a)) elif z <= 1.6e+126: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (z <= -2.05e+138) tmp = t; elseif (z <= -4e-301) tmp = t_1; elseif (z <= 7e-79) tmp = Float64(x - Float64(x * Float64(y / a))); elseif (z <= 1.6e+126) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (z <= -2.05e+138) tmp = t; elseif (z <= -4e-301) tmp = t_1; elseif (z <= 7e-79) tmp = x - (x * (y / a)); elseif (z <= 1.6e+126) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e+138], t, If[LessEqual[z, -4e-301], t$95$1, If[LessEqual[z, 7e-79], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+126], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+138}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-79}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+126}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.0499999999999999e138 or 1.5999999999999999e126 < z Initial program 34.5%
associate-*l/64.3%
Simplified64.3%
Taylor expanded in z around inf 50.9%
if -2.0499999999999999e138 < z < -4.00000000000000027e-301 or 7.00000000000000059e-79 < z < 1.5999999999999999e126Initial program 82.6%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in z around 0 68.3%
Taylor expanded in t around inf 56.3%
associate-*r/61.2%
Simplified61.2%
if -4.00000000000000027e-301 < z < 7.00000000000000059e-79Initial program 90.4%
associate-*l/95.2%
Simplified95.2%
Taylor expanded in z around 0 76.4%
Taylor expanded in x around inf 62.9%
distribute-lft-in62.9%
*-rgt-identity62.9%
mul-1-neg62.9%
distribute-rgt-neg-in62.9%
unsub-neg62.9%
Simplified62.9%
Final simplification59.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.1e-131) (not (<= a 4.5e-33))) (+ x (/ (- t x) (/ a (- y z)))) (+ t (/ (- x t) (/ z y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e-131) || !(a <= 4.5e-33)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-3.1d-131)) .or. (.not. (a <= 4.5d-33))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t + ((x - t) / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e-131) || !(a <= 4.5e-33)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.1e-131) or not (a <= 4.5e-33): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t + ((x - t) / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.1e-131) || !(a <= 4.5e-33)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.1e-131) || ~((a <= 4.5e-33))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t + ((x - t) / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.1e-131], N[Not[LessEqual[a, 4.5e-33]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{-131} \lor \neg \left(a \leq 4.5 \cdot 10^{-33}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\end{array}
\end{array}
if a < -3.10000000000000021e-131 or 4.49999999999999991e-33 < a Initial program 73.9%
associate-*l/89.9%
Simplified89.9%
Taylor expanded in a around inf 69.2%
associate-/l*80.2%
Simplified80.2%
if -3.10000000000000021e-131 < a < 4.49999999999999991e-33Initial program 69.6%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in z around inf 73.3%
associate--l+73.3%
associate-*r/73.3%
associate-*r/73.3%
div-sub73.4%
distribute-lft-out--73.4%
mul-1-neg73.4%
distribute-neg-frac73.4%
distribute-rgt-out--73.4%
unsub-neg73.4%
associate-/l*80.7%
Simplified80.7%
Taylor expanded in y around inf 78.6%
Final simplification79.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.1e-131) (not (<= a 7.4e-34))) (+ x (/ (- t x) (/ a (- y z)))) (+ t (/ (- x t) (/ z (- y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e-131) || !(a <= 7.4e-34)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-3.1d-131)) .or. (.not. (a <= 7.4d-34))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e-131) || !(a <= 7.4e-34)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.1e-131) or not (a <= 7.4e-34): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.1e-131) || !(a <= 7.4e-34)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.1e-131) || ~((a <= 7.4e-34))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.1e-131], N[Not[LessEqual[a, 7.4e-34]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{-131} \lor \neg \left(a \leq 7.4 \cdot 10^{-34}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if a < -3.10000000000000021e-131 or 7.39999999999999976e-34 < a Initial program 73.9%
associate-*l/89.9%
Simplified89.9%
Taylor expanded in a around inf 69.2%
associate-/l*80.2%
Simplified80.2%
if -3.10000000000000021e-131 < a < 7.39999999999999976e-34Initial program 69.6%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in z around inf 73.3%
associate--l+73.3%
associate-*r/73.3%
associate-*r/73.3%
div-sub73.4%
distribute-lft-out--73.4%
mul-1-neg73.4%
distribute-neg-frac73.4%
distribute-rgt-out--73.4%
unsub-neg73.4%
associate-/l*80.7%
Simplified80.7%
Final simplification80.3%
(FPCore (x y z t a)
:precision binary64
(if (<= y -3e+118)
(* (- y a) (/ x z))
(if (<= y 5.5e-82)
(+ t x)
(if (<= y 2.5e+174) (* x (+ (/ z a) 1.0)) (/ (- x) (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -3e+118) {
tmp = (y - a) * (x / z);
} else if (y <= 5.5e-82) {
tmp = t + x;
} else if (y <= 2.5e+174) {
tmp = x * ((z / a) + 1.0);
} else {
tmp = -x / (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 (y <= (-3d+118)) then
tmp = (y - a) * (x / z)
else if (y <= 5.5d-82) then
tmp = t + x
else if (y <= 2.5d+174) then
tmp = x * ((z / a) + 1.0d0)
else
tmp = -x / (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 (y <= -3e+118) {
tmp = (y - a) * (x / z);
} else if (y <= 5.5e-82) {
tmp = t + x;
} else if (y <= 2.5e+174) {
tmp = x * ((z / a) + 1.0);
} else {
tmp = -x / (a / y);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -3e+118: tmp = (y - a) * (x / z) elif y <= 5.5e-82: tmp = t + x elif y <= 2.5e+174: tmp = x * ((z / a) + 1.0) else: tmp = -x / (a / y) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -3e+118) tmp = Float64(Float64(y - a) * Float64(x / z)); elseif (y <= 5.5e-82) tmp = Float64(t + x); elseif (y <= 2.5e+174) tmp = Float64(x * Float64(Float64(z / a) + 1.0)); else tmp = Float64(Float64(-x) / Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -3e+118) tmp = (y - a) * (x / z); elseif (y <= 5.5e-82) tmp = t + x; elseif (y <= 2.5e+174) tmp = x * ((z / a) + 1.0); else tmp = -x / (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -3e+118], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-82], N[(t + x), $MachinePrecision], If[LessEqual[y, 2.5e+174], N[(x * N[(N[(z / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+118}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-82}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+174}:\\
\;\;\;\;x \cdot \left(\frac{z}{a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\end{array}
\end{array}
if y < -3e118Initial program 63.2%
associate-*l/88.7%
Simplified88.7%
Taylor expanded in z around inf 37.6%
associate--l+37.6%
associate-*r/37.6%
associate-*r/37.6%
div-sub37.7%
distribute-lft-out--37.7%
mul-1-neg37.7%
distribute-neg-frac37.7%
distribute-rgt-out--38.3%
unsub-neg38.3%
associate-/l*52.8%
Simplified52.8%
Taylor expanded in t around 0 29.0%
associate-*l/37.5%
Simplified37.5%
if -3e118 < y < 5.4999999999999998e-82Initial program 73.8%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in y around 0 54.7%
mul-1-neg54.7%
associate-*r/62.9%
unsub-neg62.9%
Simplified62.9%
Taylor expanded in t around inf 62.0%
Taylor expanded in z around inf 46.8%
mul-1-neg46.8%
Simplified46.8%
if 5.4999999999999998e-82 < y < 2.4999999999999998e174Initial program 74.8%
associate-*l/85.5%
Simplified85.5%
Taylor expanded in y around 0 42.4%
mul-1-neg42.4%
associate-*r/52.4%
unsub-neg52.4%
Simplified52.4%
Taylor expanded in t around 0 38.7%
sub-neg38.7%
mul-1-neg38.7%
remove-double-neg38.7%
associate-/l*38.6%
Simplified38.6%
Taylor expanded in a around inf 38.9%
Taylor expanded in x around 0 38.9%
if 2.4999999999999998e174 < y Initial program 77.2%
associate-*l/95.1%
Simplified95.1%
Taylor expanded in y around -inf 73.0%
Taylor expanded in t around 0 49.6%
mul-1-neg49.6%
associate-/l*67.4%
distribute-neg-frac67.4%
Simplified67.4%
Taylor expanded in a around inf 35.8%
mul-1-neg35.8%
associate-/l*49.3%
distribute-neg-frac49.3%
Simplified49.3%
Final simplification44.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3e-11) (not (<= t 8.3e-63))) (* t (/ (- y z) (- a z))) (- x (* x (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3e-11) || !(t <= 8.3e-63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - (x * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-3d-11)) .or. (.not. (t <= 8.3d-63))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x - (x * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3e-11) || !(t <= 8.3e-63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - (x * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3e-11) or not (t <= 8.3e-63): tmp = t * ((y - z) / (a - z)) else: tmp = x - (x * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3e-11) || !(t <= 8.3e-63)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x - Float64(x * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3e-11) || ~((t <= 8.3e-63))) tmp = t * ((y - z) / (a - z)); else tmp = x - (x * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3e-11], N[Not[LessEqual[t, 8.3e-63]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-11} \lor \neg \left(t \leq 8.3 \cdot 10^{-63}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -3e-11 or 8.29999999999999959e-63 < t Initial program 70.1%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in x around 0 47.1%
associate-*r/68.7%
Simplified68.7%
if -3e-11 < t < 8.29999999999999959e-63Initial program 75.4%
associate-*l/80.8%
Simplified80.8%
Taylor expanded in z around 0 65.1%
Taylor expanded in x around inf 62.6%
distribute-lft-in62.6%
*-rgt-identity62.6%
mul-1-neg62.6%
distribute-rgt-neg-in62.6%
unsub-neg62.6%
Simplified62.6%
Final simplification66.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.3e+47) (not (<= z 2.5e+68))) (* 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 <= -1.3e+47) || !(z <= 2.5e+68)) {
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 <= (-1.3d+47)) .or. (.not. (z <= 2.5d+68))) 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 <= -1.3e+47) || !(z <= 2.5e+68)) {
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 <= -1.3e+47) or not (z <= 2.5e+68): 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 <= -1.3e+47) || !(z <= 2.5e+68)) 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 <= -1.3e+47) || ~((z <= 2.5e+68))) 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[Or[LessEqual[z, -1.3e+47], N[Not[LessEqual[z, 2.5e+68]], $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 -1.3 \cdot 10^{+47} \lor \neg \left(z \leq 2.5 \cdot 10^{+68}\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 < -1.30000000000000002e47 or 2.5000000000000002e68 < z Initial program 41.3%
associate-*l/71.0%
Simplified71.0%
Taylor expanded in x around 0 34.7%
associate-*r/63.1%
Simplified63.1%
if -1.30000000000000002e47 < z < 2.5000000000000002e68Initial program 89.0%
associate-*l/94.7%
Simplified94.7%
Taylor expanded in z around 0 74.9%
Final simplification70.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.1e-131) (+ x (* (- t x) (/ y a))) (if (<= a 5.3e-33) (+ t (/ (- x t) (/ z y))) (+ x (/ y (/ a (- t x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.1e-131) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 5.3e-33) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-3.1d-131)) then
tmp = x + ((t - x) * (y / a))
else if (a <= 5.3d-33) then
tmp = t + ((x - t) / (z / y))
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.1e-131) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 5.3e-33) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.1e-131: tmp = x + ((t - x) * (y / a)) elif a <= 5.3e-33: tmp = t + ((x - t) / (z / y)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.1e-131) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (a <= 5.3e-33) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.1e-131) tmp = x + ((t - x) * (y / a)); elseif (a <= 5.3e-33) tmp = t + ((x - t) / (z / y)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.1e-131], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.3e-33], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{-131}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 5.3 \cdot 10^{-33}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if a < -3.10000000000000021e-131Initial program 70.0%
associate-*l/90.4%
Simplified90.4%
Taylor expanded in z around 0 67.9%
if -3.10000000000000021e-131 < a < 5.29999999999999968e-33Initial program 69.6%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in z around inf 73.3%
associate--l+73.3%
associate-*r/73.3%
associate-*r/73.3%
div-sub73.4%
distribute-lft-out--73.4%
mul-1-neg73.4%
distribute-neg-frac73.4%
distribute-rgt-out--73.4%
unsub-neg73.4%
associate-/l*80.7%
Simplified80.7%
Taylor expanded in y around inf 78.6%
if 5.29999999999999968e-33 < a Initial program 78.0%
associate-*l/89.3%
Simplified89.3%
Taylor expanded in z around 0 69.3%
associate-/l*77.3%
Simplified77.3%
Final simplification74.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -8e+139) t (if (<= z 2.6e+124) (+ x (* t (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8e+139) {
tmp = t;
} else if (z <= 2.6e+124) {
tmp = x + (t * (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 <= (-8d+139)) then
tmp = t
else if (z <= 2.6d+124) then
tmp = x + (t * (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 <= -8e+139) {
tmp = t;
} else if (z <= 2.6e+124) {
tmp = x + (t * (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8e+139: tmp = t elif z <= 2.6e+124: tmp = x + (t * (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8e+139) tmp = t; elseif (z <= 2.6e+124) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8e+139) tmp = t; elseif (z <= 2.6e+124) tmp = x + (t * (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8e+139], t, If[LessEqual[z, 2.6e+124], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+139}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+124}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -8.00000000000000026e139 or 2.6e124 < z Initial program 34.5%
associate-*l/64.3%
Simplified64.3%
Taylor expanded in z around inf 50.9%
if -8.00000000000000026e139 < z < 2.6e124Initial program 85.1%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 70.8%
Taylor expanded in t around inf 52.8%
associate-*r/58.5%
Simplified58.5%
Final simplification56.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.02e+57) t (if (<= z 1.4e+97) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.02e+57) {
tmp = t;
} else if (z <= 1.4e+97) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.02d+57)) then
tmp = t
else if (z <= 1.4d+97) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.02e+57) {
tmp = t;
} else if (z <= 1.4e+97) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.02e+57: tmp = t elif z <= 1.4e+97: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.02e+57) tmp = t; elseif (z <= 1.4e+97) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.02e+57) tmp = t; elseif (z <= 1.4e+97) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.02e+57], t, If[LessEqual[z, 1.4e+97], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+57}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+97}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.02e57 or 1.4e97 < z Initial program 38.9%
associate-*l/68.2%
Simplified68.2%
Taylor expanded in z around inf 45.8%
if -1.02e57 < z < 1.4e97Initial program 87.9%
associate-*l/94.9%
Simplified94.9%
Taylor expanded in a around inf 40.0%
Final simplification41.9%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
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 = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 72.4%
associate-*l/86.5%
Simplified86.5%
Taylor expanded in y around 0 40.5%
mul-1-neg40.5%
associate-*r/49.3%
unsub-neg49.3%
Simplified49.3%
Taylor expanded in t around 0 29.6%
sub-neg29.6%
mul-1-neg29.6%
remove-double-neg29.6%
associate-/l*30.9%
Simplified30.9%
Taylor expanded in a around 0 2.7%
distribute-rgt1-in2.7%
metadata-eval2.7%
mul0-lft2.7%
Simplified2.7%
Final simplification2.7%
(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 72.4%
associate-*l/86.5%
Simplified86.5%
Taylor expanded in z around inf 19.8%
Final simplification19.8%
(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 2023293
(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))))