
(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 14 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 (* (- y z) t)) (t_2 (/ t_1 (- a z))))
(if (or (<= t_2 -2e+253) (not (<= t_2 2e+306)))
(+ x (* (- y z) (/ t (- a z))))
(- x (/ t_1 (- z a))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) * t;
double t_2 = t_1 / (a - z);
double tmp;
if ((t_2 <= -2e+253) || !(t_2 <= 2e+306)) {
tmp = x + ((y - z) * (t / (a - z)));
} else {
tmp = x - (t_1 / (z - a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y - z) * t
t_2 = t_1 / (a - z)
if ((t_2 <= (-2d+253)) .or. (.not. (t_2 <= 2d+306))) then
tmp = x + ((y - z) * (t / (a - z)))
else
tmp = x - (t_1 / (z - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) * t;
double t_2 = t_1 / (a - z);
double tmp;
if ((t_2 <= -2e+253) || !(t_2 <= 2e+306)) {
tmp = x + ((y - z) * (t / (a - z)));
} else {
tmp = x - (t_1 / (z - a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - z) * t t_2 = t_1 / (a - z) tmp = 0 if (t_2 <= -2e+253) or not (t_2 <= 2e+306): tmp = x + ((y - z) * (t / (a - z))) else: tmp = x - (t_1 / (z - a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - z) * t) t_2 = Float64(t_1 / Float64(a - z)) tmp = 0.0 if ((t_2 <= -2e+253) || !(t_2 <= 2e+306)) tmp = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))); else tmp = Float64(x - Float64(t_1 / Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - z) * t; t_2 = t_1 / (a - z); tmp = 0.0; if ((t_2 <= -2e+253) || ~((t_2 <= 2e+306))) tmp = x + ((y - z) * (t / (a - z))); else tmp = x - (t_1 / (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -2e+253], N[Not[LessEqual[t$95$2, 2e+306]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(t$95$1 / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot t\\
t_2 := \frac{t\_1}{a - z}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+253} \lor \neg \left(t\_2 \leq 2 \cdot 10^{+306}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{t\_1}{z - a}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -1.9999999999999999e253 or 2.00000000000000003e306 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) Initial program 44.1%
associate-/l*99.8%
Simplified99.8%
if -1.9999999999999999e253 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 2.00000000000000003e306Initial program 99.2%
Final simplification99.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.4e+127)
(+ t x)
(if (<= z -4.4e-42)
(- x (* y (/ t z)))
(if (<= z 6.6e-124)
(+ x (/ (* y t) a))
(if (<= z 2.05e+79) (- x (/ y (/ z t))) (+ t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.4e+127) {
tmp = t + x;
} else if (z <= -4.4e-42) {
tmp = x - (y * (t / z));
} else if (z <= 6.6e-124) {
tmp = x + ((y * t) / a);
} else if (z <= 2.05e+79) {
tmp = x - (y / (z / t));
} else {
tmp = t + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.4d+127)) then
tmp = t + x
else if (z <= (-4.4d-42)) then
tmp = x - (y * (t / z))
else if (z <= 6.6d-124) then
tmp = x + ((y * t) / a)
else if (z <= 2.05d+79) then
tmp = x - (y / (z / t))
else
tmp = t + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.4e+127) {
tmp = t + x;
} else if (z <= -4.4e-42) {
tmp = x - (y * (t / z));
} else if (z <= 6.6e-124) {
tmp = x + ((y * t) / a);
} else if (z <= 2.05e+79) {
tmp = x - (y / (z / t));
} else {
tmp = t + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.4e+127: tmp = t + x elif z <= -4.4e-42: tmp = x - (y * (t / z)) elif z <= 6.6e-124: tmp = x + ((y * t) / a) elif z <= 2.05e+79: tmp = x - (y / (z / t)) else: tmp = t + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.4e+127) tmp = Float64(t + x); elseif (z <= -4.4e-42) tmp = Float64(x - Float64(y * Float64(t / z))); elseif (z <= 6.6e-124) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 2.05e+79) tmp = Float64(x - Float64(y / Float64(z / t))); else tmp = Float64(t + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.4e+127) tmp = t + x; elseif (z <= -4.4e-42) tmp = x - (y * (t / z)); elseif (z <= 6.6e-124) tmp = x + ((y * t) / a); elseif (z <= 2.05e+79) tmp = x - (y / (z / t)); else tmp = t + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.4e+127], N[(t + x), $MachinePrecision], If[LessEqual[z, -4.4e-42], N[(x - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-124], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+79], N[(x - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+127}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{-42}:\\
\;\;\;\;x - y \cdot \frac{t}{z}\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-124}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+79}:\\
\;\;\;\;x - \frac{y}{\frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t + x\\
\end{array}
\end{array}
if z < -3.39999999999999977e127 or 2.05e79 < z Initial program 64.9%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in z around inf 84.7%
if -3.39999999999999977e127 < z < -4.4000000000000001e-42Initial program 91.9%
associate-/l*99.9%
Simplified99.9%
clear-num99.7%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 88.8%
Taylor expanded in a around 0 83.4%
neg-mul-183.4%
distribute-neg-frac283.4%
Simplified83.4%
Taylor expanded in y around 0 78.2%
associate-*r/78.2%
*-commutative78.2%
neg-mul-178.2%
distribute-lft-neg-in78.2%
associate-*r/83.6%
*-commutative83.6%
Simplified83.6%
if -4.4000000000000001e-42 < z < 6.59999999999999969e-124Initial program 96.5%
associate-/l*93.1%
Simplified93.1%
Taylor expanded in z around 0 81.3%
+-commutative81.3%
Simplified81.3%
if 6.59999999999999969e-124 < z < 2.05e79Initial program 95.0%
associate-/l*97.4%
Simplified97.4%
clear-num97.5%
un-div-inv97.6%
Applied egg-rr97.6%
Taylor expanded in y around inf 89.1%
Taylor expanded in a around 0 75.3%
neg-mul-175.3%
distribute-neg-frac275.3%
Simplified75.3%
Final simplification81.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y (/ t z)))))
(if (<= z -2.05e+128)
(+ t x)
(if (<= z -8.5e-43)
t_1
(if (<= z 3.1e-123)
(+ x (/ (* y t) a))
(if (<= z 1.05e+78) t_1 (+ t x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * (t / z));
double tmp;
if (z <= -2.05e+128) {
tmp = t + x;
} else if (z <= -8.5e-43) {
tmp = t_1;
} else if (z <= 3.1e-123) {
tmp = x + ((y * t) / a);
} else if (z <= 1.05e+78) {
tmp = t_1;
} else {
tmp = t + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y * (t / z))
if (z <= (-2.05d+128)) then
tmp = t + x
else if (z <= (-8.5d-43)) then
tmp = t_1
else if (z <= 3.1d-123) then
tmp = x + ((y * t) / a)
else if (z <= 1.05d+78) then
tmp = t_1
else
tmp = t + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * (t / z));
double tmp;
if (z <= -2.05e+128) {
tmp = t + x;
} else if (z <= -8.5e-43) {
tmp = t_1;
} else if (z <= 3.1e-123) {
tmp = x + ((y * t) / a);
} else if (z <= 1.05e+78) {
tmp = t_1;
} else {
tmp = t + x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * (t / z)) tmp = 0 if z <= -2.05e+128: tmp = t + x elif z <= -8.5e-43: tmp = t_1 elif z <= 3.1e-123: tmp = x + ((y * t) / a) elif z <= 1.05e+78: tmp = t_1 else: tmp = t + x return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y * Float64(t / z))) tmp = 0.0 if (z <= -2.05e+128) tmp = Float64(t + x); elseif (z <= -8.5e-43) tmp = t_1; elseif (z <= 3.1e-123) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 1.05e+78) tmp = t_1; else tmp = Float64(t + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y * (t / z)); tmp = 0.0; if (z <= -2.05e+128) tmp = t + x; elseif (z <= -8.5e-43) tmp = t_1; elseif (z <= 3.1e-123) tmp = x + ((y * t) / a); elseif (z <= 1.05e+78) tmp = t_1; else tmp = t + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e+128], N[(t + x), $MachinePrecision], If[LessEqual[z, -8.5e-43], t$95$1, If[LessEqual[z, 3.1e-123], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+78], t$95$1, N[(t + x), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot \frac{t}{z}\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+128}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-123}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + x\\
\end{array}
\end{array}
if z < -2.05000000000000006e128 or 1.05e78 < z Initial program 64.9%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in z around inf 84.7%
if -2.05000000000000006e128 < z < -8.50000000000000056e-43 or 3.09999999999999998e-123 < z < 1.05e78Initial program 93.6%
associate-/l*98.6%
Simplified98.6%
clear-num98.5%
un-div-inv98.6%
Applied egg-rr98.6%
Taylor expanded in y around inf 88.9%
Taylor expanded in a around 0 79.1%
neg-mul-179.1%
distribute-neg-frac279.1%
Simplified79.1%
Taylor expanded in y around 0 76.6%
associate-*r/76.6%
*-commutative76.6%
neg-mul-176.6%
distribute-lft-neg-in76.6%
associate-*r/79.1%
*-commutative79.1%
Simplified79.1%
if -8.50000000000000056e-43 < z < 3.09999999999999998e-123Initial program 96.5%
associate-/l*93.1%
Simplified93.1%
Taylor expanded in z around 0 81.3%
+-commutative81.3%
Simplified81.3%
Final simplification81.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -9.5e+129)
(+ t x)
(if (<= z -1.8e-44)
(- x (* t (/ y z)))
(if (<= z 1.15e+67) (+ x (/ (* y t) a)) (+ t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.5e+129) {
tmp = t + x;
} else if (z <= -1.8e-44) {
tmp = x - (t * (y / z));
} else if (z <= 1.15e+67) {
tmp = x + ((y * t) / a);
} else {
tmp = t + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-9.5d+129)) then
tmp = t + x
else if (z <= (-1.8d-44)) then
tmp = x - (t * (y / z))
else if (z <= 1.15d+67) then
tmp = x + ((y * t) / a)
else
tmp = t + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.5e+129) {
tmp = t + x;
} else if (z <= -1.8e-44) {
tmp = x - (t * (y / z));
} else if (z <= 1.15e+67) {
tmp = x + ((y * t) / a);
} else {
tmp = t + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9.5e+129: tmp = t + x elif z <= -1.8e-44: tmp = x - (t * (y / z)) elif z <= 1.15e+67: tmp = x + ((y * t) / a) else: tmp = t + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9.5e+129) tmp = Float64(t + x); elseif (z <= -1.8e-44) tmp = Float64(x - Float64(t * Float64(y / z))); elseif (z <= 1.15e+67) tmp = Float64(x + Float64(Float64(y * t) / a)); else tmp = Float64(t + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9.5e+129) tmp = t + x; elseif (z <= -1.8e-44) tmp = x - (t * (y / z)); elseif (z <= 1.15e+67) tmp = x + ((y * t) / a); else tmp = t + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9.5e+129], N[(t + x), $MachinePrecision], If[LessEqual[z, -1.8e-44], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+67], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(t + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+129}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-44}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+67}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;t + x\\
\end{array}
\end{array}
if z < -9.5000000000000004e129 or 1.1499999999999999e67 < z Initial program 65.6%
associate-/l*93.9%
Simplified93.9%
Taylor expanded in z around inf 84.0%
if -9.5000000000000004e129 < z < -1.7999999999999999e-44Initial program 91.9%
associate-/l*99.9%
Simplified99.9%
clear-num99.7%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 88.8%
Taylor expanded in a around 0 78.2%
mul-1-neg78.2%
unsub-neg78.2%
associate-/l*83.4%
Simplified83.4%
if -1.7999999999999999e-44 < z < 1.1499999999999999e67Initial program 96.0%
associate-/l*94.3%
Simplified94.3%
Taylor expanded in z around 0 76.8%
+-commutative76.8%
Simplified76.8%
Final simplification80.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.45e+76) (not (<= z 1.2e+67))) (+ x (* t (/ (- z y) z))) (+ x (/ y (/ (- a z) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.45e+76) || !(z <= 1.2e+67)) {
tmp = x + (t * ((z - y) / z));
} else {
tmp = x + (y / ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.45d+76)) .or. (.not. (z <= 1.2d+67))) then
tmp = x + (t * ((z - y) / z))
else
tmp = x + (y / ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.45e+76) || !(z <= 1.2e+67)) {
tmp = x + (t * ((z - y) / z));
} else {
tmp = x + (y / ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.45e+76) or not (z <= 1.2e+67): tmp = x + (t * ((z - y) / z)) else: tmp = x + (y / ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.45e+76) || !(z <= 1.2e+67)) tmp = Float64(x + Float64(t * Float64(Float64(z - y) / z))); else tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.45e+76) || ~((z <= 1.2e+67))) tmp = x + (t * ((z - y) / z)); else tmp = x + (y / ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.45e+76], N[Not[LessEqual[z, 1.2e+67]], $MachinePrecision]], N[(x + N[(t * N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+76} \lor \neg \left(z \leq 1.2 \cdot 10^{+67}\right):\\
\;\;\;\;x + t \cdot \frac{z - y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\end{array}
\end{array}
if z < -1.4500000000000001e76 or 1.20000000000000001e67 < z Initial program 65.8%
associate-/l*94.3%
Simplified94.3%
Taylor expanded in a around 0 64.0%
mul-1-neg64.0%
unsub-neg64.0%
associate-/l*93.0%
Simplified93.0%
if -1.4500000000000001e76 < z < 1.20000000000000001e67Initial program 96.1%
associate-/l*95.3%
Simplified95.3%
clear-num95.3%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in y around inf 90.0%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (- a z))))
(if (or (<= y -4.8e-7) (not (<= y 8.2e+71)))
(+ x (* y t_1))
(- x (* z t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a - z);
double tmp;
if ((y <= -4.8e-7) || !(y <= 8.2e+71)) {
tmp = x + (y * t_1);
} else {
tmp = x - (z * 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 / (a - z)
if ((y <= (-4.8d-7)) .or. (.not. (y <= 8.2d+71))) then
tmp = x + (y * t_1)
else
tmp = x - (z * 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 / (a - z);
double tmp;
if ((y <= -4.8e-7) || !(y <= 8.2e+71)) {
tmp = x + (y * t_1);
} else {
tmp = x - (z * t_1);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a - z) tmp = 0 if (y <= -4.8e-7) or not (y <= 8.2e+71): tmp = x + (y * t_1) else: tmp = x - (z * t_1) return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a - z)) tmp = 0.0 if ((y <= -4.8e-7) || !(y <= 8.2e+71)) tmp = Float64(x + Float64(y * t_1)); else tmp = Float64(x - Float64(z * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a - z); tmp = 0.0; if ((y <= -4.8e-7) || ~((y <= 8.2e+71))) tmp = x + (y * t_1); else tmp = x - (z * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y, -4.8e-7], N[Not[LessEqual[y, 8.2e+71]], $MachinePrecision]], N[(x + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{a - z}\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{-7} \lor \neg \left(y \leq 8.2 \cdot 10^{+71}\right):\\
\;\;\;\;x + y \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot t\_1\\
\end{array}
\end{array}
if y < -4.79999999999999957e-7 or 8.2000000000000004e71 < y Initial program 87.0%
associate-/l*95.6%
Simplified95.6%
Taylor expanded in y around inf 91.8%
if -4.79999999999999957e-7 < y < 8.2000000000000004e71Initial program 82.7%
associate-/l*94.4%
Simplified94.4%
Taylor expanded in y around 0 75.0%
associate-*r/75.0%
mul-1-neg75.0%
distribute-rgt-neg-out75.0%
associate-*l/88.2%
*-commutative88.2%
distribute-lft-neg-out88.2%
distribute-rgt-neg-in88.2%
distribute-frac-neg288.2%
neg-sub088.2%
sub-neg88.2%
+-commutative88.2%
associate--r+88.2%
neg-sub088.2%
remove-double-neg88.2%
Simplified88.2%
Final simplification89.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.8e+129) (not (<= z 2.55e+79))) (+ t x) (+ x (* y (/ t (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.8e+129) || !(z <= 2.55e+79)) {
tmp = t + x;
} 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 <= (-7.8d+129)) .or. (.not. (z <= 2.55d+79))) then
tmp = t + x
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 <= -7.8e+129) || !(z <= 2.55e+79)) {
tmp = t + x;
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.8e+129) or not (z <= 2.55e+79): tmp = t + x else: tmp = x + (y * (t / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.8e+129) || !(z <= 2.55e+79)) tmp = Float64(t + x); 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 <= -7.8e+129) || ~((z <= 2.55e+79))) tmp = t + x; else tmp = x + (y * (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.8e+129], N[Not[LessEqual[z, 2.55e+79]], $MachinePrecision]], N[(t + x), $MachinePrecision], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{+129} \lor \neg \left(z \leq 2.55 \cdot 10^{+79}\right):\\
\;\;\;\;t + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\end{array}
\end{array}
if z < -7.7999999999999994e129 or 2.5500000000000001e79 < z Initial program 64.9%
associate-/l*93.8%
Simplified93.8%
Taylor expanded in z around inf 84.7%
if -7.7999999999999994e129 < z < 2.5500000000000001e79Initial program 95.2%
associate-/l*95.5%
Simplified95.5%
Taylor expanded in y around inf 89.3%
Final simplification87.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (- a z))))
(if (<= y -5.4e-7)
(+ x (/ (* y t) (- a z)))
(if (<= y 2.9e+73) (- x (* z t_1)) (+ x (* y t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a - z);
double tmp;
if (y <= -5.4e-7) {
tmp = x + ((y * t) / (a - z));
} else if (y <= 2.9e+73) {
tmp = x - (z * t_1);
} else {
tmp = x + (y * 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 / (a - z)
if (y <= (-5.4d-7)) then
tmp = x + ((y * t) / (a - z))
else if (y <= 2.9d+73) then
tmp = x - (z * t_1)
else
tmp = x + (y * 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 / (a - z);
double tmp;
if (y <= -5.4e-7) {
tmp = x + ((y * t) / (a - z));
} else if (y <= 2.9e+73) {
tmp = x - (z * t_1);
} else {
tmp = x + (y * t_1);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a - z) tmp = 0 if y <= -5.4e-7: tmp = x + ((y * t) / (a - z)) elif y <= 2.9e+73: tmp = x - (z * t_1) else: tmp = x + (y * t_1) return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a - z)) tmp = 0.0 if (y <= -5.4e-7) tmp = Float64(x + Float64(Float64(y * t) / Float64(a - z))); elseif (y <= 2.9e+73) tmp = Float64(x - Float64(z * t_1)); else tmp = Float64(x + Float64(y * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a - z); tmp = 0.0; if (y <= -5.4e-7) tmp = x + ((y * t) / (a - z)); elseif (y <= 2.9e+73) tmp = x - (z * t_1); else tmp = x + (y * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.4e-7], N[(x + N[(N[(y * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e+73], N[(x - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{a - z}\\
\mathbf{if}\;y \leq -5.4 \cdot 10^{-7}:\\
\;\;\;\;x + \frac{y \cdot t}{a - z}\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+73}:\\
\;\;\;\;x - z \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\_1\\
\end{array}
\end{array}
if y < -5.40000000000000018e-7Initial program 93.1%
Taylor expanded in y around inf 88.5%
if -5.40000000000000018e-7 < y < 2.9000000000000002e73Initial program 82.7%
associate-/l*94.4%
Simplified94.4%
Taylor expanded in y around 0 75.0%
associate-*r/75.0%
mul-1-neg75.0%
distribute-rgt-neg-out75.0%
associate-*l/88.2%
*-commutative88.2%
distribute-lft-neg-out88.2%
distribute-rgt-neg-in88.2%
distribute-frac-neg288.2%
neg-sub088.2%
sub-neg88.2%
+-commutative88.2%
associate--r+88.2%
neg-sub088.2%
remove-double-neg88.2%
Simplified88.2%
if 2.9000000000000002e73 < y Initial program 78.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 97.6%
Final simplification90.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (- a z))))
(if (<= y -2.05e-7)
(+ x (/ y (/ (- a z) t)))
(if (<= y 4.5e+72) (- x (* z t_1)) (+ x (* y t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a - z);
double tmp;
if (y <= -2.05e-7) {
tmp = x + (y / ((a - z) / t));
} else if (y <= 4.5e+72) {
tmp = x - (z * t_1);
} else {
tmp = x + (y * 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 / (a - z)
if (y <= (-2.05d-7)) then
tmp = x + (y / ((a - z) / t))
else if (y <= 4.5d+72) then
tmp = x - (z * t_1)
else
tmp = x + (y * 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 / (a - z);
double tmp;
if (y <= -2.05e-7) {
tmp = x + (y / ((a - z) / t));
} else if (y <= 4.5e+72) {
tmp = x - (z * t_1);
} else {
tmp = x + (y * t_1);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a - z) tmp = 0 if y <= -2.05e-7: tmp = x + (y / ((a - z) / t)) elif y <= 4.5e+72: tmp = x - (z * t_1) else: tmp = x + (y * t_1) return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a - z)) tmp = 0.0 if (y <= -2.05e-7) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); elseif (y <= 4.5e+72) tmp = Float64(x - Float64(z * t_1)); else tmp = Float64(x + Float64(y * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a - z); tmp = 0.0; if (y <= -2.05e-7) tmp = x + (y / ((a - z) / t)); elseif (y <= 4.5e+72) tmp = x - (z * t_1); else tmp = x + (y * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.05e-7], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+72], N[(x - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{a - z}\\
\mathbf{if}\;y \leq -2.05 \cdot 10^{-7}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+72}:\\
\;\;\;\;x - z \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\_1\\
\end{array}
\end{array}
if y < -2.05e-7Initial program 93.1%
associate-/l*92.4%
Simplified92.4%
clear-num92.3%
un-div-inv92.4%
Applied egg-rr92.4%
Taylor expanded in y around inf 87.5%
if -2.05e-7 < y < 4.4999999999999998e72Initial program 82.7%
associate-/l*94.4%
Simplified94.4%
Taylor expanded in y around 0 75.0%
associate-*r/75.0%
mul-1-neg75.0%
distribute-rgt-neg-out75.0%
associate-*l/88.2%
*-commutative88.2%
distribute-lft-neg-out88.2%
distribute-rgt-neg-in88.2%
distribute-frac-neg288.2%
neg-sub088.2%
sub-neg88.2%
+-commutative88.2%
associate--r+88.2%
neg-sub088.2%
remove-double-neg88.2%
Simplified88.2%
if 4.4999999999999998e72 < y Initial program 78.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around inf 97.6%
Final simplification89.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.8e+36) (not (<= z 2.1e+69))) (+ t x) (+ x (/ y (/ a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.8e+36) || !(z <= 2.1e+69)) {
tmp = t + 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 <= (-5.8d+36)) .or. (.not. (z <= 2.1d+69))) then
tmp = t + 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 <= -5.8e+36) || !(z <= 2.1e+69)) {
tmp = t + x;
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.8e+36) or not (z <= 2.1e+69): tmp = t + x else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.8e+36) || !(z <= 2.1e+69)) tmp = Float64(t + 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 <= -5.8e+36) || ~((z <= 2.1e+69))) tmp = t + x; else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.8e+36], N[Not[LessEqual[z, 2.1e+69]], $MachinePrecision]], N[(t + x), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+36} \lor \neg \left(z \leq 2.1 \cdot 10^{+69}\right):\\
\;\;\;\;t + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if z < -5.8e36 or 2.10000000000000015e69 < z Initial program 69.1%
associate-/l*94.8%
Simplified94.8%
Taylor expanded in z around inf 79.2%
if -5.8e36 < z < 2.10000000000000015e69Initial program 95.9%
associate-/l*95.0%
Simplified95.0%
clear-num95.0%
un-div-inv95.7%
Applied egg-rr95.7%
Taylor expanded in y around inf 89.3%
Taylor expanded in a around inf 74.5%
Final simplification76.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.2e+37) (not (<= z 1.15e+67))) (+ t x) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.2e+37) || !(z <= 1.15e+67)) {
tmp = t + 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.2d+37)) .or. (.not. (z <= 1.15d+67))) then
tmp = t + 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.2e+37) || !(z <= 1.15e+67)) {
tmp = t + x;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.2e+37) or not (z <= 1.15e+67): tmp = t + x else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.2e+37) || !(z <= 1.15e+67)) tmp = Float64(t + 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.2e+37) || ~((z <= 1.15e+67))) tmp = t + x; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.2e+37], N[Not[LessEqual[z, 1.15e+67]], $MachinePrecision]], N[(t + x), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+37} \lor \neg \left(z \leq 1.15 \cdot 10^{+67}\right):\\
\;\;\;\;t + x\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -2.2000000000000001e37 or 1.1499999999999999e67 < z Initial program 69.1%
associate-/l*94.8%
Simplified94.8%
Taylor expanded in z around inf 79.2%
if -2.2000000000000001e37 < z < 1.1499999999999999e67Initial program 95.9%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in z around 0 73.9%
associate-/l*73.8%
Simplified73.8%
Final simplification76.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -48000000000000.0) (not (<= z 1.1e-99))) (+ t x) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -48000000000000.0) || !(z <= 1.1e-99)) {
tmp = t + x;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-48000000000000.0d0)) .or. (.not. (z <= 1.1d-99))) then
tmp = t + x
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -48000000000000.0) || !(z <= 1.1e-99)) {
tmp = t + x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -48000000000000.0) or not (z <= 1.1e-99): tmp = t + x else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -48000000000000.0) || !(z <= 1.1e-99)) tmp = Float64(t + x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -48000000000000.0) || ~((z <= 1.1e-99))) tmp = t + x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -48000000000000.0], N[Not[LessEqual[z, 1.1e-99]], $MachinePrecision]], N[(t + x), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -48000000000000 \lor \neg \left(z \leq 1.1 \cdot 10^{-99}\right):\\
\;\;\;\;t + x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -4.8e13 or 1.10000000000000002e-99 < z Initial program 76.7%
associate-/l*95.5%
Simplified95.5%
Taylor expanded in z around inf 73.8%
if -4.8e13 < z < 1.10000000000000002e-99Initial program 95.3%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in x around inf 47.4%
Final simplification62.4%
(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.8%
associate-/l*94.9%
Simplified94.9%
(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 84.8%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in x around inf 49.4%
(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 2024186
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -10682974490174067/10000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 312887599100691/80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t)))))
(+ x (/ (* (- y z) t) (- a z))))