
(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 16 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 -1e-286)
(+ x (/ (- y x) (/ (- a t) (- z t))))
(if (<= t_1 0.0)
(* x (+ (/ (- (+ z (/ (* y a) x)) (+ a (* y (/ z x)))) t) (/ y x)))
(+ x (/ (/ (- z t) (- a t)) (/ -1.0 (- x y))))))))
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 <= -1e-286) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = x * ((((z + ((y * a) / x)) - (a + (y * (z / x)))) / t) + (y / x));
} else {
tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - 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) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if (t_1 <= (-1d-286)) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else if (t_1 <= 0.0d0) then
tmp = x * ((((z + ((y * a) / x)) - (a + (y * (z / x)))) / t) + (y / x))
else
tmp = x + (((z - t) / (a - t)) / ((-1.0d0) / (x - y)))
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 <= -1e-286) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = x * ((((z + ((y * a) / x)) - (a + (y * (z / x)))) / t) + (y / x));
} else {
tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - y)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_1 <= -1e-286: tmp = x + ((y - x) / ((a - t) / (z - t))) elif t_1 <= 0.0: tmp = x * ((((z + ((y * a) / x)) - (a + (y * (z / x)))) / t) + (y / x)) else: tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - y))) 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 <= -1e-286) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); elseif (t_1 <= 0.0) tmp = Float64(x * Float64(Float64(Float64(Float64(z + Float64(Float64(y * a) / x)) - Float64(a + Float64(y * Float64(z / x)))) / t) + Float64(y / x))); else tmp = Float64(x + Float64(Float64(Float64(z - t) / Float64(a - t)) / Float64(-1.0 / Float64(x - y)))); 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 <= -1e-286) tmp = x + ((y - x) / ((a - t) / (z - t))); elseif (t_1 <= 0.0) tmp = x * ((((z + ((y * a) / x)) - (a + (y * (z / x)))) / t) + (y / x)); else tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - y))); 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, -1e-286], 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[(x * N[(N[(N[(N[(z + N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(a + N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] / N[(-1.0 / N[(x - y), $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 -1 \cdot 10^{-286}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;x \cdot \left(\frac{\left(z + \frac{y \cdot a}{x}\right) - \left(a + y \cdot \frac{z}{x}\right)}{t} + \frac{y}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{-1}{x - y}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-286Initial program 74.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.8%
Applied egg-rr90.8%
if -1.00000000000000005e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.1%
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
fma-defineN/A
fma-lowering-fma.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f643.4%
Applied egg-rr3.4%
Taylor expanded in x around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
Simplified73.2%
Taylor expanded in t around -inf
--lowering--.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6499.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 74.3%
associate-/l*N/A
*-commutativeN/A
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6491.8%
Applied egg-rr91.8%
Final simplification91.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -1e-286)
(+ x (/ (- y x) (/ (- a t) (- z t))))
(if (<= t_1 0.0)
(+ y (/ (* (- y x) (- a z)) t))
(+ x (/ (/ (- z t) (- a t)) (/ -1.0 (- x y))))))))
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 <= -1e-286) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - 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) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if (t_1 <= (-1d-286)) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else if (t_1 <= 0.0d0) then
tmp = y + (((y - x) * (a - z)) / t)
else
tmp = x + (((z - t) / (a - t)) / ((-1.0d0) / (x - y)))
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 <= -1e-286) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - y)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_1 <= -1e-286: tmp = x + ((y - x) / ((a - t) / (z - t))) elif t_1 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) else: tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - y))) 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 <= -1e-286) 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(y - x) * Float64(a - z)) / t)); else tmp = Float64(x + Float64(Float64(Float64(z - t) / Float64(a - t)) / Float64(-1.0 / Float64(x - y)))); 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 <= -1e-286) tmp = x + ((y - x) / ((a - t) / (z - t))); elseif (t_1 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); else tmp = x + (((z - t) / (a - t)) / (-1.0 / (x - y))); 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, -1e-286], 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[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] / N[(-1.0 / N[(x - y), $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 -1 \cdot 10^{-286}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{-1}{x - y}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-286Initial program 74.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.8%
Applied egg-rr90.8%
if -1.00000000000000005e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.1%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6499.6%
Simplified99.6%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 74.3%
associate-/l*N/A
*-commutativeN/A
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6491.8%
Applied egg-rr91.8%
Final simplification91.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ (- a t) (- z t)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -1e-286)
t_1
(if (<= t_2 0.0) (+ y (/ (* (- y x) (- a z)) t)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / ((a - t) / (z - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e-286) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} 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) :: t_2
real(8) :: tmp
t_1 = x + ((y - x) / ((a - t) / (z - t)))
t_2 = x + (((y - x) * (z - t)) / (a - t))
if (t_2 <= (-1d-286)) then
tmp = t_1
else if (t_2 <= 0.0d0) then
tmp = y + (((y - x) * (a - z)) / t)
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) / ((a - t) / (z - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e-286) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / ((a - t) / (z - t))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -1e-286: tmp = t_1 elif t_2 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -1e-286) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - x) / ((a - t) / (z - t))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -1e-286) tmp = t_1; elseif (t_2 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-286], t$95$1, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{\frac{a - t}{z - t}}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-286}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-286 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 74.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6491.2%
Applied egg-rr91.2%
if -1.00000000000000005e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.1%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6499.6%
Simplified99.6%
Final simplification91.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ y (/ (- a t) (- z t)))))
(if (<= t -1.2e+149)
t_1
(if (<= t -7.8e-103)
(* x (+ (/ (- z t) (- t a)) 1.0))
(if (<= t 9.6e-237)
(+ x (* z (/ (- y x) a)))
(if (<= t 8e+70) (+ x (* (- z t) (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / ((a - t) / (z - t));
double tmp;
if (t <= -1.2e+149) {
tmp = t_1;
} else if (t <= -7.8e-103) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} else if (t <= 9.6e-237) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8e+70) {
tmp = x + ((z - t) * (y / 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 / ((a - t) / (z - t))
if (t <= (-1.2d+149)) then
tmp = t_1
else if (t <= (-7.8d-103)) then
tmp = x * (((z - t) / (t - a)) + 1.0d0)
else if (t <= 9.6d-237) then
tmp = x + (z * ((y - x) / a))
else if (t <= 8d+70) then
tmp = x + ((z - t) * (y / 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 / ((a - t) / (z - t));
double tmp;
if (t <= -1.2e+149) {
tmp = t_1;
} else if (t <= -7.8e-103) {
tmp = x * (((z - t) / (t - a)) + 1.0);
} else if (t <= 9.6e-237) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8e+70) {
tmp = x + ((z - t) * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / ((a - t) / (z - t)) tmp = 0 if t <= -1.2e+149: tmp = t_1 elif t <= -7.8e-103: tmp = x * (((z - t) / (t - a)) + 1.0) elif t <= 9.6e-237: tmp = x + (z * ((y - x) / a)) elif t <= 8e+70: tmp = x + ((z - t) * (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(Float64(a - t) / Float64(z - t))) tmp = 0.0 if (t <= -1.2e+149) tmp = t_1; elseif (t <= -7.8e-103) tmp = Float64(x * Float64(Float64(Float64(z - t) / Float64(t - a)) + 1.0)); elseif (t <= 9.6e-237) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 8e+70) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / ((a - t) / (z - t)); tmp = 0.0; if (t <= -1.2e+149) tmp = t_1; elseif (t <= -7.8e-103) tmp = x * (((z - t) / (t - a)) + 1.0); elseif (t <= 9.6e-237) tmp = x + (z * ((y - x) / a)); elseif (t <= 8e+70) tmp = x + ((z - t) * (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e+149], t$95$1, If[LessEqual[t, -7.8e-103], N[(x * N[(N[(N[(z - t), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e-237], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+70], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -7.8 \cdot 10^{-103}:\\
\;\;\;\;x \cdot \left(\frac{z - t}{t - a} + 1\right)\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{-237}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+70}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.20000000000000006e149 or 8.00000000000000058e70 < t Initial program 36.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6436.8%
Simplified36.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6466.2%
Applied egg-rr66.2%
if -1.20000000000000006e149 < t < -7.8000000000000004e-103Initial program 72.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6465.3%
Simplified65.3%
if -7.8000000000000004e-103 < t < 9.5999999999999999e-237Initial program 90.1%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6483.4%
Simplified83.4%
Taylor expanded in z around inf
Simplified80.7%
if 9.5999999999999999e-237 < t < 8.00000000000000058e70Initial program 88.5%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6475.7%
Simplified75.7%
Taylor expanded in y around inf
/-lowering-/.f6474.2%
Simplified74.2%
Final simplification71.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ y (/ (- a t) (- z t)))))
(if (<= t -1.36e+114)
t_1
(if (<= t 3.1e-237)
(+ x (* z (/ (- y x) a)))
(if (<= t 8.8e+70) (+ x (* (- z t) (/ y a))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / ((a - t) / (z - t));
double tmp;
if (t <= -1.36e+114) {
tmp = t_1;
} else if (t <= 3.1e-237) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8.8e+70) {
tmp = x + ((z - t) * (y / 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 / ((a - t) / (z - t))
if (t <= (-1.36d+114)) then
tmp = t_1
else if (t <= 3.1d-237) then
tmp = x + (z * ((y - x) / a))
else if (t <= 8.8d+70) then
tmp = x + ((z - t) * (y / 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 / ((a - t) / (z - t));
double tmp;
if (t <= -1.36e+114) {
tmp = t_1;
} else if (t <= 3.1e-237) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 8.8e+70) {
tmp = x + ((z - t) * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / ((a - t) / (z - t)) tmp = 0 if t <= -1.36e+114: tmp = t_1 elif t <= 3.1e-237: tmp = x + (z * ((y - x) / a)) elif t <= 8.8e+70: tmp = x + ((z - t) * (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(Float64(a - t) / Float64(z - t))) tmp = 0.0 if (t <= -1.36e+114) tmp = t_1; elseif (t <= 3.1e-237) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 8.8e+70) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / ((a - t) / (z - t)); tmp = 0.0; if (t <= -1.36e+114) tmp = t_1; elseif (t <= 3.1e-237) tmp = x + (z * ((y - x) / a)); elseif (t <= 8.8e+70) tmp = x + ((z - t) * (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.36e+114], t$95$1, If[LessEqual[t, 3.1e-237], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e+70], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{if}\;t \leq -1.36 \cdot 10^{+114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-237}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+70}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.36000000000000008e114 or 8.80000000000000003e70 < t Initial program 38.3%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6435.7%
Simplified35.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6464.1%
Applied egg-rr64.1%
if -1.36000000000000008e114 < t < 3.0999999999999998e-237Initial program 84.3%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6477.7%
Simplified77.7%
Taylor expanded in z around inf
Simplified73.1%
if 3.0999999999999998e-237 < t < 8.80000000000000003e70Initial program 88.5%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6475.7%
Simplified75.7%
Taylor expanded in y around inf
/-lowering-/.f6474.2%
Simplified74.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.1e+144)
y
(if (<= t 6.8e-237)
(+ x (* z (/ (- y x) a)))
(if (<= t 2.7e+86) (+ x (* (- z t) (/ y a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.1e+144) {
tmp = y;
} else if (t <= 6.8e-237) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 2.7e+86) {
tmp = x + ((z - t) * (y / 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 <= (-5.1d+144)) then
tmp = y
else if (t <= 6.8d-237) then
tmp = x + (z * ((y - x) / a))
else if (t <= 2.7d+86) then
tmp = x + ((z - t) * (y / 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 <= -5.1e+144) {
tmp = y;
} else if (t <= 6.8e-237) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 2.7e+86) {
tmp = x + ((z - t) * (y / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.1e+144: tmp = y elif t <= 6.8e-237: tmp = x + (z * ((y - x) / a)) elif t <= 2.7e+86: tmp = x + ((z - t) * (y / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.1e+144) tmp = y; elseif (t <= 6.8e-237) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 2.7e+86) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.1e+144) tmp = y; elseif (t <= 6.8e-237) tmp = x + (z * ((y - x) / a)); elseif (t <= 2.7e+86) tmp = x + ((z - t) * (y / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.1e+144], y, If[LessEqual[t, 6.8e-237], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+86], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.1 \cdot 10^{+144}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-237}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+86}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.0999999999999999e144 or 2.70000000000000018e86 < t Initial program 36.2%
Taylor expanded in t around inf
Simplified59.8%
if -5.0999999999999999e144 < t < 6.8000000000000005e-237Initial program 83.2%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6477.8%
Simplified77.8%
Taylor expanded in z around inf
Simplified71.6%
if 6.8000000000000005e-237 < t < 2.70000000000000018e86Initial program 88.7%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6476.1%
Simplified76.1%
Taylor expanded in y around inf
/-lowering-/.f6474.7%
Simplified74.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -7e+149)
(/ y (/ (- a t) (- z t)))
(if (<= t 4.8e+83)
(+ x (/ (* (- y x) (- z t)) (- a t)))
(+ y (/ (* (- y x) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7e+149) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 4.8e+83) {
tmp = x + (((y - x) * (z - t)) / (a - t));
} else {
tmp = y + (((y - x) * (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 <= (-7d+149)) then
tmp = y / ((a - t) / (z - t))
else if (t <= 4.8d+83) then
tmp = x + (((y - x) * (z - t)) / (a - t))
else
tmp = y + (((y - x) * (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 <= -7e+149) {
tmp = y / ((a - t) / (z - t));
} else if (t <= 4.8e+83) {
tmp = x + (((y - x) * (z - t)) / (a - t));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7e+149: tmp = y / ((a - t) / (z - t)) elif t <= 4.8e+83: tmp = x + (((y - x) * (z - t)) / (a - t)) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7e+149) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (t <= 4.8e+83) tmp = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7e+149) tmp = y / ((a - t) / (z - t)); elseif (t <= 4.8e+83) tmp = x + (((y - x) * (z - t)) / (a - t)); else tmp = y + (((y - x) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7e+149], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+83], N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+149}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+83}:\\
\;\;\;\;x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -7.00000000000000023e149Initial program 38.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6437.7%
Simplified37.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6468.3%
Applied egg-rr68.3%
if -7.00000000000000023e149 < t < 4.79999999999999982e83Initial program 85.3%
if 4.79999999999999982e83 < t Initial program 33.9%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6474.4%
Simplified74.4%
Final simplification81.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.1e+146)
y
(if (<= t -4.1e-308)
(* x (- 1.0 (/ (- z t) a)))
(if (<= t 2e+79) (+ x (* z (/ y a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e+146) {
tmp = y;
} else if (t <= -4.1e-308) {
tmp = x * (1.0 - ((z - t) / a));
} else if (t <= 2e+79) {
tmp = x + (z * (y / 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.1d+146)) then
tmp = y
else if (t <= (-4.1d-308)) then
tmp = x * (1.0d0 - ((z - t) / a))
else if (t <= 2d+79) then
tmp = x + (z * (y / 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.1e+146) {
tmp = y;
} else if (t <= -4.1e-308) {
tmp = x * (1.0 - ((z - t) / a));
} else if (t <= 2e+79) {
tmp = x + (z * (y / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.1e+146: tmp = y elif t <= -4.1e-308: tmp = x * (1.0 - ((z - t) / a)) elif t <= 2e+79: tmp = x + (z * (y / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.1e+146) tmp = y; elseif (t <= -4.1e-308) tmp = Float64(x * Float64(1.0 - Float64(Float64(z - t) / a))); elseif (t <= 2e+79) tmp = Float64(x + Float64(z * Float64(y / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.1e+146) tmp = y; elseif (t <= -4.1e-308) tmp = x * (1.0 - ((z - t) / a)); elseif (t <= 2e+79) tmp = x + (z * (y / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.1e+146], y, If[LessEqual[t, -4.1e-308], N[(x * N[(1.0 - N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+79], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+146}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -4.1 \cdot 10^{-308}:\\
\;\;\;\;x \cdot \left(1 - \frac{z - t}{a}\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+79}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.0999999999999999e146 or 1.99999999999999993e79 < t Initial program 36.2%
Taylor expanded in t around inf
Simplified59.8%
if -1.0999999999999999e146 < t < -4.09999999999999983e-308Initial program 82.0%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6472.8%
Simplified72.8%
+-commutativeN/A
+-lowering-+.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6472.8%
Applied egg-rr72.8%
Taylor expanded in y around 0
mul-1-negN/A
*-rgt-identityN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6458.9%
Simplified58.9%
if -4.09999999999999983e-308 < t < 1.99999999999999993e79Initial program 88.4%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6481.8%
Simplified81.8%
Taylor expanded in y around inf
/-lowering-/.f6474.7%
Simplified74.7%
Taylor expanded in z around inf
Simplified67.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.6e+141)
y
(if (<= t 6e-309)
(* x (- 1.0 (/ z a)))
(if (<= t 5.8e+80) (+ x (* z (/ y a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.6e+141) {
tmp = y;
} else if (t <= 6e-309) {
tmp = x * (1.0 - (z / a));
} else if (t <= 5.8e+80) {
tmp = x + (z * (y / 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 <= (-3.6d+141)) then
tmp = y
else if (t <= 6d-309) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 5.8d+80) then
tmp = x + (z * (y / 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 <= -3.6e+141) {
tmp = y;
} else if (t <= 6e-309) {
tmp = x * (1.0 - (z / a));
} else if (t <= 5.8e+80) {
tmp = x + (z * (y / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.6e+141: tmp = y elif t <= 6e-309: tmp = x * (1.0 - (z / a)) elif t <= 5.8e+80: tmp = x + (z * (y / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.6e+141) tmp = y; elseif (t <= 6e-309) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 5.8e+80) tmp = Float64(x + Float64(z * Float64(y / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.6e+141) tmp = y; elseif (t <= 6e-309) tmp = x * (1.0 - (z / a)); elseif (t <= 5.8e+80) tmp = x + (z * (y / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.6e+141], y, If[LessEqual[t, 6e-309], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+80], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-309}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+80}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.6000000000000001e141 or 5.79999999999999971e80 < t Initial program 36.2%
Taylor expanded in t around inf
Simplified59.8%
if -3.6000000000000001e141 < t < 6.000000000000001e-309Initial program 82.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.0%
Simplified67.0%
Taylor expanded in t around 0
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6458.6%
Simplified58.6%
if 6.000000000000001e-309 < t < 5.79999999999999971e80Initial program 88.4%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6481.8%
Simplified81.8%
Taylor expanded in y around inf
/-lowering-/.f6474.7%
Simplified74.7%
Taylor expanded in z around inf
Simplified67.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) a)))))
(if (<= a -1.2e-47)
t_1
(if (<= a 6.2e-93) (+ y (/ (* (- y x) (- a z)) t)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) / a));
double tmp;
if (a <= -1.2e-47) {
tmp = t_1;
} else if (a <= 6.2e-93) {
tmp = y + (((y - x) * (a - z)) / t);
} 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 + ((z - t) * ((y - x) / a))
if (a <= (-1.2d-47)) then
tmp = t_1
else if (a <= 6.2d-93) then
tmp = y + (((y - x) * (a - z)) / t)
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 + ((z - t) * ((y - x) / a));
double tmp;
if (a <= -1.2e-47) {
tmp = t_1;
} else if (a <= 6.2e-93) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) / a)) tmp = 0 if a <= -1.2e-47: tmp = t_1 elif a <= 6.2e-93: tmp = y + (((y - x) * (a - z)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a))) tmp = 0.0 if (a <= -1.2e-47) tmp = t_1; elseif (a <= 6.2e-93) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - t) * ((y - x) / a)); tmp = 0.0; if (a <= -1.2e-47) tmp = t_1; elseif (a <= 6.2e-93) tmp = y + (((y - x) * (a - z)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-47], t$95$1, If[LessEqual[a, 6.2e-93], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a}\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-93}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.2e-47 or 6.19999999999999999e-93 < a Initial program 73.5%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6474.9%
Simplified74.9%
if -1.2e-47 < a < 6.19999999999999999e-93Initial program 61.6%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6480.5%
Simplified80.5%
Final simplification77.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ y (/ (- a t) (- z t)))))
(if (<= t -3.6e+141)
t_1
(if (<= t 1.45e+88) (+ x (* (- z t) (/ (- y x) a))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / ((a - t) / (z - t));
double tmp;
if (t <= -3.6e+141) {
tmp = t_1;
} else if (t <= 1.45e+88) {
tmp = x + ((z - t) * ((y - x) / 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 / ((a - t) / (z - t))
if (t <= (-3.6d+141)) then
tmp = t_1
else if (t <= 1.45d+88) then
tmp = x + ((z - t) * ((y - x) / 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 / ((a - t) / (z - t));
double tmp;
if (t <= -3.6e+141) {
tmp = t_1;
} else if (t <= 1.45e+88) {
tmp = x + ((z - t) * ((y - x) / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / ((a - t) / (z - t)) tmp = 0 if t <= -3.6e+141: tmp = t_1 elif t <= 1.45e+88: tmp = x + ((z - t) * ((y - x) / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(Float64(a - t) / Float64(z - t))) tmp = 0.0 if (t <= -3.6e+141) tmp = t_1; elseif (t <= 1.45e+88) tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / ((a - t) / (z - t)); tmp = 0.0; if (t <= -3.6e+141) tmp = t_1; elseif (t <= 1.45e+88) tmp = x + ((z - t) * ((y - x) / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+141], t$95$1, If[LessEqual[t, 1.45e+88], N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+88}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.6000000000000001e141 or 1.45e88 < t Initial program 34.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6435.3%
Simplified35.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6465.3%
Applied egg-rr65.3%
if -3.6000000000000001e141 < t < 1.45e88Initial program 85.3%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6477.0%
Simplified77.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.5e+145) y (if (<= t 1.95e+93) (+ x (* z (/ (- y x) a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.5e+145) {
tmp = y;
} else if (t <= 1.95e+93) {
tmp = x + (z * ((y - x) / 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.5d+145)) then
tmp = y
else if (t <= 1.95d+93) then
tmp = x + (z * ((y - x) / 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.5e+145) {
tmp = y;
} else if (t <= 1.95e+93) {
tmp = x + (z * ((y - x) / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.5e+145: tmp = y elif t <= 1.95e+93: tmp = x + (z * ((y - x) / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.5e+145) tmp = y; elseif (t <= 1.95e+93) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.5e+145) tmp = y; elseif (t <= 1.95e+93) tmp = x + (z * ((y - x) / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.5e+145], y, If[LessEqual[t, 1.95e+93], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{+145}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+93}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.5000000000000001e145 or 1.9500000000000001e93 < t Initial program 35.1%
Taylor expanded in t around inf
Simplified60.7%
if -1.5000000000000001e145 < t < 1.9500000000000001e93Initial program 84.8%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6476.5%
Simplified76.5%
Taylor expanded in z around inf
Simplified69.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* (- z t) (/ y (- a t))))) (if (<= y -1e+25) t_1 (if (<= y 6.5e+67) (* x (- 1.0 (/ z a))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) * (y / (a - t));
double tmp;
if (y <= -1e+25) {
tmp = t_1;
} else if (y <= 6.5e+67) {
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 = (z - t) * (y / (a - t))
if (y <= (-1d+25)) then
tmp = t_1
else if (y <= 6.5d+67) 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 = (z - t) * (y / (a - t));
double tmp;
if (y <= -1e+25) {
tmp = t_1;
} else if (y <= 6.5e+67) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z - t) * (y / (a - t)) tmp = 0 if y <= -1e+25: tmp = t_1 elif y <= 6.5e+67: tmp = x * (1.0 - (z / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) * Float64(y / Float64(a - t))) tmp = 0.0 if (y <= -1e+25) tmp = t_1; elseif (y <= 6.5e+67) 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 = (z - t) * (y / (a - t)); tmp = 0.0; if (y <= -1e+25) tmp = t_1; elseif (y <= 6.5e+67) 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[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1e+25], t$95$1, If[LessEqual[y, 6.5e+67], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{if}\;y \leq -1 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.00000000000000009e25 or 6.4999999999999995e67 < y Initial program 61.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6445.2%
Simplified45.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6474.7%
Applied egg-rr74.7%
if -1.00000000000000009e25 < y < 6.4999999999999995e67Initial program 74.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6463.1%
Simplified63.1%
Taylor expanded in t around 0
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6453.0%
Simplified53.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.6e+141) y (if (<= t 2.25e+96) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.6e+141) {
tmp = y;
} else if (t <= 2.25e+96) {
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 <= (-3.6d+141)) then
tmp = y
else if (t <= 2.25d+96) 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 <= -3.6e+141) {
tmp = y;
} else if (t <= 2.25e+96) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.6e+141: tmp = y elif t <= 2.25e+96: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.6e+141) tmp = y; elseif (t <= 2.25e+96) 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 <= -3.6e+141) tmp = y; elseif (t <= 2.25e+96) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.6e+141], y, If[LessEqual[t, 2.25e+96], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+141}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+96}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.6000000000000001e141 or 2.24999999999999979e96 < t Initial program 35.1%
Taylor expanded in t around inf
Simplified60.7%
if -3.6000000000000001e141 < t < 2.24999999999999979e96Initial program 84.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6462.2%
Simplified62.2%
Taylor expanded in t around 0
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6454.2%
Simplified54.2%
(FPCore (x y z t a) :precision binary64 (if (<= t -5.5e+148) y (if (<= t 3.2e+71) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.5e+148) {
tmp = y;
} else if (t <= 3.2e+71) {
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 <= (-5.5d+148)) then
tmp = y
else if (t <= 3.2d+71) 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 <= -5.5e+148) {
tmp = y;
} else if (t <= 3.2e+71) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.5e+148: tmp = y elif t <= 3.2e+71: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.5e+148) tmp = y; elseif (t <= 3.2e+71) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.5e+148) tmp = y; elseif (t <= 3.2e+71) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.5e+148], y, If[LessEqual[t, 3.2e+71], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{+148}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+71}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.5e148 or 3.20000000000000023e71 < t Initial program 36.2%
Taylor expanded in t around inf
Simplified59.8%
if -5.5e148 < t < 3.20000000000000023e71Initial program 85.2%
Taylor expanded in a around inf
Simplified40.3%
(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 69.1%
Taylor expanded in a around inf
Simplified31.0%
(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 2024161
(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))))