
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (/ (- z t) (- z a)))) (if (<= t_1 (- INFINITY)) (* t (/ (- y) (- z a))) (fma y t_1 x))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) / (z - a);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = t * (-y / (z - a));
} else {
tmp = fma(y, t_1, x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) / Float64(z - a)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(t * Float64(Float64(-y) / Float64(z - a))); else tmp = fma(y, t_1, x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(t * N[((-y) / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * t$95$1 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - t}{z - a}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;t \cdot \frac{-y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, t_1, x\right)\\
\end{array}
\end{array}
if (/.f64 (-.f64 z t) (-.f64 z a)) < -inf.0Initial program 6.7%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
mul-1-neg100.0%
associate-*r/100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub-inv100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
associate-*r/100.0%
neg-mul-1100.0%
distribute-lft-neg-in100.0%
associate-*r/100.0%
Simplified100.0%
if -inf.0 < (/.f64 (-.f64 z t) (-.f64 z a)) Initial program 98.8%
+-commutative98.8%
fma-def98.8%
Simplified98.8%
Final simplification98.8%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (/ (- z t) (- z a)))) (if (<= t_1 (- INFINITY)) (* t (/ (- y) (- z a))) (+ x (* t_1 y)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) / (z - a);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = t * (-y / (z - a));
} else {
tmp = x + (t_1 * y);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) / (z - a);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = t * (-y / (z - a));
} else {
tmp = x + (t_1 * y);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z - t) / (z - a) tmp = 0 if t_1 <= -math.inf: tmp = t * (-y / (z - a)) else: tmp = x + (t_1 * y) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) / Float64(z - a)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(t * Float64(Float64(-y) / Float64(z - a))); else tmp = Float64(x + Float64(t_1 * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (z - t) / (z - a); tmp = 0.0; if (t_1 <= -Inf) tmp = t * (-y / (z - a)); else tmp = x + (t_1 * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(t * N[((-y) / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$1 * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - t}{z - a}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;t \cdot \frac{-y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + t_1 \cdot y\\
\end{array}
\end{array}
if (/.f64 (-.f64 z t) (-.f64 z a)) < -inf.0Initial program 6.7%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
mul-1-neg100.0%
associate-*r/100.0%
distribute-lft-neg-in100.0%
cancel-sign-sub-inv100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
associate-*r/100.0%
neg-mul-1100.0%
distribute-lft-neg-in100.0%
associate-*r/100.0%
Simplified100.0%
if -inf.0 < (/.f64 (-.f64 z t) (-.f64 z a)) Initial program 98.8%
Final simplification98.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.8e+19)
(+ y x)
(if (<= z 2.6e-137)
(+ x (/ y (/ a t)))
(if (<= z 1.45e+205) (+ x (/ (* (- z t) y) z)) (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+19) {
tmp = y + x;
} else if (z <= 2.6e-137) {
tmp = x + (y / (a / t));
} else if (z <= 1.45e+205) {
tmp = x + (((z - t) * y) / z);
} else {
tmp = y + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.8d+19)) then
tmp = y + x
else if (z <= 2.6d-137) then
tmp = x + (y / (a / t))
else if (z <= 1.45d+205) then
tmp = x + (((z - t) * y) / z)
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+19) {
tmp = y + x;
} else if (z <= 2.6e-137) {
tmp = x + (y / (a / t));
} else if (z <= 1.45e+205) {
tmp = x + (((z - t) * y) / z);
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+19: tmp = y + x elif z <= 2.6e-137: tmp = x + (y / (a / t)) elif z <= 1.45e+205: tmp = x + (((z - t) * y) / z) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+19) tmp = Float64(y + x); elseif (z <= 2.6e-137) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (z <= 1.45e+205) tmp = Float64(x + Float64(Float64(Float64(z - t) * y) / z)); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+19) tmp = y + x; elseif (z <= 2.6e-137) tmp = x + (y / (a / t)); elseif (z <= 1.45e+205) tmp = x + (((z - t) * y) / z); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+19], N[(y + x), $MachinePrecision], If[LessEqual[z, 2.6e-137], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+205], N[(x + N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+19}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-137}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+205}:\\
\;\;\;\;x + \frac{\left(z - t\right) \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if z < -2.8e19 or 1.4500000000000001e205 < z Initial program 99.9%
Taylor expanded in z around inf 84.3%
+-commutative84.3%
Simplified84.3%
if -2.8e19 < z < 2.6e-137Initial program 94.3%
Taylor expanded in z around 0 82.7%
+-commutative82.7%
associate-/l*81.8%
associate-/r/84.4%
Simplified84.4%
*-commutative84.4%
clear-num84.4%
un-div-inv84.7%
Applied egg-rr84.7%
if 2.6e-137 < z < 1.4500000000000001e205Initial program 97.3%
Taylor expanded in a around 0 72.1%
Final simplification81.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.2e+18)
(+ x (* z (/ y (- z a))))
(if (<= z 3.05e-133)
(+ x (/ y (/ a t)))
(if (<= z 1.45e+205) (+ x (/ (* (- z t) y) z)) (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e+18) {
tmp = x + (z * (y / (z - a)));
} else if (z <= 3.05e-133) {
tmp = x + (y / (a / t));
} else if (z <= 1.45e+205) {
tmp = x + (((z - t) * y) / z);
} else {
tmp = y + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.2d+18)) then
tmp = x + (z * (y / (z - a)))
else if (z <= 3.05d-133) then
tmp = x + (y / (a / t))
else if (z <= 1.45d+205) then
tmp = x + (((z - t) * y) / z)
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e+18) {
tmp = x + (z * (y / (z - a)));
} else if (z <= 3.05e-133) {
tmp = x + (y / (a / t));
} else if (z <= 1.45e+205) {
tmp = x + (((z - t) * y) / z);
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.2e+18: tmp = x + (z * (y / (z - a))) elif z <= 3.05e-133: tmp = x + (y / (a / t)) elif z <= 1.45e+205: tmp = x + (((z - t) * y) / z) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.2e+18) tmp = Float64(x + Float64(z * Float64(y / Float64(z - a)))); elseif (z <= 3.05e-133) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (z <= 1.45e+205) tmp = Float64(x + Float64(Float64(Float64(z - t) * y) / z)); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.2e+18) tmp = x + (z * (y / (z - a))); elseif (z <= 3.05e-133) tmp = x + (y / (a / t)); elseif (z <= 1.45e+205) tmp = x + (((z - t) * y) / z); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.2e+18], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.05e-133], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+205], N[(x + N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+18}:\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{-133}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+205}:\\
\;\;\;\;x + \frac{\left(z - t\right) \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if z < -1.2e18Initial program 99.9%
associate-*r/70.8%
Simplified70.8%
clear-num70.7%
associate-/r/70.8%
Applied egg-rr70.8%
Taylor expanded in t around 0 63.4%
+-commutative63.4%
associate-*l/84.1%
*-commutative84.1%
Simplified84.1%
if -1.2e18 < z < 3.0500000000000002e-133Initial program 94.3%
Taylor expanded in z around 0 82.7%
+-commutative82.7%
associate-/l*81.8%
associate-/r/84.4%
Simplified84.4%
*-commutative84.4%
clear-num84.4%
un-div-inv84.7%
Applied egg-rr84.7%
if 3.0500000000000002e-133 < z < 1.4500000000000001e205Initial program 97.3%
Taylor expanded in a around 0 72.1%
if 1.4500000000000001e205 < z Initial program 100.0%
Taylor expanded in z around inf 93.7%
+-commutative93.7%
Simplified93.7%
Final simplification82.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ y z)))))
(if (<= z -7e+20)
t_1
(if (<= z 5.6e-134)
(+ x (/ y (/ a t)))
(if (<= z 5.5e+215) t_1 (+ y x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * (y / z));
double tmp;
if (z <= -7e+20) {
tmp = t_1;
} else if (z <= 5.6e-134) {
tmp = x + (y / (a / t));
} else if (z <= 5.5e+215) {
tmp = t_1;
} else {
tmp = y + 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 - t) * (y / z))
if (z <= (-7d+20)) then
tmp = t_1
else if (z <= 5.6d-134) then
tmp = x + (y / (a / t))
else if (z <= 5.5d+215) then
tmp = t_1
else
tmp = y + 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 - t) * (y / z));
double tmp;
if (z <= -7e+20) {
tmp = t_1;
} else if (z <= 5.6e-134) {
tmp = x + (y / (a / t));
} else if (z <= 5.5e+215) {
tmp = t_1;
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * (y / z)) tmp = 0 if z <= -7e+20: tmp = t_1 elif z <= 5.6e-134: tmp = x + (y / (a / t)) elif z <= 5.5e+215: tmp = t_1 else: tmp = y + x return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(y / z))) tmp = 0.0 if (z <= -7e+20) tmp = t_1; elseif (z <= 5.6e-134) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (z <= 5.5e+215) tmp = t_1; else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - t) * (y / z)); tmp = 0.0; if (z <= -7e+20) tmp = t_1; elseif (z <= 5.6e-134) tmp = x + (y / (a / t)); elseif (z <= 5.5e+215) tmp = t_1; else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+20], t$95$1, If[LessEqual[z, 5.6e-134], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+215], t$95$1, N[(y + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -7 \cdot 10^{+20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-134}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+215}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if z < -7e20 or 5.5999999999999997e-134 < z < 5.5e215Initial program 98.5%
Taylor expanded in a around 0 68.6%
+-commutative68.6%
associate-/l*81.8%
associate-/r/80.3%
Simplified80.3%
if -7e20 < z < 5.5999999999999997e-134Initial program 94.3%
Taylor expanded in z around 0 82.7%
+-commutative82.7%
associate-/l*81.8%
associate-/r/84.4%
Simplified84.4%
*-commutative84.4%
clear-num84.4%
un-div-inv84.7%
Applied egg-rr84.7%
if 5.5e215 < z Initial program 100.0%
Taylor expanded in z around inf 96.7%
+-commutative96.7%
Simplified96.7%
Final simplification83.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.25e+21)
(+ y x)
(if (<= z 1.65e-132)
(+ x (/ y (/ a t)))
(if (<= z 6000.0) (- x (* t (/ y z))) (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e+21) {
tmp = y + x;
} else if (z <= 1.65e-132) {
tmp = x + (y / (a / t));
} else if (z <= 6000.0) {
tmp = x - (t * (y / z));
} else {
tmp = y + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.25d+21)) then
tmp = y + x
else if (z <= 1.65d-132) then
tmp = x + (y / (a / t))
else if (z <= 6000.0d0) then
tmp = x - (t * (y / z))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e+21) {
tmp = y + x;
} else if (z <= 1.65e-132) {
tmp = x + (y / (a / t));
} else if (z <= 6000.0) {
tmp = x - (t * (y / z));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.25e+21: tmp = y + x elif z <= 1.65e-132: tmp = x + (y / (a / t)) elif z <= 6000.0: tmp = x - (t * (y / z)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.25e+21) tmp = Float64(y + x); elseif (z <= 1.65e-132) tmp = Float64(x + Float64(y / Float64(a / t))); elseif (z <= 6000.0) tmp = Float64(x - Float64(t * Float64(y / z))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.25e+21) tmp = y + x; elseif (z <= 1.65e-132) tmp = x + (y / (a / t)); elseif (z <= 6000.0) tmp = x - (t * (y / z)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.25e+21], N[(y + x), $MachinePrecision], If[LessEqual[z, 1.65e-132], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6000.0], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+21}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-132}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\mathbf{elif}\;z \leq 6000:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if z < -1.25e21 or 6e3 < z Initial program 99.9%
Taylor expanded in z around inf 76.3%
+-commutative76.3%
Simplified76.3%
if -1.25e21 < z < 1.6499999999999999e-132Initial program 94.3%
Taylor expanded in z around 0 82.7%
+-commutative82.7%
associate-/l*81.8%
associate-/r/84.4%
Simplified84.4%
*-commutative84.4%
clear-num84.4%
un-div-inv84.7%
Applied egg-rr84.7%
if 1.6499999999999999e-132 < z < 6e3Initial program 93.9%
Taylor expanded in t around inf 81.6%
associate-*r/81.6%
associate-*r*81.6%
mul-1-neg81.6%
Simplified81.6%
Taylor expanded in z around inf 75.2%
mul-1-neg75.2%
unsub-neg75.2%
associate-*r/75.3%
Simplified75.3%
Final simplification79.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -8.2e+15) (not (<= z 1.65e-132))) (+ x (/ y (/ z (- z t)))) (+ x (/ y (/ a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8.2e+15) || !(z <= 1.65e-132)) {
tmp = x + (y / (z / (z - t)));
} else {
tmp = x + (y / (a / 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.2d+15)) .or. (.not. (z <= 1.65d-132))) then
tmp = x + (y / (z / (z - t)))
else
tmp = x + (y / (a / 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.2e+15) || !(z <= 1.65e-132)) {
tmp = x + (y / (z / (z - t)));
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -8.2e+15) or not (z <= 1.65e-132): tmp = x + (y / (z / (z - t))) else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -8.2e+15) || !(z <= 1.65e-132)) tmp = Float64(x + Float64(y / Float64(z / Float64(z - t)))); else tmp = Float64(x + Float64(y / Float64(a / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -8.2e+15) || ~((z <= 1.65e-132))) tmp = x + (y / (z / (z - t))); else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -8.2e+15], N[Not[LessEqual[z, 1.65e-132]], $MachinePrecision]], N[(x + N[(y / N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+15} \lor \neg \left(z \leq 1.65 \cdot 10^{-132}\right):\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if z < -8.2e15 or 1.6499999999999999e-132 < z Initial program 98.7%
Taylor expanded in a around 0 63.8%
+-commutative63.8%
associate-/l*84.3%
Simplified84.3%
if -8.2e15 < z < 1.6499999999999999e-132Initial program 94.3%
Taylor expanded in z around 0 82.7%
+-commutative82.7%
associate-/l*81.8%
associate-/r/84.4%
Simplified84.4%
*-commutative84.4%
clear-num84.4%
un-div-inv84.7%
Applied egg-rr84.7%
Final simplification84.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4e+59) (not (<= t 4.8e-31))) (- x (* t (/ y (- z a)))) (+ x (/ y (/ (- z a) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4e+59) || !(t <= 4.8e-31)) {
tmp = x - (t * (y / (z - a)));
} else {
tmp = 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 ((t <= (-4d+59)) .or. (.not. (t <= 4.8d-31))) then
tmp = x - (t * (y / (z - a)))
else
tmp = 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 ((t <= -4e+59) || !(t <= 4.8e-31)) {
tmp = x - (t * (y / (z - a)));
} else {
tmp = x + (y / ((z - a) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4e+59) or not (t <= 4.8e-31): tmp = x - (t * (y / (z - a))) else: tmp = x + (y / ((z - a) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4e+59) || !(t <= 4.8e-31)) tmp = Float64(x - Float64(t * Float64(y / Float64(z - a)))); else tmp = Float64(x + Float64(y / Float64(Float64(z - a) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4e+59) || ~((t <= 4.8e-31))) tmp = x - (t * (y / (z - a))); else tmp = x + (y / ((z - a) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4e+59], N[Not[LessEqual[t, 4.8e-31]], $MachinePrecision]], N[(x - N[(t * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+59} \lor \neg \left(t \leq 4.8 \cdot 10^{-31}\right):\\
\;\;\;\;x - t \cdot \frac{y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\
\end{array}
\end{array}
if t < -3.99999999999999989e59 or 4.8e-31 < t Initial program 94.1%
Taylor expanded in t around inf 76.9%
associate-*r/76.9%
associate-*r*76.9%
mul-1-neg76.9%
Simplified76.9%
Taylor expanded in x around 0 76.9%
mul-1-neg76.9%
associate-*r/87.9%
distribute-lft-neg-in87.9%
cancel-sign-sub-inv87.9%
Simplified87.9%
if -3.99999999999999989e59 < t < 4.8e-31Initial program 99.9%
Taylor expanded in t around 0 74.7%
+-commutative74.7%
associate-/l*91.7%
Simplified91.7%
Final simplification89.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.5e+17) (not (<= z 2.2e-25))) (+ y x) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.5e+17) || !(z <= 2.2e-25)) {
tmp = y + x;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.5d+17)) .or. (.not. (z <= 2.2d-25))) then
tmp = y + x
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.5e+17) || !(z <= 2.2e-25)) {
tmp = y + x;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.5e+17) or not (z <= 2.2e-25): tmp = y + x else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.5e+17) || !(z <= 2.2e-25)) tmp = Float64(y + x); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.5e+17) || ~((z <= 2.2e-25))) tmp = y + x; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.5e+17], N[Not[LessEqual[z, 2.2e-25]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+17} \lor \neg \left(z \leq 2.2 \cdot 10^{-25}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -2.5e17 or 2.2000000000000002e-25 < z Initial program 99.9%
Taylor expanded in z around inf 76.1%
+-commutative76.1%
Simplified76.1%
if -2.5e17 < z < 2.2000000000000002e-25Initial program 93.8%
associate-*r/93.7%
Simplified93.7%
clear-num93.7%
associate-/r/93.7%
Applied egg-rr93.7%
Taylor expanded in z around 0 75.9%
associate-*r/75.8%
Simplified75.8%
Final simplification75.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.1e+17) (not (<= z 1.2e-41))) (+ y x) (+ x (/ (* t y) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.1e+17) || !(z <= 1.2e-41)) {
tmp = y + x;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.1d+17)) .or. (.not. (z <= 1.2d-41))) then
tmp = y + x
else
tmp = x + ((t * y) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.1e+17) || !(z <= 1.2e-41)) {
tmp = y + x;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.1e+17) or not (z <= 1.2e-41): tmp = y + x else: tmp = x + ((t * y) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.1e+17) || !(z <= 1.2e-41)) tmp = Float64(y + x); else tmp = Float64(x + Float64(Float64(t * y) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.1e+17) || ~((z <= 1.2e-41))) tmp = y + x; else tmp = x + ((t * y) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.1e+17], N[Not[LessEqual[z, 1.2e-41]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+17} \lor \neg \left(z \leq 1.2 \cdot 10^{-41}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\end{array}
\end{array}
if z < -2.1e17 or 1.20000000000000011e-41 < z Initial program 99.9%
Taylor expanded in z around inf 75.8%
+-commutative75.8%
Simplified75.8%
if -2.1e17 < z < 1.20000000000000011e-41Initial program 93.7%
Taylor expanded in z around 0 76.8%
Final simplification76.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7e+16) (not (<= z 8.2e-26))) (+ y x) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7e+16) || !(z <= 8.2e-26)) {
tmp = y + x;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-7d+16)) .or. (.not. (z <= 8.2d-26))) then
tmp = y + x
else
tmp = x + (y * (t / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7e+16) || !(z <= 8.2e-26)) {
tmp = y + x;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7e+16) or not (z <= 8.2e-26): tmp = y + x else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7e+16) || !(z <= 8.2e-26)) tmp = Float64(y + x); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7e+16) || ~((z <= 8.2e-26))) tmp = y + x; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7e+16], N[Not[LessEqual[z, 8.2e-26]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+16} \lor \neg \left(z \leq 8.2 \cdot 10^{-26}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -7e16 or 8.1999999999999997e-26 < z Initial program 99.9%
Taylor expanded in z around inf 76.1%
+-commutative76.1%
Simplified76.1%
if -7e16 < z < 8.1999999999999997e-26Initial program 93.8%
Taylor expanded in z around 0 75.9%
+-commutative75.9%
associate-/l*75.9%
associate-/r/78.0%
Simplified78.0%
Final simplification77.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.1e+16) (not (<= z 3.9e-25))) (+ y x) (+ x (/ y (/ a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.1e+16) || !(z <= 3.9e-25)) {
tmp = y + x;
} else {
tmp = x + (y / (a / 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.1d+16)) .or. (.not. (z <= 3.9d-25))) then
tmp = y + x
else
tmp = x + (y / (a / 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.1e+16) || !(z <= 3.9e-25)) {
tmp = y + x;
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.1e+16) or not (z <= 3.9e-25): tmp = y + x else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.1e+16) || !(z <= 3.9e-25)) tmp = Float64(y + x); else tmp = Float64(x + Float64(y / Float64(a / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.1e+16) || ~((z <= 3.9e-25))) tmp = y + x; else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.1e+16], N[Not[LessEqual[z, 3.9e-25]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \cdot 10^{+16} \lor \neg \left(z \leq 3.9 \cdot 10^{-25}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if z < -1.1e16 or 3.9e-25 < z Initial program 99.9%
Taylor expanded in z around inf 76.1%
+-commutative76.1%
Simplified76.1%
if -1.1e16 < z < 3.9e-25Initial program 93.8%
Taylor expanded in z around 0 75.9%
+-commutative75.9%
associate-/l*75.9%
associate-/r/78.0%
Simplified78.0%
*-commutative78.0%
clear-num78.0%
un-div-inv78.2%
Applied egg-rr78.2%
Final simplification77.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -8.5e+150) (* y (/ t a)) (if (<= t 2.3e+252) (+ y x) (* y (- (/ t z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.5e+150) {
tmp = y * (t / a);
} else if (t <= 2.3e+252) {
tmp = y + x;
} else {
tmp = y * -(t / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-8.5d+150)) then
tmp = y * (t / a)
else if (t <= 2.3d+252) then
tmp = y + x
else
tmp = y * -(t / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.5e+150) {
tmp = y * (t / a);
} else if (t <= 2.3e+252) {
tmp = y + x;
} else {
tmp = y * -(t / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -8.5e+150: tmp = y * (t / a) elif t <= 2.3e+252: tmp = y + x else: tmp = y * -(t / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -8.5e+150) tmp = Float64(y * Float64(t / a)); elseif (t <= 2.3e+252) tmp = Float64(y + x); else tmp = Float64(y * Float64(-Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -8.5e+150) tmp = y * (t / a); elseif (t <= 2.3e+252) tmp = y + x; else tmp = y * -(t / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -8.5e+150], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+252], N[(y + x), $MachinePrecision], N[(y * (-N[(t / z), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{+150}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+252}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-\frac{t}{z}\right)\\
\end{array}
\end{array}
if t < -8.4999999999999999e150Initial program 89.8%
Taylor expanded in t around inf 77.1%
associate-*r/77.1%
associate-*r*77.1%
mul-1-neg77.1%
Simplified77.1%
Taylor expanded in x around 0 77.1%
mul-1-neg77.1%
associate-*r/92.3%
distribute-lft-neg-in92.3%
cancel-sign-sub-inv92.3%
Simplified92.3%
Taylor expanded in x around 0 55.8%
neg-mul-155.8%
associate-/l*66.5%
distribute-frac-neg66.5%
associate-/r/60.8%
Simplified60.8%
Taylor expanded in z around 0 45.2%
if -8.4999999999999999e150 < t < 2.3e252Initial program 99.0%
Taylor expanded in z around inf 69.7%
+-commutative69.7%
Simplified69.7%
if 2.3e252 < t Initial program 85.6%
Taylor expanded in t around inf 77.5%
associate-*r/77.5%
associate-*r*77.5%
mul-1-neg77.5%
Simplified77.5%
Taylor expanded in x around 0 77.5%
mul-1-neg77.5%
associate-*r/84.8%
distribute-lft-neg-in84.8%
cancel-sign-sub-inv84.8%
Simplified84.8%
Taylor expanded in x around 0 63.1%
neg-mul-163.1%
associate-/l*70.5%
distribute-frac-neg70.5%
associate-/r/63.6%
Simplified63.6%
Taylor expanded in z around inf 62.7%
associate-*r/62.7%
neg-mul-162.7%
Simplified62.7%
Final simplification65.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.7e+153) (* y (/ t a)) (+ y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+153) {
tmp = y * (t / a);
} else {
tmp = y + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.7d+153)) then
tmp = y * (t / a)
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e+153) {
tmp = y * (t / a);
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e+153: tmp = y * (t / a) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e+153) tmp = Float64(y * Float64(t / a)); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e+153) tmp = y * (t / a); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e+153], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+153}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -1.6999999999999999e153Initial program 89.8%
Taylor expanded in t around inf 77.1%
associate-*r/77.1%
associate-*r*77.1%
mul-1-neg77.1%
Simplified77.1%
Taylor expanded in x around 0 77.1%
mul-1-neg77.1%
associate-*r/92.3%
distribute-lft-neg-in92.3%
cancel-sign-sub-inv92.3%
Simplified92.3%
Taylor expanded in x around 0 55.8%
neg-mul-155.8%
associate-/l*66.5%
distribute-frac-neg66.5%
associate-/r/60.8%
Simplified60.8%
Taylor expanded in z around 0 45.2%
if -1.6999999999999999e153 < t Initial program 98.2%
Taylor expanded in z around inf 67.1%
+-commutative67.1%
Simplified67.1%
Final simplification63.9%
(FPCore (x y z t a) :precision binary64 (+ y x))
double code(double x, double y, double z, double t, double a) {
return y + x;
}
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 = y + x
end function
public static double code(double x, double y, double z, double t, double a) {
return y + x;
}
def code(x, y, z, t, a): return y + x
function code(x, y, z, t, a) return Float64(y + x) end
function tmp = code(x, y, z, t, a) tmp = y + x; end
code[x_, y_, z_, t_, a_] := N[(y + x), $MachinePrecision]
\begin{array}{l}
\\
y + x
\end{array}
Initial program 97.0%
Taylor expanded in z around inf 61.1%
+-commutative61.1%
Simplified61.1%
Final simplification61.1%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 97.0%
Taylor expanded in x around inf 46.6%
Final simplification46.6%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - 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 = x + (y / ((z - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
herbie shell --seed 2023310
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))