
(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
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -4e-227)
(+ x (/ (- y x) (/ (- a t) (- z t))))
(if (<= t_1 0.0)
(- y (/ (* (- x y) (- a z)) t))
(fma (- y x) (/ (- z t) (- a t)) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -4e-227) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = y - (((x - y) * (a - z)) / t);
} else {
tmp = fma((y - x), ((z - t) / (a - t)), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -4e-227) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); elseif (t_1 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); else tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e-227], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $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}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{-227}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -3.99999999999999978e-227Initial program 71.4%
associate-/l*95.1%
*-commutative95.1%
Applied egg-rr95.1%
clear-num95.1%
inv-pow95.1%
Applied egg-rr95.1%
unpow-195.1%
Simplified95.1%
associate-*l/95.2%
*-un-lft-identity95.2%
Applied egg-rr95.2%
if -3.99999999999999978e-227 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 7.3%
+-commutative7.3%
associate-/l*7.3%
fma-define7.3%
Simplified7.3%
Taylor expanded in t around inf 95.6%
associate--l+95.6%
associate-*r/95.6%
associate-*r/95.6%
mul-1-neg95.6%
div-sub95.5%
mul-1-neg95.5%
distribute-lft-out--95.5%
associate-*r/95.5%
mul-1-neg95.5%
unsub-neg95.5%
distribute-rgt-out--95.6%
Simplified95.6%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 75.2%
+-commutative75.2%
associate-/l*90.6%
fma-define90.6%
Simplified90.6%
Final simplification92.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (or (<= t_1 -4e-227) (not (<= t_1 0.0)))
(+ 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 t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -4e-227) || !(t_1 <= 0.0)) {
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) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if ((t_1 <= (-4d-227)) .or. (.not. (t_1 <= 0.0d0))) 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 t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -4e-227) || !(t_1 <= 0.0)) {
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): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -4e-227) or not (t_1 <= 0.0): 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) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -4e-227) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(y - x) * Float64(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) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if ((t_1 <= -4e-227) || ~((t_1 <= 0.0))) 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_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e-227], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $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}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{-227} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -3.99999999999999978e-227 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.6%
associate-/l*92.4%
*-commutative92.4%
Applied egg-rr92.4%
if -3.99999999999999978e-227 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 7.3%
+-commutative7.3%
associate-/l*7.3%
fma-define7.3%
Simplified7.3%
Taylor expanded in t around inf 95.6%
associate--l+95.6%
associate-*r/95.6%
associate-*r/95.6%
mul-1-neg95.6%
div-sub95.5%
mul-1-neg95.5%
distribute-lft-out--95.5%
associate-*r/95.5%
mul-1-neg95.5%
unsub-neg95.5%
distribute-rgt-out--95.6%
Simplified95.6%
Final simplification92.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -4e-227)
(+ x (/ (- y x) (/ (- a t) (- z t))))
(if (<= t_1 0.0)
(- y (/ (* (- x y) (- a z)) t))
(+ x (* (- y x) (/ (- z t) (- a t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -4e-227) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = y - (((x - y) * (a - z)) / t);
} else {
tmp = x + ((y - x) * ((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) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if (t_1 <= (-4d-227)) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else if (t_1 <= 0.0d0) then
tmp = y - (((x - y) * (a - z)) / t)
else
tmp = x + ((y - x) * ((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 t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -4e-227) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = y - (((x - y) * (a - z)) / t);
} else {
tmp = x + ((y - x) * ((z - t) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_1 <= -4e-227: tmp = x + ((y - x) / ((a - t) / (z - t))) elif t_1 <= 0.0: tmp = y - (((x - y) * (a - z)) / t) else: tmp = x + ((y - x) * ((z - t) / (a - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -4e-227) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); elseif (t_1 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); else tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_1 <= -4e-227) tmp = x + ((y - x) / ((a - t) / (z - t))); elseif (t_1 <= 0.0) tmp = y - (((x - y) * (a - z)) / t); else tmp = x + ((y - x) * ((z - t) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e-227], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{-227}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -3.99999999999999978e-227Initial program 71.4%
associate-/l*95.1%
*-commutative95.1%
Applied egg-rr95.1%
clear-num95.1%
inv-pow95.1%
Applied egg-rr95.1%
unpow-195.1%
Simplified95.1%
associate-*l/95.2%
*-un-lft-identity95.2%
Applied egg-rr95.2%
if -3.99999999999999978e-227 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 7.3%
+-commutative7.3%
associate-/l*7.3%
fma-define7.3%
Simplified7.3%
Taylor expanded in t around inf 95.6%
associate--l+95.6%
associate-*r/95.6%
associate-*r/95.6%
mul-1-neg95.6%
div-sub95.5%
mul-1-neg95.5%
distribute-lft-out--95.5%
associate-*r/95.5%
mul-1-neg95.5%
unsub-neg95.5%
distribute-rgt-out--95.6%
Simplified95.6%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 75.2%
associate-/l*90.6%
*-commutative90.6%
Applied egg-rr90.6%
Final simplification92.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- (- -1.0) (/ z t)))))
(if (<= t -6e+90)
t_1
(if (<= t 2.25e-110)
(+ x (* y (/ (- z t) a)))
(if (<= t 1.02e+82) (* x (- 1.0 (/ z a))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (-(-1.0) - (z / t));
double tmp;
if (t <= -6e+90) {
tmp = t_1;
} else if (t <= 2.25e-110) {
tmp = x + (y * ((z - t) / a));
} else if (t <= 1.02e+82) {
tmp = x * (1.0 - (z / a));
} 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 = y * (-(-1.0d0) - (z / t))
if (t <= (-6d+90)) then
tmp = t_1
else if (t <= 2.25d-110) then
tmp = x + (y * ((z - t) / a))
else if (t <= 1.02d+82) then
tmp = x * (1.0d0 - (z / a))
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 = y * (-(-1.0) - (z / t));
double tmp;
if (t <= -6e+90) {
tmp = t_1;
} else if (t <= 2.25e-110) {
tmp = x + (y * ((z - t) / a));
} else if (t <= 1.02e+82) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (-(-1.0) - (z / t)) tmp = 0 if t <= -6e+90: tmp = t_1 elif t <= 2.25e-110: tmp = x + (y * ((z - t) / a)) elif t <= 1.02e+82: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(-(-1.0)) - Float64(z / t))) tmp = 0.0 if (t <= -6e+90) tmp = t_1; elseif (t <= 2.25e-110) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); elseif (t <= 1.02e+82) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (-(-1.0) - (z / t)); tmp = 0.0; if (t <= -6e+90) tmp = t_1; elseif (t <= 2.25e-110) tmp = x + (y * ((z - t) / a)); elseif (t <= 1.02e+82) tmp = x * (1.0 - (z / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[((--1.0) - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+90], t$95$1, If[LessEqual[t, 2.25e-110], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+82], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\left(--1\right) - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-110}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+82}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.99999999999999957e90 or 1.0200000000000001e82 < t Initial program 41.4%
Taylor expanded in y around inf 36.2%
*-commutative36.2%
*-lft-identity36.2%
times-frac57.8%
/-rgt-identity57.8%
Simplified57.8%
Taylor expanded in a around 0 51.7%
associate-*r/51.7%
neg-mul-151.7%
Simplified51.7%
Taylor expanded in y around -inf 64.2%
if -5.99999999999999957e90 < t < 2.25e-110Initial program 86.8%
Taylor expanded in y around inf 72.0%
*-commutative72.0%
*-lft-identity72.0%
times-frac70.1%
/-rgt-identity70.1%
Simplified70.1%
Taylor expanded in a around inf 62.9%
associate-/l*65.0%
Simplified65.0%
if 2.25e-110 < t < 1.0200000000000001e82Initial program 78.6%
Taylor expanded in t around 0 55.9%
Taylor expanded in x around inf 62.2%
mul-1-neg62.2%
unsub-neg62.2%
Simplified62.2%
Final simplification64.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- (- -1.0) (/ z t)))))
(if (<= t -90000000.0)
t_1
(if (<= t 3.8e-112)
(+ x (* y (/ z a)))
(if (<= t 2.8e+82) (* x (- 1.0 (/ z a))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (-(-1.0) - (z / t));
double tmp;
if (t <= -90000000.0) {
tmp = t_1;
} else if (t <= 3.8e-112) {
tmp = x + (y * (z / a));
} else if (t <= 2.8e+82) {
tmp = x * (1.0 - (z / a));
} 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 = y * (-(-1.0d0) - (z / t))
if (t <= (-90000000.0d0)) then
tmp = t_1
else if (t <= 3.8d-112) then
tmp = x + (y * (z / a))
else if (t <= 2.8d+82) then
tmp = x * (1.0d0 - (z / a))
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 = y * (-(-1.0) - (z / t));
double tmp;
if (t <= -90000000.0) {
tmp = t_1;
} else if (t <= 3.8e-112) {
tmp = x + (y * (z / a));
} else if (t <= 2.8e+82) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (-(-1.0) - (z / t)) tmp = 0 if t <= -90000000.0: tmp = t_1 elif t <= 3.8e-112: tmp = x + (y * (z / a)) elif t <= 2.8e+82: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(-(-1.0)) - Float64(z / t))) tmp = 0.0 if (t <= -90000000.0) tmp = t_1; elseif (t <= 3.8e-112) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 2.8e+82) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (-(-1.0) - (z / t)); tmp = 0.0; if (t <= -90000000.0) tmp = t_1; elseif (t <= 3.8e-112) tmp = x + (y * (z / a)); elseif (t <= 2.8e+82) tmp = x * (1.0 - (z / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[((--1.0) - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -90000000.0], t$95$1, If[LessEqual[t, 3.8e-112], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+82], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\left(--1\right) - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -90000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-112}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+82}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9e7 or 2.8e82 < t Initial program 44.1%
Taylor expanded in y around inf 38.1%
*-commutative38.1%
*-lft-identity38.1%
times-frac57.3%
/-rgt-identity57.3%
Simplified57.3%
Taylor expanded in a around 0 48.8%
associate-*r/48.8%
neg-mul-148.8%
Simplified48.8%
Taylor expanded in y around -inf 60.2%
if -9e7 < t < 3.79999999999999995e-112Initial program 91.4%
Taylor expanded in y around inf 75.9%
*-commutative75.9%
*-lft-identity75.9%
times-frac72.8%
/-rgt-identity72.8%
Simplified72.8%
Taylor expanded in t around 0 62.9%
associate-/l*64.8%
Simplified64.8%
if 3.79999999999999995e-112 < t < 2.8e82Initial program 78.6%
Taylor expanded in t around 0 55.9%
Taylor expanded in x around inf 62.2%
mul-1-neg62.2%
unsub-neg62.2%
Simplified62.2%
Final simplification62.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4e+152)
y
(if (<= t -0.0096)
(* z (/ (- x y) t))
(if (<= t 3.2e+156) (+ x (* y (/ z a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4e+152) {
tmp = y;
} else if (t <= -0.0096) {
tmp = z * ((x - y) / t);
} else if (t <= 3.2e+156) {
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 <= (-4d+152)) then
tmp = y
else if (t <= (-0.0096d0)) then
tmp = z * ((x - y) / t)
else if (t <= 3.2d+156) 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 <= -4e+152) {
tmp = y;
} else if (t <= -0.0096) {
tmp = z * ((x - y) / t);
} else if (t <= 3.2e+156) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4e+152: tmp = y elif t <= -0.0096: tmp = z * ((x - y) / t) elif t <= 3.2e+156: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4e+152) tmp = y; elseif (t <= -0.0096) tmp = Float64(z * Float64(Float64(x - y) / t)); elseif (t <= 3.2e+156) 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 <= -4e+152) tmp = y; elseif (t <= -0.0096) tmp = z * ((x - y) / t); elseif (t <= 3.2e+156) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4e+152], y, If[LessEqual[t, -0.0096], N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+156], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+152}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -0.0096:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+156}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.0000000000000002e152 or 3.20000000000000002e156 < t Initial program 31.5%
Taylor expanded in y around inf 29.6%
*-commutative29.6%
*-lft-identity29.6%
times-frac57.8%
/-rgt-identity57.8%
Simplified57.8%
Taylor expanded in t around inf 61.3%
+-commutative61.3%
Simplified61.3%
Taylor expanded in y around inf 69.5%
if -4.0000000000000002e152 < t < -0.00959999999999999916Initial program 63.9%
+-commutative63.9%
associate-/l*76.8%
fma-define76.9%
Simplified76.9%
Taylor expanded in z around inf 54.7%
Taylor expanded in a around 0 48.2%
distribute-lft-out--48.2%
div-sub48.2%
associate-*r/48.2%
neg-mul-148.2%
Simplified48.2%
if -0.00959999999999999916 < t < 3.20000000000000002e156Initial program 83.3%
Taylor expanded in y around inf 68.2%
*-commutative68.2%
*-lft-identity68.2%
times-frac70.4%
/-rgt-identity70.4%
Simplified70.4%
Taylor expanded in t around 0 54.1%
associate-/l*58.2%
Simplified58.2%
Final simplification59.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4e+152)
y
(if (<= t -0.0026)
(* x (/ z (- t a)))
(if (<= t 3e+156) (+ x (* y (/ z a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4e+152) {
tmp = y;
} else if (t <= -0.0026) {
tmp = x * (z / (t - a));
} else if (t <= 3e+156) {
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 <= (-4d+152)) then
tmp = y
else if (t <= (-0.0026d0)) then
tmp = x * (z / (t - a))
else if (t <= 3d+156) 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 <= -4e+152) {
tmp = y;
} else if (t <= -0.0026) {
tmp = x * (z / (t - a));
} else if (t <= 3e+156) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4e+152: tmp = y elif t <= -0.0026: tmp = x * (z / (t - a)) elif t <= 3e+156: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4e+152) tmp = y; elseif (t <= -0.0026) tmp = Float64(x * Float64(z / Float64(t - a))); elseif (t <= 3e+156) 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 <= -4e+152) tmp = y; elseif (t <= -0.0026) tmp = x * (z / (t - a)); elseif (t <= 3e+156) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4e+152], y, If[LessEqual[t, -0.0026], N[(x * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+156], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+152}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -0.0026:\\
\;\;\;\;x \cdot \frac{z}{t - a}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+156}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.0000000000000002e152 or 3e156 < t Initial program 31.5%
Taylor expanded in y around inf 29.6%
*-commutative29.6%
*-lft-identity29.6%
times-frac57.8%
/-rgt-identity57.8%
Simplified57.8%
Taylor expanded in t around inf 61.3%
+-commutative61.3%
Simplified61.3%
Taylor expanded in y around inf 69.5%
if -4.0000000000000002e152 < t < -0.0025999999999999999Initial program 63.9%
+-commutative63.9%
associate-/l*76.8%
fma-define76.9%
Simplified76.9%
Taylor expanded in z around inf 54.7%
Taylor expanded in y around 0 35.0%
mul-1-neg35.0%
associate-/l*38.2%
Simplified38.2%
if -0.0025999999999999999 < t < 3e156Initial program 83.3%
Taylor expanded in y around inf 68.2%
*-commutative68.2%
*-lft-identity68.2%
times-frac70.4%
/-rgt-identity70.4%
Simplified70.4%
Taylor expanded in t around 0 54.1%
associate-/l*58.2%
Simplified58.2%
Final simplification58.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -6.5e-65) (not (<= y 6.6e-159))) (+ x (* y (/ (- z t) (- a t)))) (* x (+ 1.0 (/ (- z t) (- t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.5e-65) || !(y <= 6.6e-159)) {
tmp = x + (y * ((z - t) / (a - t)));
} else {
tmp = x * (1.0 + ((z - t) / (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 ((y <= (-6.5d-65)) .or. (.not. (y <= 6.6d-159))) then
tmp = x + (y * ((z - t) / (a - t)))
else
tmp = x * (1.0d0 + ((z - t) / (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 ((y <= -6.5e-65) || !(y <= 6.6e-159)) {
tmp = x + (y * ((z - t) / (a - t)));
} else {
tmp = x * (1.0 + ((z - t) / (t - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -6.5e-65) or not (y <= 6.6e-159): tmp = x + (y * ((z - t) / (a - t))) else: tmp = x * (1.0 + ((z - t) / (t - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -6.5e-65) || !(y <= 6.6e-159)) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(x * Float64(1.0 + Float64(Float64(z - t) / Float64(t - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -6.5e-65) || ~((y <= 6.6e-159))) tmp = x + (y * ((z - t) / (a - t))); else tmp = x * (1.0 + ((z - t) / (t - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -6.5e-65], N[Not[LessEqual[y, 6.6e-159]], $MachinePrecision]], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{-65} \lor \neg \left(y \leq 6.6 \cdot 10^{-159}\right):\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + \frac{z - t}{t - a}\right)\\
\end{array}
\end{array}
if y < -6.5e-65 or 6.6000000000000003e-159 < y Initial program 68.3%
associate-/l*90.8%
*-commutative90.8%
Applied egg-rr90.8%
Taylor expanded in y around inf 62.6%
associate-/l*82.8%
Simplified82.8%
if -6.5e-65 < y < 6.6000000000000003e-159Initial program 67.0%
+-commutative67.0%
associate-/l*72.1%
fma-define72.1%
Simplified72.1%
Taylor expanded in y around 0 56.9%
mul-1-neg56.9%
*-lft-identity56.9%
*-commutative56.9%
*-rgt-identity56.9%
times-frac63.2%
/-rgt-identity63.2%
distribute-lft-neg-out63.2%
mul-1-neg63.2%
distribute-rgt-in63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
Final simplification76.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.5e-46)
(+ x (/ y (/ (- a t) (- z t))))
(if (<= a 2e-77)
(+ y (* (- z a) (/ (- x y) t)))
(+ x (* y (/ (- z t) (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.5e-46) {
tmp = x + (y / ((a - t) / (z - t)));
} else if (a <= 2e-77) {
tmp = y + ((z - a) * ((x - y) / t));
} else {
tmp = x + (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 <= (-4.5d-46)) then
tmp = x + (y / ((a - t) / (z - t)))
else if (a <= 2d-77) then
tmp = y + ((z - a) * ((x - y) / t))
else
tmp = x + (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 <= -4.5e-46) {
tmp = x + (y / ((a - t) / (z - t)));
} else if (a <= 2e-77) {
tmp = y + ((z - a) * ((x - y) / t));
} else {
tmp = x + (y * ((z - t) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.5e-46: tmp = x + (y / ((a - t) / (z - t))) elif a <= 2e-77: tmp = y + ((z - a) * ((x - y) / t)) else: tmp = x + (y * ((z - t) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.5e-46) tmp = Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))); elseif (a <= 2e-77) tmp = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))); else tmp = Float64(x + 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 <= -4.5e-46) tmp = x + (y / ((a - t) / (z - t))); elseif (a <= 2e-77) tmp = y + ((z - a) * ((x - y) / t)); else tmp = x + (y * ((z - t) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.5e-46], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-77], N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{-46}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-77}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if a < -4.50000000000000001e-46Initial program 72.8%
associate-/l*94.3%
*-commutative94.3%
Applied egg-rr94.3%
clear-num94.3%
inv-pow94.3%
Applied egg-rr94.3%
unpow-194.3%
Simplified94.3%
associate-*l/94.3%
*-un-lft-identity94.3%
Applied egg-rr94.3%
Taylor expanded in y around inf 82.8%
if -4.50000000000000001e-46 < a < 1.9999999999999999e-77Initial program 59.3%
associate-/l*72.8%
*-commutative72.8%
Applied egg-rr72.8%
clear-num72.8%
inv-pow72.8%
Applied egg-rr72.8%
unpow-172.8%
Simplified72.8%
associate-*l/72.9%
*-un-lft-identity72.9%
Applied egg-rr72.9%
Taylor expanded in t around inf 76.9%
associate--l+76.9%
distribute-lft-out--76.9%
div-sub77.9%
mul-1-neg77.9%
unsub-neg77.9%
div-sub76.9%
associate-/l*81.6%
associate-/l*76.8%
distribute-rgt-out--82.6%
Simplified82.6%
if 1.9999999999999999e-77 < a Initial program 75.1%
associate-/l*93.3%
*-commutative93.3%
Applied egg-rr93.3%
Taylor expanded in y around inf 66.6%
associate-/l*79.5%
Simplified79.5%
Final simplification81.7%
(FPCore (x y z t a)
:precision binary64
(if (<= y -3.4e-65)
(+ x (/ y (/ (- a t) (- z t))))
(if (<= y 7.5e-159)
(* x (+ 1.0 (/ (- z t) (- t a))))
(+ x (* y (/ (- z t) (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -3.4e-65) {
tmp = x + (y / ((a - t) / (z - t)));
} else if (y <= 7.5e-159) {
tmp = x * (1.0 + ((z - t) / (t - a)));
} else {
tmp = x + (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 (y <= (-3.4d-65)) then
tmp = x + (y / ((a - t) / (z - t)))
else if (y <= 7.5d-159) then
tmp = x * (1.0d0 + ((z - t) / (t - a)))
else
tmp = x + (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 (y <= -3.4e-65) {
tmp = x + (y / ((a - t) / (z - t)));
} else if (y <= 7.5e-159) {
tmp = x * (1.0 + ((z - t) / (t - a)));
} else {
tmp = x + (y * ((z - t) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -3.4e-65: tmp = x + (y / ((a - t) / (z - t))) elif y <= 7.5e-159: tmp = x * (1.0 + ((z - t) / (t - a))) else: tmp = x + (y * ((z - t) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -3.4e-65) tmp = Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))); elseif (y <= 7.5e-159) tmp = Float64(x * Float64(1.0 + Float64(Float64(z - t) / Float64(t - a)))); else tmp = Float64(x + 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 (y <= -3.4e-65) tmp = x + (y / ((a - t) / (z - t))); elseif (y <= 7.5e-159) tmp = x * (1.0 + ((z - t) / (t - a))); else tmp = x + (y * ((z - t) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -3.4e-65], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-159], N[(x * N[(1.0 + N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{-65}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-159}:\\
\;\;\;\;x \cdot \left(1 + \frac{z - t}{t - a}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if y < -3.39999999999999987e-65Initial program 66.9%
associate-/l*92.0%
*-commutative92.0%
Applied egg-rr92.0%
clear-num92.0%
inv-pow92.0%
Applied egg-rr92.0%
unpow-192.0%
Simplified92.0%
associate-*l/92.1%
*-un-lft-identity92.1%
Applied egg-rr92.1%
Taylor expanded in y around inf 84.6%
if -3.39999999999999987e-65 < y < 7.5e-159Initial program 67.0%
+-commutative67.0%
associate-/l*72.1%
fma-define72.1%
Simplified72.1%
Taylor expanded in y around 0 56.9%
mul-1-neg56.9%
*-lft-identity56.9%
*-commutative56.9%
*-rgt-identity56.9%
times-frac63.2%
/-rgt-identity63.2%
distribute-lft-neg-out63.2%
mul-1-neg63.2%
distribute-rgt-in63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
if 7.5e-159 < y Initial program 69.4%
associate-/l*89.9%
*-commutative89.9%
Applied egg-rr89.9%
Taylor expanded in y around inf 63.0%
associate-/l*81.6%
Simplified81.6%
Final simplification76.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -65000.0) (not (<= t 7.5e+82))) (* y (- (- -1.0) (/ z t))) (+ x (/ (- y x) (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -65000.0) || !(t <= 7.5e+82)) {
tmp = y * (-(-1.0) - (z / t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-65000.0d0)) .or. (.not. (t <= 7.5d+82))) then
tmp = y * (-(-1.0d0) - (z / t))
else
tmp = x + ((y - x) / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -65000.0) || !(t <= 7.5e+82)) {
tmp = y * (-(-1.0) - (z / t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -65000.0) or not (t <= 7.5e+82): tmp = y * (-(-1.0) - (z / t)) else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -65000.0) || !(t <= 7.5e+82)) tmp = Float64(y * Float64(Float64(-(-1.0)) - Float64(z / t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -65000.0) || ~((t <= 7.5e+82))) tmp = y * (-(-1.0) - (z / t)); else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -65000.0], N[Not[LessEqual[t, 7.5e+82]], $MachinePrecision]], N[(y * N[((--1.0) - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -65000 \lor \neg \left(t \leq 7.5 \cdot 10^{+82}\right):\\
\;\;\;\;y \cdot \left(\left(--1\right) - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -65000 or 7.4999999999999999e82 < t Initial program 44.1%
Taylor expanded in y around inf 38.1%
*-commutative38.1%
*-lft-identity38.1%
times-frac57.3%
/-rgt-identity57.3%
Simplified57.3%
Taylor expanded in a around 0 48.8%
associate-*r/48.8%
neg-mul-148.8%
Simplified48.8%
Taylor expanded in y around -inf 60.2%
if -65000 < t < 7.4999999999999999e82Initial program 87.7%
associate-/l*92.9%
*-commutative92.9%
Applied egg-rr92.9%
clear-num92.5%
inv-pow92.5%
Applied egg-rr92.5%
unpow-192.5%
Simplified92.5%
associate-*l/92.6%
*-un-lft-identity92.6%
Applied egg-rr92.6%
Taylor expanded in t around 0 71.1%
Final simplification66.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1050000000.0) (not (<= t 1e+82))) (* y (- (- -1.0) (/ z t))) (+ x (* (- y x) (/ z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1050000000.0) || !(t <= 1e+82)) {
tmp = y * (-(-1.0) - (z / t));
} else {
tmp = x + ((y - x) * (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1050000000.0d0)) .or. (.not. (t <= 1d+82))) then
tmp = y * (-(-1.0d0) - (z / t))
else
tmp = x + ((y - x) * (z / 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 <= -1050000000.0) || !(t <= 1e+82)) {
tmp = y * (-(-1.0) - (z / t));
} else {
tmp = x + ((y - x) * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1050000000.0) or not (t <= 1e+82): tmp = y * (-(-1.0) - (z / t)) else: tmp = x + ((y - x) * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1050000000.0) || !(t <= 1e+82)) tmp = Float64(y * Float64(Float64(-(-1.0)) - Float64(z / t))); else tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1050000000.0) || ~((t <= 1e+82))) tmp = y * (-(-1.0) - (z / t)); else tmp = x + ((y - x) * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1050000000.0], N[Not[LessEqual[t, 1e+82]], $MachinePrecision]], N[(y * N[((--1.0) - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1050000000 \lor \neg \left(t \leq 10^{+82}\right):\\
\;\;\;\;y \cdot \left(\left(--1\right) - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\end{array}
\end{array}
if t < -1.05e9 or 9.9999999999999996e81 < t Initial program 44.1%
Taylor expanded in y around inf 38.1%
*-commutative38.1%
*-lft-identity38.1%
times-frac57.3%
/-rgt-identity57.3%
Simplified57.3%
Taylor expanded in a around 0 48.8%
associate-*r/48.8%
neg-mul-148.8%
Simplified48.8%
Taylor expanded in y around -inf 60.2%
if -1.05e9 < t < 9.9999999999999996e81Initial program 87.7%
associate-/l*92.9%
*-commutative92.9%
Applied egg-rr92.9%
Taylor expanded in t around 0 71.1%
Final simplification66.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -70000000.0) (not (<= t 8.2e+81))) (* y (- (- -1.0) (/ z t))) (+ x (* z (/ (- y x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -70000000.0) || !(t <= 8.2e+81)) {
tmp = y * (-(-1.0) - (z / 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 <= (-70000000.0d0)) .or. (.not. (t <= 8.2d+81))) then
tmp = y * (-(-1.0d0) - (z / 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 <= -70000000.0) || !(t <= 8.2e+81)) {
tmp = y * (-(-1.0) - (z / t));
} else {
tmp = x + (z * ((y - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -70000000.0) or not (t <= 8.2e+81): tmp = y * (-(-1.0) - (z / t)) else: tmp = x + (z * ((y - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -70000000.0) || !(t <= 8.2e+81)) tmp = Float64(y * Float64(Float64(-(-1.0)) - Float64(z / 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 <= -70000000.0) || ~((t <= 8.2e+81))) tmp = y * (-(-1.0) - (z / t)); else tmp = x + (z * ((y - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -70000000.0], N[Not[LessEqual[t, 8.2e+81]], $MachinePrecision]], N[(y * N[((--1.0) - N[(z / 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 -70000000 \lor \neg \left(t \leq 8.2 \cdot 10^{+81}\right):\\
\;\;\;\;y \cdot \left(\left(--1\right) - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\end{array}
if t < -7e7 or 8.20000000000000024e81 < t Initial program 44.1%
Taylor expanded in y around inf 38.1%
*-commutative38.1%
*-lft-identity38.1%
times-frac57.3%
/-rgt-identity57.3%
Simplified57.3%
Taylor expanded in a around 0 48.8%
associate-*r/48.8%
neg-mul-148.8%
Simplified48.8%
Taylor expanded in y around -inf 60.2%
if -7e7 < t < 8.20000000000000024e81Initial program 87.7%
Taylor expanded in t around 0 66.3%
associate-/l*67.9%
Simplified67.9%
Final simplification64.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.02e+61) y (if (<= t 3e+156) (+ x (* y (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.02e+61) {
tmp = y;
} else if (t <= 3e+156) {
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 <= (-1.02d+61)) then
tmp = y
else if (t <= 3d+156) 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 <= -1.02e+61) {
tmp = y;
} else if (t <= 3e+156) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.02e+61: tmp = y elif t <= 3e+156: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.02e+61) tmp = y; elseif (t <= 3e+156) 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 <= -1.02e+61) tmp = y; elseif (t <= 3e+156) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.02e+61], y, If[LessEqual[t, 3e+156], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+61}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+156}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.01999999999999999e61 or 3e156 < t Initial program 37.8%
Taylor expanded in y around inf 32.8%
*-commutative32.8%
*-lft-identity32.8%
times-frac57.7%
/-rgt-identity57.7%
Simplified57.7%
Taylor expanded in t around inf 55.4%
+-commutative55.4%
Simplified55.4%
Taylor expanded in y around inf 63.4%
if -1.01999999999999999e61 < t < 3e156Initial program 81.1%
Taylor expanded in y around inf 65.8%
*-commutative65.8%
*-lft-identity65.8%
times-frac67.8%
/-rgt-identity67.8%
Simplified67.8%
Taylor expanded in t around 0 50.9%
associate-/l*54.5%
Simplified54.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.1e+66) y (if (<= t 1e+87) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.1e+66) {
tmp = y;
} else if (t <= 1e+87) {
tmp = x * (1.0 - (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 <= (-2.1d+66)) then
tmp = y
else if (t <= 1d+87) then
tmp = x * (1.0d0 - (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 <= -2.1e+66) {
tmp = y;
} else if (t <= 1e+87) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.1e+66: tmp = y elif t <= 1e+87: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.1e+66) tmp = y; elseif (t <= 1e+87) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.1e+66) tmp = y; elseif (t <= 1e+87) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.1e+66], y, If[LessEqual[t, 1e+87], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+66}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 10^{+87}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.10000000000000005e66 or 9.9999999999999996e86 < t Initial program 41.6%
Taylor expanded in y around inf 36.5%
*-commutative36.5%
*-lft-identity36.5%
times-frac58.6%
/-rgt-identity58.6%
Simplified58.6%
Taylor expanded in t around inf 50.0%
+-commutative50.0%
Simplified50.0%
Taylor expanded in y around inf 56.3%
if -2.10000000000000005e66 < t < 9.9999999999999996e86Initial program 85.1%
Taylor expanded in t around 0 62.2%
Taylor expanded in x around inf 49.9%
mul-1-neg49.9%
unsub-neg49.9%
Simplified49.9%
(FPCore (x y z t a) :precision binary64 (if (<= t -530000000000.0) y (if (<= t 1.3e+64) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -530000000000.0) {
tmp = y;
} else if (t <= 1.3e+64) {
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 <= (-530000000000.0d0)) then
tmp = y
else if (t <= 1.3d+64) 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 <= -530000000000.0) {
tmp = y;
} else if (t <= 1.3e+64) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -530000000000.0: tmp = y elif t <= 1.3e+64: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -530000000000.0) tmp = y; elseif (t <= 1.3e+64) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -530000000000.0) tmp = y; elseif (t <= 1.3e+64) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -530000000000.0], y, If[LessEqual[t, 1.3e+64], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -530000000000:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+64}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.3e11 or 1.29999999999999998e64 < t Initial program 45.7%
Taylor expanded in y around inf 40.2%
*-commutative40.2%
*-lft-identity40.2%
times-frac59.8%
/-rgt-identity59.8%
Simplified59.8%
Taylor expanded in t around inf 46.5%
+-commutative46.5%
Simplified46.5%
Taylor expanded in y around inf 50.7%
if -5.3e11 < t < 1.29999999999999998e64Initial program 88.5%
+-commutative88.5%
associate-/l*91.9%
fma-define91.9%
Simplified91.9%
Taylor expanded in a around inf 37.9%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 67.9%
+-commutative67.9%
associate-/l*85.1%
fma-define85.1%
Simplified85.1%
Taylor expanded in a around inf 25.2%
(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 2024163
(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))))