
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.7e+78)
(+ t (* (/ (- y a) z) (- x t)))
(if (<= z 2.2e+71)
(+ x (* (- t x) (/ (- y z) (- a z))))
(+ t (* (- y a) (/ (- x t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e+78) {
tmp = t + (((y - a) / z) * (x - t));
} else if (z <= 2.2e+71) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = t + ((y - a) * ((x - 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 (z <= (-2.7d+78)) then
tmp = t + (((y - a) / z) * (x - t))
else if (z <= 2.2d+71) then
tmp = x + ((t - x) * ((y - z) / (a - z)))
else
tmp = t + ((y - a) * ((x - 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 (z <= -2.7e+78) {
tmp = t + (((y - a) / z) * (x - t));
} else if (z <= 2.2e+71) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = t + ((y - a) * ((x - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.7e+78: tmp = t + (((y - a) / z) * (x - t)) elif z <= 2.2e+71: tmp = x + ((t - x) * ((y - z) / (a - z))) else: tmp = t + ((y - a) * ((x - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.7e+78) tmp = Float64(t + Float64(Float64(Float64(y - a) / z) * Float64(x - t))); elseif (z <= 2.2e+71) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))); else tmp = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.7e+78) tmp = t + (((y - a) / z) * (x - t)); elseif (z <= 2.2e+71) tmp = x + ((t - x) * ((y - z) / (a - z))); else tmp = t + ((y - a) * ((x - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.7e+78], N[(t + N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+71], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+78}:\\
\;\;\;\;t + \frac{y - a}{z} \cdot \left(x - t\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+71}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\
\end{array}
\end{array}
if z < -2.70000000000000004e78Initial program 38.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6474.3%
Simplified74.3%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.5%
Applied egg-rr90.5%
if -2.70000000000000004e78 < z < 2.19999999999999995e71Initial program 90.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6496.7%
Applied egg-rr96.7%
if 2.19999999999999995e71 < z Initial program 33.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6468.5%
Simplified68.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6489.3%
Applied egg-rr89.3%
Final simplification93.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4e+14)
(+ t (/ (* y (- x t)) z))
(if (<= z 1.4e-53)
(+ x (* (- y z) (/ (- t x) a)))
(if (<= z 1.8e+59) (/ (* y (- t x)) (- a z)) (* t (/ (- y z) (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4e+14) {
tmp = t + ((y * (x - t)) / z);
} else if (z <= 1.4e-53) {
tmp = x + ((y - z) * ((t - x) / a));
} else if (z <= 1.8e+59) {
tmp = (y * (t - x)) / (a - z);
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-4d+14)) then
tmp = t + ((y * (x - t)) / z)
else if (z <= 1.4d-53) then
tmp = x + ((y - z) * ((t - x) / a))
else if (z <= 1.8d+59) then
tmp = (y * (t - x)) / (a - z)
else
tmp = t * ((y - z) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4e+14) {
tmp = t + ((y * (x - t)) / z);
} else if (z <= 1.4e-53) {
tmp = x + ((y - z) * ((t - x) / a));
} else if (z <= 1.8e+59) {
tmp = (y * (t - x)) / (a - z);
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4e+14: tmp = t + ((y * (x - t)) / z) elif z <= 1.4e-53: tmp = x + ((y - z) * ((t - x) / a)) elif z <= 1.8e+59: tmp = (y * (t - x)) / (a - z) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4e+14) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); elseif (z <= 1.4e-53) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))); elseif (z <= 1.8e+59) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4e+14) tmp = t + ((y * (x - t)) / z); elseif (z <= 1.4e-53) tmp = x + ((y - z) * ((t - x) / a)); elseif (z <= 1.8e+59) tmp = (y * (t - x)) / (a - z); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4e+14], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e-53], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+59], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+14}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-53}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+59}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if z < -4e14Initial program 49.0%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6473.7%
Simplified73.7%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6473.7%
Simplified73.7%
if -4e14 < z < 1.39999999999999993e-53Initial program 91.2%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6481.3%
Simplified81.3%
if 1.39999999999999993e-53 < z < 1.7999999999999999e59Initial program 83.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6469.8%
Simplified69.8%
if 1.7999999999999999e59 < z Initial program 35.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.8%
Simplified41.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.2%
Applied egg-rr67.2%
Final simplification75.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (* y (- x t)) z))))
(if (<= z -3.3e+14)
t_1
(if (<= z 1.05e-64)
(+ x (* (- t x) (/ y a)))
(if (<= z 6e+186) t_1 (* t (/ (- y z) (- a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((y * (x - t)) / z);
double tmp;
if (z <= -3.3e+14) {
tmp = t_1;
} else if (z <= 1.05e-64) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 6e+186) {
tmp = t_1;
} else {
tmp = t * ((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) :: t_1
real(8) :: tmp
t_1 = t + ((y * (x - t)) / z)
if (z <= (-3.3d+14)) then
tmp = t_1
else if (z <= 1.05d-64) then
tmp = x + ((t - x) * (y / a))
else if (z <= 6d+186) then
tmp = t_1
else
tmp = t * ((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 t_1 = t + ((y * (x - t)) / z);
double tmp;
if (z <= -3.3e+14) {
tmp = t_1;
} else if (z <= 1.05e-64) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 6e+186) {
tmp = t_1;
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((y * (x - t)) / z) tmp = 0 if z <= -3.3e+14: tmp = t_1 elif z <= 1.05e-64: tmp = x + ((t - x) * (y / a)) elif z <= 6e+186: tmp = t_1 else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(y * Float64(x - t)) / z)) tmp = 0.0 if (z <= -3.3e+14) tmp = t_1; elseif (z <= 1.05e-64) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 6e+186) tmp = t_1; else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((y * (x - t)) / z); tmp = 0.0; if (z <= -3.3e+14) tmp = t_1; elseif (z <= 1.05e-64) tmp = x + ((t - x) * (y / a)); elseif (z <= 6e+186) tmp = t_1; else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+14], t$95$1, If[LessEqual[z, 1.05e-64], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e+186], t$95$1, N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-64}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if z < -3.3e14 or 1.05000000000000006e-64 < z < 5.99999999999999964e186Initial program 60.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6470.6%
Simplified70.6%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6468.1%
Simplified68.1%
if -3.3e14 < z < 1.05000000000000006e-64Initial program 91.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6496.6%
Applied egg-rr96.6%
Taylor expanded in z around 0
/-lowering-/.f6477.4%
Simplified77.4%
if 5.99999999999999964e186 < z Initial program 11.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6430.5%
Simplified30.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6474.9%
Applied egg-rr74.9%
Final simplification73.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.55e+164)
t
(if (<= z -0.0014)
(* y (- (/ x z) (/ t z)))
(if (<= z 2.9e+72) (* x (- 1.0 (/ y (- a z)))) (* t (- 1.0 (/ y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.55e+164) {
tmp = t;
} else if (z <= -0.0014) {
tmp = y * ((x / z) - (t / z));
} else if (z <= 2.9e+72) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.55d+164)) then
tmp = t
else if (z <= (-0.0014d0)) then
tmp = y * ((x / z) - (t / z))
else if (z <= 2.9d+72) then
tmp = x * (1.0d0 - (y / (a - z)))
else
tmp = t * (1.0d0 - (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.55e+164) {
tmp = t;
} else if (z <= -0.0014) {
tmp = y * ((x / z) - (t / z));
} else if (z <= 2.9e+72) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.55e+164: tmp = t elif z <= -0.0014: tmp = y * ((x / z) - (t / z)) elif z <= 2.9e+72: tmp = x * (1.0 - (y / (a - z))) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.55e+164) tmp = t; elseif (z <= -0.0014) tmp = Float64(y * Float64(Float64(x / z) - Float64(t / z))); elseif (z <= 2.9e+72) tmp = Float64(x * Float64(1.0 - Float64(y / Float64(a - z)))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.55e+164) tmp = t; elseif (z <= -0.0014) tmp = y * ((x / z) - (t / z)); elseif (z <= 2.9e+72) tmp = x * (1.0 - (y / (a - z))); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.55e+164], t, If[LessEqual[z, -0.0014], N[(y * N[(N[(x / z), $MachinePrecision] - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+72], N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+164}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -0.0014:\\
\;\;\;\;y \cdot \left(\frac{x}{z} - \frac{t}{z}\right)\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+72}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -1.5500000000000001e164Initial program 37.1%
Taylor expanded in z around inf
Simplified61.3%
if -1.5500000000000001e164 < z < -0.00139999999999999999Initial program 66.5%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6464.9%
Simplified64.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6461.0%
Simplified61.0%
if -0.00139999999999999999 < z < 2.90000000000000017e72Initial program 89.7%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.0%
Applied egg-rr95.0%
Taylor expanded in y around inf
Simplified85.1%
Taylor expanded in t around 0
mul-1-negN/A
*-rgt-identityN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6461.7%
Simplified61.7%
if 2.90000000000000017e72 < z Initial program 33.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.5%
Simplified41.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.7%
Applied egg-rr67.7%
Taylor expanded in a around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
div-subN/A
*-inversesN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6462.5%
Simplified62.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= t -2e-61)
t_1
(if (<= t -2.45e-237)
(+ t x)
(if (<= t 1.06e-98) (* (/ (- y a) z) x) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (t <= -2e-61) {
tmp = t_1;
} else if (t <= -2.45e-237) {
tmp = t + x;
} else if (t <= 1.06e-98) {
tmp = ((y - a) / z) * x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
if (t <= (-2d-61)) then
tmp = t_1
else if (t <= (-2.45d-237)) then
tmp = t + x
else if (t <= 1.06d-98) then
tmp = ((y - a) / z) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (t <= -2e-61) {
tmp = t_1;
} else if (t <= -2.45e-237) {
tmp = t + x;
} else if (t <= 1.06e-98) {
tmp = ((y - a) / z) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if t <= -2e-61: tmp = t_1 elif t <= -2.45e-237: tmp = t + x elif t <= 1.06e-98: tmp = ((y - a) / z) * x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (t <= -2e-61) tmp = t_1; elseif (t <= -2.45e-237) tmp = Float64(t + x); elseif (t <= 1.06e-98) tmp = Float64(Float64(Float64(y - a) / z) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (t <= -2e-61) tmp = t_1; elseif (t <= -2.45e-237) tmp = t + x; elseif (t <= 1.06e-98) tmp = ((y - a) / z) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-61], t$95$1, If[LessEqual[t, -2.45e-237], N[(t + x), $MachinePrecision], If[LessEqual[t, 1.06e-98], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{-237}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;t \leq 1.06 \cdot 10^{-98}:\\
\;\;\;\;\frac{y - a}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.0000000000000001e-61 or 1.0600000000000001e-98 < t Initial program 70.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.4%
Simplified54.4%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.3%
Applied egg-rr70.3%
Taylor expanded in a around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
div-subN/A
*-inversesN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6448.5%
Simplified48.5%
if -2.0000000000000001e-61 < t < -2.45e-237Initial program 78.8%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6478.2%
Applied egg-rr78.2%
Taylor expanded in z around inf
--lowering--.f6411.8%
Simplified11.8%
Taylor expanded in t around inf
Simplified41.9%
if -2.45e-237 < t < 1.0600000000000001e-98Initial program 52.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.0%
Simplified63.0%
Taylor expanded in t around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6456.5%
Simplified56.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6463.1%
Applied egg-rr63.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= t -1.85e-59)
t_1
(if (<= t -2.8e-237)
(+ t x)
(if (<= t 1.8e-98) (* (- y a) (/ x z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (t <= -1.85e-59) {
tmp = t_1;
} else if (t <= -2.8e-237) {
tmp = t + x;
} else if (t <= 1.8e-98) {
tmp = (y - a) * (x / 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 = t * (1.0d0 - (y / z))
if (t <= (-1.85d-59)) then
tmp = t_1
else if (t <= (-2.8d-237)) then
tmp = t + x
else if (t <= 1.8d-98) then
tmp = (y - a) * (x / 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 = t * (1.0 - (y / z));
double tmp;
if (t <= -1.85e-59) {
tmp = t_1;
} else if (t <= -2.8e-237) {
tmp = t + x;
} else if (t <= 1.8e-98) {
tmp = (y - a) * (x / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if t <= -1.85e-59: tmp = t_1 elif t <= -2.8e-237: tmp = t + x elif t <= 1.8e-98: tmp = (y - a) * (x / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (t <= -1.85e-59) tmp = t_1; elseif (t <= -2.8e-237) tmp = Float64(t + x); elseif (t <= 1.8e-98) tmp = Float64(Float64(y - a) * Float64(x / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (t <= -1.85e-59) tmp = t_1; elseif (t <= -2.8e-237) tmp = t + x; elseif (t <= 1.8e-98) tmp = (y - a) * (x / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.85e-59], t$95$1, If[LessEqual[t, -2.8e-237], N[(t + x), $MachinePrecision], If[LessEqual[t, 1.8e-98], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;t \leq -1.85 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-237}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-98}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.85e-59 or 1.8000000000000001e-98 < t Initial program 70.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.4%
Simplified54.4%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.3%
Applied egg-rr70.3%
Taylor expanded in a around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
div-subN/A
*-inversesN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6448.5%
Simplified48.5%
if -1.85e-59 < t < -2.79999999999999997e-237Initial program 78.8%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6478.2%
Applied egg-rr78.2%
Taylor expanded in z around inf
--lowering--.f6411.8%
Simplified11.8%
Taylor expanded in t around inf
Simplified41.9%
if -2.79999999999999997e-237 < t < 1.8000000000000001e-98Initial program 52.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.0%
Simplified63.0%
Taylor expanded in t around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6456.5%
Simplified56.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6458.4%
Applied egg-rr58.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= t -1.7e-58)
t_1
(if (<= t -2.2e-244) (+ t x) (if (<= t 6.4e-100) (/ (* y x) z) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (t <= -1.7e-58) {
tmp = t_1;
} else if (t <= -2.2e-244) {
tmp = t + x;
} else if (t <= 6.4e-100) {
tmp = (y * x) / 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 = t * (1.0d0 - (y / z))
if (t <= (-1.7d-58)) then
tmp = t_1
else if (t <= (-2.2d-244)) then
tmp = t + x
else if (t <= 6.4d-100) then
tmp = (y * x) / 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 = t * (1.0 - (y / z));
double tmp;
if (t <= -1.7e-58) {
tmp = t_1;
} else if (t <= -2.2e-244) {
tmp = t + x;
} else if (t <= 6.4e-100) {
tmp = (y * x) / z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if t <= -1.7e-58: tmp = t_1 elif t <= -2.2e-244: tmp = t + x elif t <= 6.4e-100: tmp = (y * x) / z else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (t <= -1.7e-58) tmp = t_1; elseif (t <= -2.2e-244) tmp = Float64(t + x); elseif (t <= 6.4e-100) tmp = Float64(Float64(y * x) / z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (t <= -1.7e-58) tmp = t_1; elseif (t <= -2.2e-244) tmp = t + x; elseif (t <= 6.4e-100) tmp = (y * x) / z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-58], t$95$1, If[LessEqual[t, -2.2e-244], N[(t + x), $MachinePrecision], If[LessEqual[t, 6.4e-100], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-244}:\\
\;\;\;\;t + x\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{-100}:\\
\;\;\;\;\frac{y \cdot x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.69999999999999987e-58 or 6.40000000000000033e-100 < t Initial program 70.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.1%
Simplified54.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.9%
Applied egg-rr69.9%
Taylor expanded in a around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
div-subN/A
*-inversesN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6448.2%
Simplified48.2%
if -1.69999999999999987e-58 < t < -2.19999999999999985e-244Initial program 78.8%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6478.2%
Applied egg-rr78.2%
Taylor expanded in z around inf
--lowering--.f6411.8%
Simplified11.8%
Taylor expanded in t around inf
Simplified41.9%
if -2.19999999999999985e-244 < t < 6.40000000000000033e-100Initial program 51.2%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6464.1%
Simplified64.1%
Taylor expanded in t around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6457.4%
Simplified57.4%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-lowering-*.f6449.9%
Simplified49.9%
Final simplification47.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.15e+37)
(+ t (* (/ (- y a) z) (- x t)))
(if (<= z 8.6e+70)
(+ x (/ y (/ (- a z) (- t x))))
(+ t (* (- y a) (/ (- x t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+37) {
tmp = t + (((y - a) / z) * (x - t));
} else if (z <= 8.6e+70) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t + ((y - a) * ((x - 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 (z <= (-1.15d+37)) then
tmp = t + (((y - a) / z) * (x - t))
else if (z <= 8.6d+70) then
tmp = x + (y / ((a - z) / (t - x)))
else
tmp = t + ((y - a) * ((x - 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 (z <= -1.15e+37) {
tmp = t + (((y - a) / z) * (x - t));
} else if (z <= 8.6e+70) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t + ((y - a) * ((x - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.15e+37: tmp = t + (((y - a) / z) * (x - t)) elif z <= 8.6e+70: tmp = x + (y / ((a - z) / (t - x))) else: tmp = t + ((y - a) * ((x - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e+37) tmp = Float64(t + Float64(Float64(Float64(y - a) / z) * Float64(x - t))); elseif (z <= 8.6e+70) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x)))); else tmp = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.15e+37) tmp = t + (((y - a) / z) * (x - t)); elseif (z <= 8.6e+70) tmp = x + (y / ((a - z) / (t - x))); else tmp = t + ((y - a) * ((x - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+37], N[(t + N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+70], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+37}:\\
\;\;\;\;t + \frac{y - a}{z} \cdot \left(x - t\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+70}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\
\end{array}
\end{array}
if z < -1.15000000000000001e37Initial program 47.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6474.1%
Simplified74.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.0%
Applied egg-rr88.0%
if -1.15000000000000001e37 < z < 8.6000000000000002e70Initial program 89.5%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.2%
Applied egg-rr95.2%
Taylor expanded in y around inf
Simplified84.9%
if 8.6000000000000002e70 < z Initial program 33.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6468.5%
Simplified68.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6489.3%
Applied egg-rr89.3%
Final simplification86.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- y a) (/ (- x t) z)))))
(if (<= z -2e+36)
t_1
(if (<= z 2.6e+71) (+ x (/ y (/ (- a z) (- t x)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((y - a) * ((x - t) / z));
double tmp;
if (z <= -2e+36) {
tmp = t_1;
} else if (z <= 2.6e+71) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((y - a) * ((x - t) / z))
if (z <= (-2d+36)) then
tmp = t_1
else if (z <= 2.6d+71) then
tmp = x + (y / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((y - a) * ((x - t) / z));
double tmp;
if (z <= -2e+36) {
tmp = t_1;
} else if (z <= 2.6e+71) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((y - a) * ((x - t) / z)) tmp = 0 if z <= -2e+36: tmp = t_1 elif z <= 2.6e+71: tmp = x + (y / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z))) tmp = 0.0 if (z <= -2e+36) tmp = t_1; elseif (z <= 2.6e+71) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((y - a) * ((x - t) / z)); tmp = 0.0; if (z <= -2e+36) tmp = t_1; elseif (z <= 2.6e+71) tmp = x + (y / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+36], t$95$1, If[LessEqual[z, 2.6e+71], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(y - a\right) \cdot \frac{x - t}{z}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+71}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.00000000000000008e36 or 2.59999999999999991e71 < z Initial program 39.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6470.9%
Simplified70.9%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6486.3%
Applied egg-rr86.3%
if -2.00000000000000008e36 < z < 2.59999999999999991e71Initial program 89.5%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.2%
Applied egg-rr95.2%
Taylor expanded in y around inf
Simplified84.9%
Final simplification85.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.9e+37)
(+ t (/ (* y (- x t)) z))
(if (<= z 1e+68)
(+ x (/ y (/ (- a z) (- t x))))
(* t (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.9e+37) {
tmp = t + ((y * (x - t)) / z);
} else if (z <= 1e+68) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.9d+37)) then
tmp = t + ((y * (x - t)) / z)
else if (z <= 1d+68) then
tmp = x + (y / ((a - z) / (t - x)))
else
tmp = t * ((y - z) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.9e+37) {
tmp = t + ((y * (x - t)) / z);
} else if (z <= 1e+68) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.9e+37: tmp = t + ((y * (x - t)) / z) elif z <= 1e+68: tmp = x + (y / ((a - z) / (t - x))) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.9e+37) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); elseif (z <= 1e+68) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x)))); else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.9e+37) tmp = t + ((y * (x - t)) / z); elseif (z <= 1e+68) tmp = x + (y / ((a - z) / (t - x))); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.9e+37], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+68], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+37}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;z \leq 10^{+68}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if z < -3.8999999999999999e37Initial program 47.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6474.1%
Simplified74.1%
Taylor expanded in a around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6474.0%
Simplified74.0%
if -3.8999999999999999e37 < z < 9.99999999999999953e67Initial program 89.5%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.2%
Applied egg-rr95.2%
Taylor expanded in y around inf
Simplified85.4%
if 9.99999999999999953e67 < z Initial program 34.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6442.4%
Simplified42.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6468.2%
Applied egg-rr68.2%
Final simplification78.8%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (- 1.0 (/ y (- a z)))))) (if (<= x -3.3e+36) t_1 (if (<= x 2.8e-9) (* t (/ (- y z) (- a z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / (a - z)));
double tmp;
if (x <= -3.3e+36) {
tmp = t_1;
} else if (x <= 2.8e-9) {
tmp = t * ((y - z) / (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 * (1.0d0 - (y / (a - z)))
if (x <= (-3.3d+36)) then
tmp = t_1
else if (x <= 2.8d-9) then
tmp = t * ((y - z) / (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 * (1.0 - (y / (a - z)));
double tmp;
if (x <= -3.3e+36) {
tmp = t_1;
} else if (x <= 2.8e-9) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / (a - z))) tmp = 0 if x <= -3.3e+36: tmp = t_1 elif x <= 2.8e-9: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / Float64(a - z)))) tmp = 0.0 if (x <= -3.3e+36) tmp = t_1; elseif (x <= 2.8e-9) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / (a - z))); tmp = 0.0; if (x <= -3.3e+36) tmp = t_1; elseif (x <= 2.8e-9) tmp = t * ((y - z) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+36], t$95$1, If[LessEqual[x, 2.8e-9], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a - z}\right)\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{-9}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.2999999999999999e36 or 2.79999999999999984e-9 < x Initial program 61.5%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6474.7%
Applied egg-rr74.7%
Taylor expanded in y around inf
Simplified67.3%
Taylor expanded in t around 0
mul-1-negN/A
*-rgt-identityN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6463.1%
Simplified63.1%
if -3.2999999999999999e36 < x < 2.79999999999999984e-9Initial program 72.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6457.7%
Simplified57.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6471.9%
Applied egg-rr71.9%
Final simplification67.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.2e+164) t (if (<= z 2e+71) (* x (- 1.0 (/ y (- a z)))) (* t (- 1.0 (/ y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.2e+164) {
tmp = t;
} else if (z <= 2e+71) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.2d+164)) then
tmp = t
else if (z <= 2d+71) then
tmp = x * (1.0d0 - (y / (a - z)))
else
tmp = t * (1.0d0 - (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.2e+164) {
tmp = t;
} else if (z <= 2e+71) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.2e+164: tmp = t elif z <= 2e+71: tmp = x * (1.0 - (y / (a - z))) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.2e+164) tmp = t; elseif (z <= 2e+71) tmp = Float64(x * Float64(1.0 - Float64(y / Float64(a - z)))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.2e+164) tmp = t; elseif (z <= 2e+71) tmp = x * (1.0 - (y / (a - z))); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.2e+164], t, If[LessEqual[z, 2e+71], N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+164}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -2.20000000000000006e164Initial program 37.1%
Taylor expanded in z around inf
Simplified61.3%
if -2.20000000000000006e164 < z < 2.0000000000000001e71Initial program 85.9%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
Taylor expanded in y around inf
Simplified80.8%
Taylor expanded in t around 0
mul-1-negN/A
*-rgt-identityN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6457.5%
Simplified57.5%
if 2.0000000000000001e71 < z Initial program 33.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.5%
Simplified41.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.7%
Applied egg-rr67.7%
Taylor expanded in a around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
div-subN/A
*-inversesN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6462.5%
Simplified62.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -2e+15) x (if (<= a 1.7e-184) (/ (* y x) z) (if (<= a 4e+184) (+ t x) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2e+15) {
tmp = x;
} else if (a <= 1.7e-184) {
tmp = (y * x) / z;
} else if (a <= 4e+184) {
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 (a <= (-2d+15)) then
tmp = x
else if (a <= 1.7d-184) then
tmp = (y * x) / z
else if (a <= 4d+184) 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 (a <= -2e+15) {
tmp = x;
} else if (a <= 1.7e-184) {
tmp = (y * x) / z;
} else if (a <= 4e+184) {
tmp = t + x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2e+15: tmp = x elif a <= 1.7e-184: tmp = (y * x) / z elif a <= 4e+184: tmp = t + x else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2e+15) tmp = x; elseif (a <= 1.7e-184) tmp = Float64(Float64(y * x) / z); elseif (a <= 4e+184) tmp = Float64(t + x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2e+15) tmp = x; elseif (a <= 1.7e-184) tmp = (y * x) / z; elseif (a <= 4e+184) tmp = t + x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2e+15], x, If[LessEqual[a, 1.7e-184], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 4e+184], N[(t + x), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{+15}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-184}:\\
\;\;\;\;\frac{y \cdot x}{z}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+184}:\\
\;\;\;\;t + x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2e15 or 4.00000000000000007e184 < a Initial program 66.8%
Taylor expanded in a around inf
Simplified44.6%
if -2e15 < a < 1.70000000000000002e-184Initial program 66.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6474.8%
Simplified74.8%
Taylor expanded in t around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6440.3%
Simplified40.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-lowering-*.f6438.7%
Simplified38.7%
if 1.70000000000000002e-184 < a < 4.00000000000000007e184Initial program 68.4%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.3%
Applied egg-rr82.3%
Taylor expanded in z around inf
--lowering--.f6423.5%
Simplified23.5%
Taylor expanded in t around inf
Simplified38.4%
Final simplification40.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.7e+38) t (if (<= z 4.5e+71) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.7e+38) {
tmp = t;
} else if (z <= 4.5e+71) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.7d+38)) then
tmp = t
else if (z <= 4.5d+71) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.7e+38) {
tmp = t;
} else if (z <= 4.5e+71) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.7e+38: tmp = t elif z <= 4.5e+71: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.7e+38) tmp = t; elseif (z <= 4.5e+71) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.7e+38) tmp = t; elseif (z <= 4.5e+71) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.7e+38], t, If[LessEqual[z, 4.5e+71], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+38}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+71}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.7000000000000001e38 or 4.50000000000000043e71 < z Initial program 39.3%
Taylor expanded in z around inf
Simplified46.4%
if -3.7000000000000001e38 < z < 4.50000000000000043e71Initial program 89.5%
Taylor expanded in a around inf
Simplified30.1%
(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 67.3%
Taylor expanded in z around inf
Simplified25.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024160
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
(+ x (/ (* (- y z) (- t x)) (- a z))))