
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) t) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (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) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * t) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * t) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot t}{a - z}
\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) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (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) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * t) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * t) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot t}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* t (- y z)) (- a z))))
(if (<= t_1 (- INFINITY))
(+ x (* (- y z) (/ t (- a z))))
(if (<= t_1 2e+264) (+ x t_1) (+ x (/ (- y z) (/ (- a z) t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t * (y - z)) / (a - z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + ((y - z) * (t / (a - z)));
} else if (t_1 <= 2e+264) {
tmp = x + t_1;
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t * (y - z)) / (a - z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((y - z) * (t / (a - z)));
} else if (t_1 <= 2e+264) {
tmp = x + t_1;
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t * (y - z)) / (a - z) tmp = 0 if t_1 <= -math.inf: tmp = x + ((y - z) * (t / (a - z))) elif t_1 <= 2e+264: tmp = x + t_1 else: tmp = x + ((y - z) / ((a - z) / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t * Float64(y - z)) / Float64(a - z)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))); elseif (t_1 <= 2e+264) tmp = Float64(x + t_1); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t * (y - z)) / (a - z); tmp = 0.0; if (t_1 <= -Inf) tmp = x + ((y - z) * (t / (a - z))); elseif (t_1 <= 2e+264) tmp = x + t_1; else tmp = x + ((y - z) / ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+264], N[(x + t$95$1), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t \cdot \left(y - z\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+264}:\\
\;\;\;\;x + t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -inf.0Initial program 45.0%
associate-/l*99.9%
Simplified99.9%
if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 2.00000000000000009e264Initial program 99.4%
if 2.00000000000000009e264 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) Initial program 38.6%
associate-/l*99.7%
Simplified99.7%
clear-num99.7%
un-div-inv100.0%
Applied egg-rr100.0%
Final simplification99.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* t (- y z)) (- a z))))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+283)))
(+ x (* (- y z) (/ t (- a z))))
(+ x t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t * (y - z)) / (a - z);
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+283)) {
tmp = x + ((y - z) * (t / (a - z)));
} else {
tmp = x + t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t * (y - z)) / (a - z);
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 1e+283)) {
tmp = x + ((y - z) * (t / (a - z)));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t * (y - z)) / (a - z) tmp = 0 if (t_1 <= -math.inf) or not (t_1 <= 1e+283): tmp = x + ((y - z) * (t / (a - z))) else: tmp = x + t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t * Float64(y - z)) / Float64(a - z)) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+283)) tmp = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t * (y - z)) / (a - z); tmp = 0.0; if ((t_1 <= -Inf) || ~((t_1 <= 1e+283))) tmp = x + ((y - z) * (t / (a - z))); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+283]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t \cdot \left(y - z\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+283}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -inf.0 or 9.99999999999999955e282 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) Initial program 39.8%
associate-/l*99.8%
Simplified99.8%
if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 9.99999999999999955e282Initial program 99.4%
Final simplification99.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.45e+163)
(+ x t)
(if (<= z -6.3e-198)
(+ x (* y (/ t (- a z))))
(if (<= z 3.9e+43)
(+ x (/ t (/ a (- y z))))
(if (<= z 6e+118) (+ x (/ y (/ (- a z) t))) (+ x t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.45e+163) {
tmp = x + t;
} else if (z <= -6.3e-198) {
tmp = x + (y * (t / (a - z)));
} else if (z <= 3.9e+43) {
tmp = x + (t / (a / (y - z)));
} else if (z <= 6e+118) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = x + t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.45d+163)) then
tmp = x + t
else if (z <= (-6.3d-198)) then
tmp = x + (y * (t / (a - z)))
else if (z <= 3.9d+43) then
tmp = x + (t / (a / (y - z)))
else if (z <= 6d+118) then
tmp = x + (y / ((a - z) / t))
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.45e+163) {
tmp = x + t;
} else if (z <= -6.3e-198) {
tmp = x + (y * (t / (a - z)));
} else if (z <= 3.9e+43) {
tmp = x + (t / (a / (y - z)));
} else if (z <= 6e+118) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.45e+163: tmp = x + t elif z <= -6.3e-198: tmp = x + (y * (t / (a - z))) elif z <= 3.9e+43: tmp = x + (t / (a / (y - z))) elif z <= 6e+118: tmp = x + (y / ((a - z) / t)) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.45e+163) tmp = Float64(x + t); elseif (z <= -6.3e-198) tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); elseif (z <= 3.9e+43) tmp = Float64(x + Float64(t / Float64(a / Float64(y - z)))); elseif (z <= 6e+118) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.45e+163) tmp = x + t; elseif (z <= -6.3e-198) tmp = x + (y * (t / (a - z))); elseif (z <= 3.9e+43) tmp = x + (t / (a / (y - z))); elseif (z <= 6e+118) tmp = x + (y / ((a - z) / t)); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.45e+163], N[(x + t), $MachinePrecision], If[LessEqual[z, -6.3e-198], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+43], N[(x + N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e+118], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.45 \cdot 10^{+163}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -6.3 \cdot 10^{-198}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+43}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{+118}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -2.45e163 or 6e118 < z Initial program 63.4%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in z around inf 91.8%
if -2.45e163 < z < -6.30000000000000015e-198Initial program 95.3%
associate-/l*97.8%
Simplified97.8%
Taylor expanded in y around inf 89.3%
if -6.30000000000000015e-198 < z < 3.9000000000000001e43Initial program 94.6%
associate-/l*93.2%
Simplified93.2%
Taylor expanded in a around inf 84.9%
+-commutative84.9%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in t around 0 84.9%
associate-*l/85.7%
associate-/r/90.2%
Simplified90.2%
if 3.9000000000000001e43 < z < 6e118Initial program 70.0%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 70.0%
clear-num70.2%
un-div-inv70.2%
Applied egg-rr70.2%
Final simplification89.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.1e+169)
(+ x t)
(if (<= z -9.2e-204)
(+ x (* y (/ t (- a z))))
(if (<= z 3.9e+43)
(+ x (* t (/ (- y z) a)))
(if (<= z 6.2e+129) (+ x (/ y (/ (- a z) t))) (+ x t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.1e+169) {
tmp = x + t;
} else if (z <= -9.2e-204) {
tmp = x + (y * (t / (a - z)));
} else if (z <= 3.9e+43) {
tmp = x + (t * ((y - z) / a));
} else if (z <= 6.2e+129) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = x + 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+169)) then
tmp = x + t
else if (z <= (-9.2d-204)) then
tmp = x + (y * (t / (a - z)))
else if (z <= 3.9d+43) then
tmp = x + (t * ((y - z) / a))
else if (z <= 6.2d+129) then
tmp = x + (y / ((a - z) / t))
else
tmp = x + 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+169) {
tmp = x + t;
} else if (z <= -9.2e-204) {
tmp = x + (y * (t / (a - z)));
} else if (z <= 3.9e+43) {
tmp = x + (t * ((y - z) / a));
} else if (z <= 6.2e+129) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.1e+169: tmp = x + t elif z <= -9.2e-204: tmp = x + (y * (t / (a - z))) elif z <= 3.9e+43: tmp = x + (t * ((y - z) / a)) elif z <= 6.2e+129: tmp = x + (y / ((a - z) / t)) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.1e+169) tmp = Float64(x + t); elseif (z <= -9.2e-204) tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); elseif (z <= 3.9e+43) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / a))); elseif (z <= 6.2e+129) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.1e+169) tmp = x + t; elseif (z <= -9.2e-204) tmp = x + (y * (t / (a - z))); elseif (z <= 3.9e+43) tmp = x + (t * ((y - z) / a)); elseif (z <= 6.2e+129) tmp = x + (y / ((a - z) / t)); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.1e+169], N[(x + t), $MachinePrecision], If[LessEqual[z, -9.2e-204], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+43], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+129], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \cdot 10^{+169}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -9.2 \cdot 10^{-204}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+43}:\\
\;\;\;\;x + t \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+129}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -1.1e169 or 6.1999999999999999e129 < z Initial program 63.4%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in z around inf 91.8%
if -1.1e169 < z < -9.1999999999999997e-204Initial program 95.3%
associate-/l*97.8%
Simplified97.8%
Taylor expanded in y around inf 89.3%
if -9.1999999999999997e-204 < z < 3.9000000000000001e43Initial program 94.6%
associate-/l*93.2%
Simplified93.2%
Taylor expanded in a around inf 84.9%
+-commutative84.9%
associate-/l*90.1%
Simplified90.1%
if 3.9000000000000001e43 < z < 6.1999999999999999e129Initial program 70.0%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 70.0%
clear-num70.2%
un-div-inv70.2%
Applied egg-rr70.2%
Final simplification89.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -7.5e+166)
(+ x t)
(if (<= z -6e+21)
(- x (* t (/ y z)))
(if (<= z 2.45e-70) (+ x (/ t (/ a y))) (+ x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.5e+166) {
tmp = x + t;
} else if (z <= -6e+21) {
tmp = x - (t * (y / z));
} else if (z <= 2.45e-70) {
tmp = x + (t / (a / y));
} else {
tmp = x + 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 <= (-7.5d+166)) then
tmp = x + t
else if (z <= (-6d+21)) then
tmp = x - (t * (y / z))
else if (z <= 2.45d-70) then
tmp = x + (t / (a / y))
else
tmp = x + 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 <= -7.5e+166) {
tmp = x + t;
} else if (z <= -6e+21) {
tmp = x - (t * (y / z));
} else if (z <= 2.45e-70) {
tmp = x + (t / (a / y));
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.5e+166: tmp = x + t elif z <= -6e+21: tmp = x - (t * (y / z)) elif z <= 2.45e-70: tmp = x + (t / (a / y)) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.5e+166) tmp = Float64(x + t); elseif (z <= -6e+21) tmp = Float64(x - Float64(t * Float64(y / z))); elseif (z <= 2.45e-70) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.5e+166) tmp = x + t; elseif (z <= -6e+21) tmp = x - (t * (y / z)); elseif (z <= 2.45e-70) tmp = x + (t / (a / y)); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.5e+166], N[(x + t), $MachinePrecision], If[LessEqual[z, -6e+21], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.45e-70], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+166}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -6 \cdot 10^{+21}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{-70}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -7.50000000000000029e166 or 2.45e-70 < z Initial program 68.8%
associate-/l*91.3%
Simplified91.3%
Taylor expanded in z around inf 83.4%
if -7.50000000000000029e166 < z < -6e21Initial program 91.3%
associate-/l*96.0%
Simplified96.0%
Taylor expanded in a around 0 84.7%
mul-1-neg84.7%
unsub-neg84.7%
associate-/l*93.3%
Simplified93.3%
Taylor expanded in y around inf 86.3%
if -6e21 < z < 2.45e-70Initial program 95.7%
associate-/l*94.7%
Simplified94.7%
Taylor expanded in z around 0 82.4%
+-commutative82.4%
associate-/l*85.7%
Simplified85.7%
clear-num85.7%
un-div-inv85.7%
Applied egg-rr85.7%
Final simplification84.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.6e+24) (not (<= z 7.5e-46))) (+ x (* t (/ (- z y) z))) (+ x (/ (* t y) (- a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.6e+24) || !(z <= 7.5e-46)) {
tmp = x + (t * ((z - y) / z));
} else {
tmp = x + ((t * y) / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.6d+24)) .or. (.not. (z <= 7.5d-46))) then
tmp = x + (t * ((z - y) / z))
else
tmp = x + ((t * y) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.6e+24) || !(z <= 7.5e-46)) {
tmp = x + (t * ((z - y) / z));
} else {
tmp = x + ((t * y) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.6e+24) or not (z <= 7.5e-46): tmp = x + (t * ((z - y) / z)) else: tmp = x + ((t * y) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.6e+24) || !(z <= 7.5e-46)) tmp = Float64(x + Float64(t * Float64(Float64(z - y) / z))); else tmp = Float64(x + Float64(Float64(t * y) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.6e+24) || ~((z <= 7.5e-46))) tmp = x + (t * ((z - y) / z)); else tmp = x + ((t * y) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.6e+24], N[Not[LessEqual[z, 7.5e-46]], $MachinePrecision]], N[(x + N[(t * N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t * y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+24} \lor \neg \left(z \leq 7.5 \cdot 10^{-46}\right):\\
\;\;\;\;x + t \cdot \frac{z - y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot y}{a - z}\\
\end{array}
\end{array}
if z < -1.5999999999999999e24 or 7.50000000000000027e-46 < z Initial program 74.7%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in a around 0 69.9%
mul-1-neg69.9%
unsub-neg69.9%
associate-/l*91.0%
Simplified91.0%
if -1.5999999999999999e24 < z < 7.50000000000000027e-46Initial program 95.9%
Taylor expanded in y around inf 90.3%
Final simplification90.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.25e+168) (not (<= z 4.9e+126))) (+ x t) (+ x (* y (/ t (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.25e+168) || !(z <= 4.9e+126)) {
tmp = x + t;
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.25d+168)) .or. (.not. (z <= 4.9d+126))) then
tmp = x + t
else
tmp = x + (y * (t / (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.25e+168) || !(z <= 4.9e+126)) {
tmp = x + t;
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.25e+168) or not (z <= 4.9e+126): tmp = x + t else: tmp = x + (y * (t / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.25e+168) || !(z <= 4.9e+126)) tmp = Float64(x + t); else tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.25e+168) || ~((z <= 4.9e+126))) tmp = x + t; else tmp = x + (y * (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.25e+168], N[Not[LessEqual[z, 4.9e+126]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+168} \lor \neg \left(z \leq 4.9 \cdot 10^{+126}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\end{array}
\end{array}
if z < -1.24999999999999992e168 or 4.90000000000000001e126 < z Initial program 63.4%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in z around inf 91.8%
if -1.24999999999999992e168 < z < 4.90000000000000001e126Initial program 92.7%
associate-/l*95.8%
Simplified95.8%
Taylor expanded in y around inf 85.4%
Final simplification87.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.4e+22) (not (<= z 2.45e-70))) (+ x t) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.4e+22) || !(z <= 2.45e-70)) {
tmp = x + t;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.4d+22)) .or. (.not. (z <= 2.45d-70))) then
tmp = x + t
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.4e+22) || !(z <= 2.45e-70)) {
tmp = x + t;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.4e+22) or not (z <= 2.45e-70): tmp = x + t else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.4e+22) || !(z <= 2.45e-70)) tmp = Float64(x + t); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.4e+22) || ~((z <= 2.45e-70))) tmp = x + t; else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.4e+22], N[Not[LessEqual[z, 2.45e-70]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+22} \lor \neg \left(z \leq 2.45 \cdot 10^{-70}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -1.4e22 or 2.45e-70 < z Initial program 75.6%
associate-/l*92.7%
Simplified92.7%
Taylor expanded in z around inf 80.4%
if -1.4e22 < z < 2.45e-70Initial program 95.7%
associate-/l*94.7%
Simplified94.7%
Taylor expanded in z around 0 82.4%
+-commutative82.4%
associate-/l*85.7%
Simplified85.7%
clear-num85.7%
un-div-inv85.7%
Applied egg-rr85.7%
Final simplification82.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.8e+21) (not (<= z 4.8e-73))) (+ x t) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.8e+21) || !(z <= 4.8e-73)) {
tmp = x + t;
} 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.8d+21)) .or. (.not. (z <= 4.8d-73))) then
tmp = x + t
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.8e+21) || !(z <= 4.8e-73)) {
tmp = x + t;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.8e+21) or not (z <= 4.8e-73): tmp = x + t else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.8e+21) || !(z <= 4.8e-73)) tmp = Float64(x + t); 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.8e+21) || ~((z <= 4.8e-73))) tmp = x + t; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.8e+21], N[Not[LessEqual[z, 4.8e-73]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+21} \lor \neg \left(z \leq 4.8 \cdot 10^{-73}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -2.8e21 or 4.80000000000000011e-73 < z Initial program 75.6%
associate-/l*92.7%
Simplified92.7%
Taylor expanded in z around inf 80.4%
if -2.8e21 < z < 4.80000000000000011e-73Initial program 95.7%
associate-/l*94.7%
Simplified94.7%
Taylor expanded in z around 0 82.4%
+-commutative82.4%
associate-/l*85.7%
Simplified85.7%
Final simplification82.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.8e+21) (not (<= z 3.25e-93))) (+ x t) (+ x (/ (* t y) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.8e+21) || !(z <= 3.25e-93)) {
tmp = x + t;
} 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 <= (-3.8d+21)) .or. (.not. (z <= 3.25d-93))) then
tmp = x + t
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 <= -3.8e+21) || !(z <= 3.25e-93)) {
tmp = x + t;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.8e+21) or not (z <= 3.25e-93): tmp = x + t else: tmp = x + ((t * y) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.8e+21) || !(z <= 3.25e-93)) tmp = Float64(x + t); 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 <= -3.8e+21) || ~((z <= 3.25e-93))) tmp = x + t; else tmp = x + ((t * y) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.8e+21], N[Not[LessEqual[z, 3.25e-93]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+21} \lor \neg \left(z \leq 3.25 \cdot 10^{-93}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\end{array}
\end{array}
if z < -3.8e21 or 3.25e-93 < z Initial program 75.4%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in z around inf 79.2%
if -3.8e21 < z < 3.25e-93Initial program 97.3%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in z around 0 84.9%
Final simplification81.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.95e+22) (not (<= z 2.2e-70))) (+ x t) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.95e+22) || !(z <= 2.2e-70)) {
tmp = x + t;
} 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 <= (-1.95d+22)) .or. (.not. (z <= 2.2d-70))) then
tmp = x + t
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 <= -1.95e+22) || !(z <= 2.2e-70)) {
tmp = x + t;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.95e+22) or not (z <= 2.2e-70): tmp = x + t else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.95e+22) || !(z <= 2.2e-70)) tmp = Float64(x + t); 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 <= -1.95e+22) || ~((z <= 2.2e-70))) tmp = x + t; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.95e+22], N[Not[LessEqual[z, 2.2e-70]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.95 \cdot 10^{+22} \lor \neg \left(z \leq 2.2 \cdot 10^{-70}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -1.9500000000000001e22 or 2.1999999999999999e-70 < z Initial program 75.6%
associate-/l*92.7%
Simplified92.7%
Taylor expanded in z around inf 80.4%
if -1.9500000000000001e22 < z < 2.1999999999999999e-70Initial program 95.7%
associate-/l*94.7%
Simplified94.7%
Taylor expanded in z around 0 82.4%
*-commutative82.4%
associate-/l*82.2%
Applied egg-rr82.2%
Final simplification81.2%
(FPCore (x y z t a) :precision binary64 (+ x (* t (* (/ -1.0 (- z a)) (- y z)))))
double code(double x, double y, double z, double t, double a) {
return x + (t * ((-1.0 / (z - a)) * (y - 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 + (t * (((-1.0d0) / (z - a)) * (y - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (t * ((-1.0 / (z - a)) * (y - z)));
}
def code(x, y, z, t, a): return x + (t * ((-1.0 / (z - a)) * (y - z)))
function code(x, y, z, t, a) return Float64(x + Float64(t * Float64(Float64(-1.0 / Float64(z - a)) * Float64(y - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + (t * ((-1.0 / (z - a)) * (y - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(t * N[(N[(-1.0 / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + t \cdot \left(\frac{-1}{z - a} \cdot \left(y - z\right)\right)
\end{array}
Initial program 84.5%
associate-*r/93.6%
*-commutative93.6%
div-inv93.6%
associate-*l*99.1%
Applied egg-rr99.1%
Final simplification99.1%
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ t (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * (t / (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 / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * (t / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * (t / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * (t / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t}{a - z}
\end{array}
Initial program 84.5%
associate-/l*93.6%
Simplified93.6%
(FPCore (x y z t a) :precision binary64 (if (<= a -9.5e+184) x (+ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+184) {
tmp = x;
} else {
tmp = x + 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 (a <= (-9.5d+184)) then
tmp = x
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+184) {
tmp = x;
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.5e+184: tmp = x else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.5e+184) tmp = x; else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.5e+184) tmp = x; else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.5e+184], x, N[(x + t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+184}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if a < -9.4999999999999995e184Initial program 88.5%
associate-/l*94.1%
Simplified94.1%
Taylor expanded in x around inf 77.0%
if -9.4999999999999995e184 < a Initial program 83.9%
associate-/l*93.5%
Simplified93.5%
Taylor expanded in z around inf 64.1%
(FPCore (x y z t a) :precision binary64 (if (<= t 1.55e+120) x t))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.55e+120) {
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 (t <= 1.55d+120) 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 (t <= 1.55e+120) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 1.55e+120: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 1.55e+120) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 1.55e+120) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 1.55e+120], x, t]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.55 \cdot 10^{+120}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if t < 1.54999999999999987e120Initial program 89.4%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in x around inf 58.9%
if 1.54999999999999987e120 < t Initial program 57.1%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in z around inf 47.2%
Taylor expanded in x around 0 35.8%
(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 84.5%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in z around inf 63.9%
Taylor expanded in x around 0 19.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y z) (- a z)) t))))
(if (< t -1.0682974490174067e-39)
t_1
(if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) / (a - z)) * t);
double tmp;
if (t < -1.0682974490174067e-39) {
tmp = t_1;
} else if (t < 3.9110949887586375e-141) {
tmp = x + (((y - z) * t) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) / (a - z)) * t)
if (t < (-1.0682974490174067d-39)) then
tmp = t_1
else if (t < 3.9110949887586375d-141) then
tmp = x + (((y - z) * t) / (a - z))
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 + (((y - z) / (a - z)) * t);
double tmp;
if (t < -1.0682974490174067e-39) {
tmp = t_1;
} else if (t < 3.9110949887586375e-141) {
tmp = x + (((y - z) * t) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) / (a - z)) * t) tmp = 0 if t < -1.0682974490174067e-39: tmp = t_1 elif t < 3.9110949887586375e-141: tmp = x + (((y - z) * t) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * t)) tmp = 0.0 if (t < -1.0682974490174067e-39) tmp = t_1; elseif (t < 3.9110949887586375e-141) tmp = Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) / (a - z)) * t); tmp = 0.0; if (t < -1.0682974490174067e-39) tmp = t_1; elseif (t < 3.9110949887586375e-141) tmp = x + (((y - z) * t) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.0682974490174067e-39], t$95$1, If[Less[t, 3.9110949887586375e-141], N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{a - z} \cdot t\\
\mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024111
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
:precision binary64
:alt
(if (< t -1.0682974490174067e-39) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t))))
(+ x (/ (* (- y z) t) (- a z))))