
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -1.95e+171) (not (<= t 1.35e+64)))
(*
y
(+
(+
(fma -1.0 (/ z t) (fma -1.0 (* a (/ x (* t y))) (/ a t)))
(* x (/ z (* t y))))
1.0))
(fma (- y x) (/ (- z t) (- a t)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.95e+171) || !(t <= 1.35e+64)) {
tmp = y * ((fma(-1.0, (z / t), fma(-1.0, (a * (x / (t * y))), (a / t))) + (x * (z / (t * y)))) + 1.0);
} else {
tmp = fma((y - x), ((z - t) / (a - t)), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.95e+171) || !(t <= 1.35e+64)) tmp = Float64(y * Float64(Float64(fma(-1.0, Float64(z / t), fma(-1.0, Float64(a * Float64(x / Float64(t * y))), Float64(a / t))) + Float64(x * Float64(z / Float64(t * y)))) + 1.0)); else tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.95e+171], N[Not[LessEqual[t, 1.35e+64]], $MachinePrecision]], N[(y * N[(N[(N[(-1.0 * N[(z / t), $MachinePrecision] + N[(-1.0 * N[(a * N[(x / N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z / N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+171} \lor \neg \left(t \leq 1.35 \cdot 10^{+64}\right):\\
\;\;\;\;y \cdot \left(\left(\mathsf{fma}\left(-1, \frac{z}{t}, \mathsf{fma}\left(-1, a \cdot \frac{x}{t \cdot y}, \frac{a}{t}\right)\right) + x \cdot \frac{z}{t \cdot y}\right) + 1\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\end{array}
\end{array}
if t < -1.95e171 or 1.35e64 < t Initial program 30.1%
+-commutative30.1%
associate-/l*56.8%
fma-define56.8%
Simplified56.8%
Taylor expanded in y around inf 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
+-commutative51.8%
associate-/r*50.1%
associate-/l*41.8%
*-lft-identity41.8%
times-frac44.8%
/-rgt-identity44.8%
Simplified44.8%
Taylor expanded in t around inf 85.4%
associate--l+85.4%
fma-define85.4%
fma-define85.4%
associate-/l*92.2%
mul-1-neg92.2%
associate-/l*90.7%
Simplified90.7%
if -1.95e171 < t < 1.35e64Initial program 81.2%
+-commutative81.2%
associate-/l*93.3%
fma-define93.3%
Simplified93.3%
Final simplification92.6%
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -1.2e+178) (not (<= t 7.5e+63)))
(*
y
(+
(+ (- (- (/ a t) (/ (* a x) (* t y))) (/ z t)) 1.0)
(/ (* z x) (* t y))))
(fma (- y x) (/ (- z t) (- a t)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.2e+178) || !(t <= 7.5e+63)) {
tmp = y * (((((a / t) - ((a * x) / (t * y))) - (z / t)) + 1.0) + ((z * x) / (t * y)));
} else {
tmp = fma((y - x), ((z - t) / (a - t)), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.2e+178) || !(t <= 7.5e+63)) tmp = Float64(y * Float64(Float64(Float64(Float64(Float64(a / t) - Float64(Float64(a * x) / Float64(t * y))) - Float64(z / t)) + 1.0) + Float64(Float64(z * x) / Float64(t * y)))); else tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.2e+178], N[Not[LessEqual[t, 7.5e+63]], $MachinePrecision]], N[(y * N[(N[(N[(N[(N[(a / t), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + N[(N[(z * x), $MachinePrecision] / N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+178} \lor \neg \left(t \leq 7.5 \cdot 10^{+63}\right):\\
\;\;\;\;y \cdot \left(\left(\left(\left(\frac{a}{t} - \frac{a \cdot x}{t \cdot y}\right) - \frac{z}{t}\right) + 1\right) + \frac{z \cdot x}{t \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\end{array}
\end{array}
if t < -1.2e178 or 7.5000000000000005e63 < t Initial program 30.1%
+-commutative30.1%
associate-/l*56.8%
fma-define56.8%
Simplified56.8%
Taylor expanded in y around inf 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
+-commutative51.8%
associate-/r*50.1%
associate-/l*41.8%
*-lft-identity41.8%
times-frac44.8%
/-rgt-identity44.8%
Simplified44.8%
Taylor expanded in t around inf 85.4%
if -1.2e178 < t < 7.5000000000000005e63Initial program 81.2%
+-commutative81.2%
associate-/l*93.3%
fma-define93.3%
Simplified93.3%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -2.8e+172) (not (<= t 3.8e+26)))
(*
y
(+
(+ (- (- (/ a t) (/ (* a x) (* t y))) (/ z t)) 1.0)
(/ (* z x) (* t y))))
(+ x (* (- z t) (* (- y x) (/ -1.0 (- t a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.8e+172) || !(t <= 3.8e+26)) {
tmp = y * (((((a / t) - ((a * x) / (t * y))) - (z / t)) + 1.0) + ((z * x) / (t * y)));
} else {
tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.8d+172)) .or. (.not. (t <= 3.8d+26))) then
tmp = y * (((((a / t) - ((a * x) / (t * y))) - (z / t)) + 1.0d0) + ((z * x) / (t * y)))
else
tmp = x + ((z - t) * ((y - x) * ((-1.0d0) / (t - a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.8e+172) || !(t <= 3.8e+26)) {
tmp = y * (((((a / t) - ((a * x) / (t * y))) - (z / t)) + 1.0) + ((z * x) / (t * y)));
} else {
tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.8e+172) or not (t <= 3.8e+26): tmp = y * (((((a / t) - ((a * x) / (t * y))) - (z / t)) + 1.0) + ((z * x) / (t * y))) else: tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.8e+172) || !(t <= 3.8e+26)) tmp = Float64(y * Float64(Float64(Float64(Float64(Float64(a / t) - Float64(Float64(a * x) / Float64(t * y))) - Float64(z / t)) + 1.0) + Float64(Float64(z * x) / Float64(t * y)))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(-1.0 / Float64(t - a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.8e+172) || ~((t <= 3.8e+26))) tmp = y * (((((a / t) - ((a * x) / (t * y))) - (z / t)) + 1.0) + ((z * x) / (t * y))); else tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.8e+172], N[Not[LessEqual[t, 3.8e+26]], $MachinePrecision]], N[(y * N[(N[(N[(N[(N[(a / t), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + N[(N[(z * x), $MachinePrecision] / N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+172} \lor \neg \left(t \leq 3.8 \cdot 10^{+26}\right):\\
\;\;\;\;y \cdot \left(\left(\left(\left(\frac{a}{t} - \frac{a \cdot x}{t \cdot y}\right) - \frac{z}{t}\right) + 1\right) + \frac{z \cdot x}{t \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{t - a}\right)\\
\end{array}
\end{array}
if t < -2.8e172 or 3.8000000000000002e26 < t Initial program 34.4%
+-commutative34.4%
associate-/l*59.2%
fma-define59.2%
Simplified59.2%
Taylor expanded in y around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
+-commutative54.7%
associate-/r*53.3%
associate-/l*45.9%
*-lft-identity45.9%
times-frac48.6%
/-rgt-identity48.6%
Simplified48.6%
Taylor expanded in t around inf 84.6%
if -2.8e172 < t < 3.8000000000000002e26Initial program 81.8%
div-inv81.8%
*-commutative81.8%
associate-*l*93.6%
Applied egg-rr93.6%
Final simplification90.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -6e+174)
(+ y (* a (/ (- y x) t)))
(if (<= t -5e+46)
(+ x (* (- t z) (/ y (- t a))))
(if (<= t 3e+18)
(+ x (/ (* (- y x) (- z t)) (- a t)))
(- y (/ (* (- x y) (- a z)) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6e+174) {
tmp = y + (a * ((y - x) / t));
} else if (t <= -5e+46) {
tmp = x + ((t - z) * (y / (t - a)));
} else if (t <= 3e+18) {
tmp = x + (((y - x) * (z - t)) / (a - t));
} else {
tmp = y - (((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 (t <= (-6d+174)) then
tmp = y + (a * ((y - x) / t))
else if (t <= (-5d+46)) then
tmp = x + ((t - z) * (y / (t - a)))
else if (t <= 3d+18) then
tmp = x + (((y - x) * (z - t)) / (a - t))
else
tmp = y - (((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 (t <= -6e+174) {
tmp = y + (a * ((y - x) / t));
} else if (t <= -5e+46) {
tmp = x + ((t - z) * (y / (t - a)));
} else if (t <= 3e+18) {
tmp = x + (((y - x) * (z - t)) / (a - t));
} else {
tmp = y - (((x - y) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6e+174: tmp = y + (a * ((y - x) / t)) elif t <= -5e+46: tmp = x + ((t - z) * (y / (t - a))) elif t <= 3e+18: tmp = x + (((y - x) * (z - t)) / (a - t)) else: tmp = y - (((x - y) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6e+174) tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); elseif (t <= -5e+46) tmp = Float64(x + Float64(Float64(t - z) * Float64(y / Float64(t - a)))); elseif (t <= 3e+18) tmp = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))); else tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6e+174) tmp = y + (a * ((y - x) / t)); elseif (t <= -5e+46) tmp = x + ((t - z) * (y / (t - a))); elseif (t <= 3e+18) tmp = x + (((y - x) * (z - t)) / (a - t)); else tmp = y - (((x - y) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6e+174], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5e+46], N[(x + N[(N[(t - z), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+18], N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6 \cdot 10^{+174}:\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t \leq -5 \cdot 10^{+46}:\\
\;\;\;\;x + \left(t - z\right) \cdot \frac{y}{t - a}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+18}:\\
\;\;\;\;x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -6e174Initial program 29.4%
+-commutative29.4%
associate-/l*61.0%
fma-define61.0%
Simplified61.0%
Taylor expanded in t around inf 75.3%
associate--l+75.3%
associate-*r/75.3%
associate-*r/75.3%
mul-1-neg75.3%
div-sub75.3%
mul-1-neg75.3%
distribute-lft-out--75.3%
associate-*r/75.3%
mul-1-neg75.3%
unsub-neg75.3%
distribute-rgt-out--75.5%
Simplified75.5%
Taylor expanded in z around 0 66.9%
sub-neg66.9%
mul-1-neg66.9%
remove-double-neg66.9%
associate-/l*78.2%
Simplified78.2%
if -6e174 < t < -5.0000000000000002e46Initial program 53.9%
Taylor expanded in y around inf 61.5%
*-commutative61.5%
*-lft-identity61.5%
times-frac81.8%
/-rgt-identity81.8%
Simplified81.8%
if -5.0000000000000002e46 < t < 3e18Initial program 88.7%
if 3e18 < t Initial program 36.3%
+-commutative36.3%
associate-/l*59.1%
fma-define59.1%
Simplified59.1%
Taylor expanded in t around inf 77.1%
associate--l+77.1%
associate-*r/77.1%
associate-*r/77.1%
mul-1-neg77.1%
div-sub77.1%
mul-1-neg77.1%
distribute-lft-out--77.1%
associate-*r/77.1%
mul-1-neg77.1%
unsub-neg77.1%
distribute-rgt-out--77.2%
Simplified77.2%
Final simplification84.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.5e+172)
(+ y (* a (/ (- y x) t)))
(if (<= t -6.2e+72)
(+ x (* (- t z) (/ y (- t a))))
(if (<= t 3.6e+26)
(+ x (* z (/ (- y x) (- a t))))
(- y (/ (* (- x y) (- a z)) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.5e+172) {
tmp = y + (a * ((y - x) / t));
} else if (t <= -6.2e+72) {
tmp = x + ((t - z) * (y / (t - a)));
} else if (t <= 3.6e+26) {
tmp = x + (z * ((y - x) / (a - t)));
} else {
tmp = y - (((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 (t <= (-3.5d+172)) then
tmp = y + (a * ((y - x) / t))
else if (t <= (-6.2d+72)) then
tmp = x + ((t - z) * (y / (t - a)))
else if (t <= 3.6d+26) then
tmp = x + (z * ((y - x) / (a - t)))
else
tmp = y - (((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 (t <= -3.5e+172) {
tmp = y + (a * ((y - x) / t));
} else if (t <= -6.2e+72) {
tmp = x + ((t - z) * (y / (t - a)));
} else if (t <= 3.6e+26) {
tmp = x + (z * ((y - x) / (a - t)));
} else {
tmp = y - (((x - y) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.5e+172: tmp = y + (a * ((y - x) / t)) elif t <= -6.2e+72: tmp = x + ((t - z) * (y / (t - a))) elif t <= 3.6e+26: tmp = x + (z * ((y - x) / (a - t))) else: tmp = y - (((x - y) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.5e+172) tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); elseif (t <= -6.2e+72) tmp = Float64(x + Float64(Float64(t - z) * Float64(y / Float64(t - a)))); elseif (t <= 3.6e+26) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); else tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.5e+172) tmp = y + (a * ((y - x) / t)); elseif (t <= -6.2e+72) tmp = x + ((t - z) * (y / (t - a))); elseif (t <= 3.6e+26) tmp = x + (z * ((y - x) / (a - t))); else tmp = y - (((x - y) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.5e+172], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.2e+72], N[(x + N[(N[(t - z), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+26], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+172}:\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{+72}:\\
\;\;\;\;x + \left(t - z\right) \cdot \frac{y}{t - a}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+26}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -3.49999999999999977e172Initial program 29.4%
+-commutative29.4%
associate-/l*61.0%
fma-define61.0%
Simplified61.0%
Taylor expanded in t around inf 75.3%
associate--l+75.3%
associate-*r/75.3%
associate-*r/75.3%
mul-1-neg75.3%
div-sub75.3%
mul-1-neg75.3%
distribute-lft-out--75.3%
associate-*r/75.3%
mul-1-neg75.3%
unsub-neg75.3%
distribute-rgt-out--75.5%
Simplified75.5%
Taylor expanded in z around 0 66.9%
sub-neg66.9%
mul-1-neg66.9%
remove-double-neg66.9%
associate-/l*78.2%
Simplified78.2%
if -3.49999999999999977e172 < t < -6.19999999999999977e72Initial program 53.9%
Taylor expanded in y around inf 59.7%
*-commutative59.7%
*-lft-identity59.7%
times-frac81.3%
/-rgt-identity81.3%
Simplified81.3%
if -6.19999999999999977e72 < t < 3.60000000000000024e26Initial program 86.7%
Taylor expanded in z around inf 80.3%
associate-/l*87.5%
Simplified87.5%
if 3.60000000000000024e26 < t Initial program 37.0%
+-commutative37.0%
associate-/l*58.3%
fma-define58.3%
Simplified58.3%
Taylor expanded in t around inf 78.5%
associate--l+78.5%
associate-*r/78.5%
associate-*r/78.5%
mul-1-neg78.5%
div-sub78.5%
mul-1-neg78.5%
distribute-lft-out--78.5%
associate-*r/78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.6%
Simplified78.6%
Final simplification84.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.25e+171)
(+ y (* a (/ (- y x) t)))
(if (<= t -1.12e+73)
(+ x (* (- t z) (/ y (- t a))))
(if (<= t 2.9e+22)
(+ x (* z (/ (- y x) (- a t))))
(* y (/ (- z t) (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+171) {
tmp = y + (a * ((y - x) / t));
} else if (t <= -1.12e+73) {
tmp = x + ((t - z) * (y / (t - a)));
} else if (t <= 2.9e+22) {
tmp = x + (z * ((y - x) / (a - t)));
} else {
tmp = y * ((z - t) / (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 (t <= (-1.25d+171)) then
tmp = y + (a * ((y - x) / t))
else if (t <= (-1.12d+73)) then
tmp = x + ((t - z) * (y / (t - a)))
else if (t <= 2.9d+22) then
tmp = x + (z * ((y - x) / (a - t)))
else
tmp = y * ((z - t) / (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 (t <= -1.25e+171) {
tmp = y + (a * ((y - x) / t));
} else if (t <= -1.12e+73) {
tmp = x + ((t - z) * (y / (t - a)));
} else if (t <= 2.9e+22) {
tmp = x + (z * ((y - x) / (a - t)));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.25e+171: tmp = y + (a * ((y - x) / t)) elif t <= -1.12e+73: tmp = x + ((t - z) * (y / (t - a))) elif t <= 2.9e+22: tmp = x + (z * ((y - x) / (a - t))) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.25e+171) tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); elseif (t <= -1.12e+73) tmp = Float64(x + Float64(Float64(t - z) * Float64(y / Float64(t - a)))); elseif (t <= 2.9e+22) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.25e+171) tmp = y + (a * ((y - x) / t)); elseif (t <= -1.12e+73) tmp = x + ((t - z) * (y / (t - a))); elseif (t <= 2.9e+22) tmp = x + (z * ((y - x) / (a - t))); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.25e+171], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.12e+73], N[(x + N[(N[(t - z), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+22], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+171}:\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t \leq -1.12 \cdot 10^{+73}:\\
\;\;\;\;x + \left(t - z\right) \cdot \frac{y}{t - a}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+22}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if t < -1.2500000000000001e171Initial program 29.4%
+-commutative29.4%
associate-/l*61.0%
fma-define61.0%
Simplified61.0%
Taylor expanded in t around inf 75.3%
associate--l+75.3%
associate-*r/75.3%
associate-*r/75.3%
mul-1-neg75.3%
div-sub75.3%
mul-1-neg75.3%
distribute-lft-out--75.3%
associate-*r/75.3%
mul-1-neg75.3%
unsub-neg75.3%
distribute-rgt-out--75.5%
Simplified75.5%
Taylor expanded in z around 0 66.9%
sub-neg66.9%
mul-1-neg66.9%
remove-double-neg66.9%
associate-/l*78.2%
Simplified78.2%
if -1.2500000000000001e171 < t < -1.12e73Initial program 53.9%
Taylor expanded in y around inf 59.7%
*-commutative59.7%
*-lft-identity59.7%
times-frac81.3%
/-rgt-identity81.3%
Simplified81.3%
if -1.12e73 < t < 2.9e22Initial program 86.7%
Taylor expanded in z around inf 80.3%
associate-/l*87.5%
Simplified87.5%
if 2.9e22 < t Initial program 37.0%
+-commutative37.0%
associate-/l*58.3%
fma-define58.3%
Simplified58.3%
clear-num58.2%
associate-/r/58.3%
Applied egg-rr58.3%
Taylor expanded in y around inf 70.9%
div-sub70.9%
Simplified70.9%
Final simplification82.4%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.6e+177)
(+ y (* a (/ (- y x) t)))
(if (<= t 3.8e+26)
(+ x (* (- z t) (* (- y x) (/ -1.0 (- t a)))))
(- y (/ (* (- x y) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.6e+177) {
tmp = y + (a * ((y - x) / t));
} else if (t <= 3.8e+26) {
tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
} else {
tmp = y - (((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 (t <= (-5.6d+177)) then
tmp = y + (a * ((y - x) / t))
else if (t <= 3.8d+26) then
tmp = x + ((z - t) * ((y - x) * ((-1.0d0) / (t - a))))
else
tmp = y - (((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 (t <= -5.6e+177) {
tmp = y + (a * ((y - x) / t));
} else if (t <= 3.8e+26) {
tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a))));
} else {
tmp = y - (((x - y) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.6e+177: tmp = y + (a * ((y - x) / t)) elif t <= 3.8e+26: tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))) else: tmp = y - (((x - y) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.6e+177) tmp = Float64(y + Float64(a * Float64(Float64(y - x) / t))); elseif (t <= 3.8e+26) tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(-1.0 / Float64(t - a))))); else tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.6e+177) tmp = y + (a * ((y - x) / t)); elseif (t <= 3.8e+26) tmp = x + ((z - t) * ((y - x) * (-1.0 / (t - a)))); else tmp = y - (((x - y) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.6e+177], N[(y + N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+26], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{+177}:\\
\;\;\;\;y + a \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+26}:\\
\;\;\;\;x + \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{t - a}\right)\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -5.60000000000000004e177Initial program 29.4%
+-commutative29.4%
associate-/l*61.0%
fma-define61.0%
Simplified61.0%
Taylor expanded in t around inf 75.3%
associate--l+75.3%
associate-*r/75.3%
associate-*r/75.3%
mul-1-neg75.3%
div-sub75.3%
mul-1-neg75.3%
distribute-lft-out--75.3%
associate-*r/75.3%
mul-1-neg75.3%
unsub-neg75.3%
distribute-rgt-out--75.5%
Simplified75.5%
Taylor expanded in z around 0 66.9%
sub-neg66.9%
mul-1-neg66.9%
remove-double-neg66.9%
associate-/l*78.2%
Simplified78.2%
if -5.60000000000000004e177 < t < 3.8000000000000002e26Initial program 81.8%
div-inv81.8%
*-commutative81.8%
associate-*l*93.6%
Applied egg-rr93.6%
if 3.8000000000000002e26 < t Initial program 37.0%
+-commutative37.0%
associate-/l*58.3%
fma-define58.3%
Simplified58.3%
Taylor expanded in t around inf 78.5%
associate--l+78.5%
associate-*r/78.5%
associate-*r/78.5%
mul-1-neg78.5%
div-sub78.5%
mul-1-neg78.5%
distribute-lft-out--78.5%
associate-*r/78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.6%
Simplified78.6%
Final simplification88.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -9.8e+88)
y
(if (<= t -4800000000000.0)
x
(if (<= t 4e-98) (* z (/ (- y x) a)) (if (<= t 4.5e+23) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.8e+88) {
tmp = y;
} else if (t <= -4800000000000.0) {
tmp = x;
} else if (t <= 4e-98) {
tmp = z * ((y - x) / a);
} else if (t <= 4.5e+23) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-9.8d+88)) then
tmp = y
else if (t <= (-4800000000000.0d0)) then
tmp = x
else if (t <= 4d-98) then
tmp = z * ((y - x) / a)
else if (t <= 4.5d+23) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.8e+88) {
tmp = y;
} else if (t <= -4800000000000.0) {
tmp = x;
} else if (t <= 4e-98) {
tmp = z * ((y - x) / a);
} else if (t <= 4.5e+23) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.8e+88: tmp = y elif t <= -4800000000000.0: tmp = x elif t <= 4e-98: tmp = z * ((y - x) / a) elif t <= 4.5e+23: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.8e+88) tmp = y; elseif (t <= -4800000000000.0) tmp = x; elseif (t <= 4e-98) tmp = Float64(z * Float64(Float64(y - x) / a)); elseif (t <= 4.5e+23) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.8e+88) tmp = y; elseif (t <= -4800000000000.0) tmp = x; elseif (t <= 4e-98) tmp = z * ((y - x) / a); elseif (t <= 4.5e+23) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.8e+88], y, If[LessEqual[t, -4800000000000.0], x, If[LessEqual[t, 4e-98], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e+23], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.8 \cdot 10^{+88}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -4800000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-98}:\\
\;\;\;\;z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.8000000000000005e88 or 4.49999999999999979e23 < t Initial program 38.1%
+-commutative38.1%
associate-/l*66.0%
fma-define66.0%
Simplified66.0%
clear-num66.0%
associate-/r/66.0%
Applied egg-rr66.0%
Taylor expanded in t around inf 52.7%
if -9.8000000000000005e88 < t < -4.8e12 or 3.99999999999999976e-98 < t < 4.49999999999999979e23Initial program 80.4%
+-commutative80.4%
associate-/l*93.2%
fma-define93.2%
Simplified93.2%
Taylor expanded in a around inf 44.9%
if -4.8e12 < t < 3.99999999999999976e-98Initial program 88.0%
+-commutative88.0%
associate-/l*94.8%
fma-define94.8%
Simplified94.8%
Taylor expanded in z around inf 61.3%
Taylor expanded in a around inf 50.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.38e+112)
x
(if (<= a -1.7e-100)
(* z (/ y (- a t)))
(if (<= a 6.5e-174) (* z (/ x (- t a))) (if (<= a 9.2e+86) y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.38e+112) {
tmp = x;
} else if (a <= -1.7e-100) {
tmp = z * (y / (a - t));
} else if (a <= 6.5e-174) {
tmp = z * (x / (t - a));
} else if (a <= 9.2e+86) {
tmp = y;
} 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 <= (-1.38d+112)) then
tmp = x
else if (a <= (-1.7d-100)) then
tmp = z * (y / (a - t))
else if (a <= 6.5d-174) then
tmp = z * (x / (t - a))
else if (a <= 9.2d+86) then
tmp = y
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 <= -1.38e+112) {
tmp = x;
} else if (a <= -1.7e-100) {
tmp = z * (y / (a - t));
} else if (a <= 6.5e-174) {
tmp = z * (x / (t - a));
} else if (a <= 9.2e+86) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.38e+112: tmp = x elif a <= -1.7e-100: tmp = z * (y / (a - t)) elif a <= 6.5e-174: tmp = z * (x / (t - a)) elif a <= 9.2e+86: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.38e+112) tmp = x; elseif (a <= -1.7e-100) tmp = Float64(z * Float64(y / Float64(a - t))); elseif (a <= 6.5e-174) tmp = Float64(z * Float64(x / Float64(t - a))); elseif (a <= 9.2e+86) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.38e+112) tmp = x; elseif (a <= -1.7e-100) tmp = z * (y / (a - t)); elseif (a <= 6.5e-174) tmp = z * (x / (t - a)); elseif (a <= 9.2e+86) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.38e+112], x, If[LessEqual[a, -1.7e-100], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-174], N[(z * N[(x / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.2e+86], y, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.38 \cdot 10^{+112}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-100}:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-174}:\\
\;\;\;\;z \cdot \frac{x}{t - a}\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{+86}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.3800000000000001e112 or 9.19999999999999958e86 < a Initial program 63.7%
+-commutative63.7%
associate-/l*92.0%
fma-define92.0%
Simplified92.0%
Taylor expanded in a around inf 57.8%
if -1.3800000000000001e112 < a < -1.69999999999999988e-100Initial program 72.4%
+-commutative72.4%
associate-/l*84.9%
fma-define84.9%
Simplified84.9%
Taylor expanded in z around inf 55.4%
Taylor expanded in y around inf 41.9%
if -1.69999999999999988e-100 < a < 6.50000000000000009e-174Initial program 69.9%
+-commutative69.9%
associate-/l*75.2%
fma-define75.2%
Simplified75.2%
Taylor expanded in z around inf 57.8%
Taylor expanded in y around 0 43.7%
neg-mul-143.7%
distribute-neg-frac243.7%
Simplified43.7%
Taylor expanded in a around 0 43.7%
neg-mul-143.7%
sub-neg43.7%
Simplified43.7%
if 6.50000000000000009e-174 < a < 9.19999999999999958e86Initial program 63.9%
+-commutative63.9%
associate-/l*78.2%
fma-define78.2%
Simplified78.2%
clear-num78.1%
associate-/r/77.9%
Applied egg-rr77.9%
Taylor expanded in t around inf 36.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.15e+89) y (if (<= t 8.2e-261) x (if (<= t 1.05e+71) (* z (/ x (- t a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.15e+89) {
tmp = y;
} else if (t <= 8.2e-261) {
tmp = x;
} else if (t <= 1.05e+71) {
tmp = z * (x / (t - a));
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.15d+89)) then
tmp = y
else if (t <= 8.2d-261) then
tmp = x
else if (t <= 1.05d+71) then
tmp = z * (x / (t - a))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.15e+89) {
tmp = y;
} else if (t <= 8.2e-261) {
tmp = x;
} else if (t <= 1.05e+71) {
tmp = z * (x / (t - a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.15e+89: tmp = y elif t <= 8.2e-261: tmp = x elif t <= 1.05e+71: tmp = z * (x / (t - a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.15e+89) tmp = y; elseif (t <= 8.2e-261) tmp = x; elseif (t <= 1.05e+71) tmp = Float64(z * Float64(x / Float64(t - a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.15e+89) tmp = y; elseif (t <= 8.2e-261) tmp = x; elseif (t <= 1.05e+71) tmp = z * (x / (t - a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.15e+89], y, If[LessEqual[t, 8.2e-261], x, If[LessEqual[t, 1.05e+71], N[(z * N[(x / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+89}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-261}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+71}:\\
\;\;\;\;z \cdot \frac{x}{t - a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.1499999999999999e89 or 1.04999999999999995e71 < t Initial program 34.8%
+-commutative34.8%
associate-/l*65.1%
fma-define65.1%
Simplified65.1%
clear-num65.0%
associate-/r/65.1%
Applied egg-rr65.1%
Taylor expanded in t around inf 55.4%
if -1.1499999999999999e89 < t < 8.2000000000000003e-261Initial program 83.8%
+-commutative83.8%
associate-/l*93.3%
fma-define93.3%
Simplified93.3%
Taylor expanded in a around inf 38.2%
if 8.2000000000000003e-261 < t < 1.04999999999999995e71Initial program 85.3%
+-commutative85.3%
associate-/l*92.5%
fma-define92.5%
Simplified92.5%
Taylor expanded in z around inf 64.3%
Taylor expanded in y around 0 39.3%
neg-mul-139.3%
distribute-neg-frac239.3%
Simplified39.3%
Taylor expanded in a around 0 39.3%
neg-mul-139.3%
sub-neg39.3%
Simplified39.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.9e+101) (not (<= t 3.1e+25))) (* y (/ (- z t) (- a t))) (+ x (* z (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.9e+101) || !(t <= 3.1e+25)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / (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 ((t <= (-1.9d+101)) .or. (.not. (t <= 3.1d+25))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z * ((y - x) / (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 ((t <= -1.9e+101) || !(t <= 3.1e+25)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.9e+101) or not (t <= 3.1e+25): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.9e+101) || !(t <= 3.1e+25)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.9e+101) || ~((t <= 3.1e+25))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.9e+101], N[Not[LessEqual[t, 3.1e+25]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+101} \lor \neg \left(t \leq 3.1 \cdot 10^{+25}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -1.8999999999999999e101 or 3.0999999999999998e25 < t Initial program 37.2%
+-commutative37.2%
associate-/l*65.0%
fma-define65.0%
Simplified65.0%
clear-num64.9%
associate-/r/64.9%
Applied egg-rr64.9%
Taylor expanded in y around inf 71.3%
div-sub71.3%
Simplified71.3%
if -1.8999999999999999e101 < t < 3.0999999999999998e25Initial program 85.5%
Taylor expanded in z around inf 78.3%
associate-/l*86.3%
Simplified86.3%
Final simplification80.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3e+67) (not (<= t 3.1e+18))) (* y (/ (- z t) (- a t))) (+ x (* z (/ (- y x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3e+67) || !(t <= 3.1e+18)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-3d+67)) .or. (.not. (t <= 3.1d+18))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z * ((y - x) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3e+67) || !(t <= 3.1e+18)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3e+67) or not (t <= 3.1e+18): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z * ((y - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3e+67) || !(t <= 3.1e+18)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3e+67) || ~((t <= 3.1e+18))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z * ((y - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3e+67], N[Not[LessEqual[t, 3.1e+18]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{+67} \lor \neg \left(t \leq 3.1 \cdot 10^{+18}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\end{array}
if t < -3.0000000000000001e67 or 3.1e18 < t Initial program 38.6%
+-commutative38.6%
associate-/l*66.5%
fma-define66.5%
Simplified66.5%
clear-num66.4%
associate-/r/66.4%
Applied egg-rr66.4%
Taylor expanded in y around inf 69.5%
div-sub69.5%
Simplified69.5%
if -3.0000000000000001e67 < t < 3.1e18Initial program 87.8%
Taylor expanded in t around 0 66.2%
associate-/l*73.6%
Simplified73.6%
Final simplification71.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.38e+112) (not (<= a 8.2e+91))) (+ x (* y (/ (- z t) a))) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.38e+112) || !(a <= 8.2e+91)) {
tmp = x + (y * ((z - t) / a));
} else {
tmp = y * ((z - t) / (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 ((a <= (-1.38d+112)) .or. (.not. (a <= 8.2d+91))) then
tmp = x + (y * ((z - t) / a))
else
tmp = y * ((z - t) / (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 ((a <= -1.38e+112) || !(a <= 8.2e+91)) {
tmp = x + (y * ((z - t) / a));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.38e+112) or not (a <= 8.2e+91): tmp = x + (y * ((z - t) / a)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.38e+112) || !(a <= 8.2e+91)) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.38e+112) || ~((a <= 8.2e+91))) tmp = x + (y * ((z - t) / a)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.38e+112], N[Not[LessEqual[a, 8.2e+91]], $MachinePrecision]], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.38 \cdot 10^{+112} \lor \neg \left(a \leq 8.2 \cdot 10^{+91}\right):\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if a < -1.3800000000000001e112 or 8.2000000000000005e91 < a Initial program 63.7%
Taylor expanded in a around inf 60.4%
associate-/l*83.1%
Simplified83.1%
Taylor expanded in y around inf 65.6%
associate-/l*75.2%
Simplified75.2%
if -1.3800000000000001e112 < a < 8.2000000000000005e91Initial program 68.7%
+-commutative68.7%
associate-/l*78.7%
fma-define78.7%
Simplified78.7%
clear-num78.6%
associate-/r/78.5%
Applied egg-rr78.5%
Taylor expanded in y around inf 65.6%
div-sub65.6%
Simplified65.6%
Final simplification68.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9e+112) (not (<= a 4.1e+92))) (+ x (* y (/ z a))) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9e+112) || !(a <= 4.1e+92)) {
tmp = x + (y * (z / a));
} else {
tmp = y * ((z - t) / (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 ((a <= (-9d+112)) .or. (.not. (a <= 4.1d+92))) then
tmp = x + (y * (z / a))
else
tmp = y * ((z - t) / (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 ((a <= -9e+112) || !(a <= 4.1e+92)) {
tmp = x + (y * (z / a));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9e+112) or not (a <= 4.1e+92): tmp = x + (y * (z / a)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9e+112) || !(a <= 4.1e+92)) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9e+112) || ~((a <= 4.1e+92))) tmp = x + (y * (z / a)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9e+112], N[Not[LessEqual[a, 4.1e+92]], $MachinePrecision]], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{+112} \lor \neg \left(a \leq 4.1 \cdot 10^{+92}\right):\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if a < -8.9999999999999998e112 or 4.10000000000000024e92 < a Initial program 63.7%
Taylor expanded in a around inf 60.4%
associate-/l*83.1%
Simplified83.1%
Taylor expanded in y around inf 65.6%
associate-/l*75.2%
Simplified75.2%
Taylor expanded in z around inf 63.1%
associate-/l*71.0%
Simplified71.0%
if -8.9999999999999998e112 < a < 4.10000000000000024e92Initial program 68.7%
+-commutative68.7%
associate-/l*78.7%
fma-define78.7%
Simplified78.7%
clear-num78.6%
associate-/r/78.5%
Applied egg-rr78.5%
Taylor expanded in y around inf 65.6%
div-sub65.6%
Simplified65.6%
Final simplification67.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -6.2e+89) y (if (<= t 3.2e+26) (+ x (* y (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.2e+89) {
tmp = y;
} else if (t <= 3.2e+26) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-6.2d+89)) then
tmp = y
else if (t <= 3.2d+26) then
tmp = x + (y * (z / a))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.2e+89) {
tmp = y;
} else if (t <= 3.2e+26) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.2e+89: tmp = y elif t <= 3.2e+26: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.2e+89) tmp = y; elseif (t <= 3.2e+26) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.2e+89) tmp = y; elseif (t <= 3.2e+26) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.2e+89], y, If[LessEqual[t, 3.2e+26], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.2 \cdot 10^{+89}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+26}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.2e89 or 3.20000000000000029e26 < t Initial program 38.1%
+-commutative38.1%
associate-/l*66.0%
fma-define66.0%
Simplified66.0%
clear-num66.0%
associate-/r/66.0%
Applied egg-rr66.0%
Taylor expanded in t around inf 52.7%
if -6.2e89 < t < 3.20000000000000029e26Initial program 85.9%
Taylor expanded in a around inf 67.7%
associate-/l*76.5%
Simplified76.5%
Taylor expanded in y around inf 55.4%
associate-/l*60.5%
Simplified60.5%
Taylor expanded in z around inf 51.6%
associate-/l*56.7%
Simplified56.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.1e+101) x (if (<= a 3.85e+89) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.1e+101) {
tmp = x;
} else if (a <= 3.85e+89) {
tmp = y;
} 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 <= (-3.1d+101)) then
tmp = x
else if (a <= 3.85d+89) then
tmp = y
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 <= -3.1e+101) {
tmp = x;
} else if (a <= 3.85e+89) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.1e+101: tmp = x elif a <= 3.85e+89: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.1e+101) tmp = x; elseif (a <= 3.85e+89) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.1e+101) tmp = x; elseif (a <= 3.85e+89) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.1e+101], x, If[LessEqual[a, 3.85e+89], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{+101}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.85 \cdot 10^{+89}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.09999999999999999e101 or 3.8500000000000002e89 < a Initial program 63.8%
+-commutative63.8%
associate-/l*92.3%
fma-define92.3%
Simplified92.3%
Taylor expanded in a around inf 56.0%
if -3.09999999999999999e101 < a < 3.8500000000000002e89Initial program 68.7%
+-commutative68.7%
associate-/l*78.3%
fma-define78.3%
Simplified78.3%
clear-num78.2%
associate-/r/78.1%
Applied egg-rr78.1%
Taylor expanded in t around inf 34.8%
(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 67.0%
+-commutative67.0%
associate-/l*83.2%
fma-define83.2%
Simplified83.2%
Taylor expanded in a around inf 23.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - 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 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); 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 - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024141
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))