
(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 18 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-301)
(+ 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-301) {
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-301)) 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-301) {
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-301: 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-301) 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-301) 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-301], 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^{-301}:\\
\;\;\;\;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.00000000000000007e-301Initial program 71.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6485.7%
Applied egg-rr85.7%
if -1.00000000000000007e-301 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
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.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 78.7%
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--.f6492.1%
Applied egg-rr92.1%
Final simplification89.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ x (/ (- y x) (/ (- a t) z)))
(if (<= t_1 -1e-289)
t_1
(if (<= t_1 0.0)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= t_1 2e+294) t_1 (* y (/ (- 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 <= -((double) INFINITY)) {
tmp = x + ((y - x) / ((a - t) / z));
} else if (t_1 <= -1e-289) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_1 <= 2e+294) {
tmp = t_1;
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
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 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((y - x) / ((a - t) / z));
} else if (t_1 <= -1e-289) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_1 <= 2e+294) {
tmp = t_1;
} else {
tmp = y * ((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 <= -math.inf: tmp = x + ((y - x) / ((a - t) / z)) elif t_1 <= -1e-289: tmp = t_1 elif t_1 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) elif t_1 <= 2e+294: tmp = t_1 else: tmp = y * ((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 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); elseif (t_1 <= -1e-289) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (t_1 <= 2e+294) tmp = t_1; else tmp = Float64(y * 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 <= -Inf) tmp = x + ((y - x) / ((a - t) / z)); elseif (t_1 <= -1e-289) tmp = t_1; elseif (t_1 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); elseif (t_1 <= 2e+294) tmp = t_1; else tmp = y * ((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, (-Infinity)], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-289], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+294], t$95$1, N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $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 -\infty:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+294}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 29.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.9%
Applied egg-rr69.9%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6458.1%
Simplified58.1%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-289 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.00000000000000013e294Initial program 96.7%
if -1e-289 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.2%
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--.f6495.3%
Simplified95.3%
if 2.00000000000000013e294 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 52.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6435.2%
Simplified35.2%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6471.3%
Applied egg-rr71.3%
Final simplification85.3%
(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-301)
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-301) {
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-301)) 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-301) {
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-301: 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-301) 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-301) 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-301], 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^{-301}:\\
\;\;\;\;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.00000000000000007e-301 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 75.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.9%
Applied egg-rr88.9%
if -1.00000000000000007e-301 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
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.8%
Simplified99.8%
Final simplification89.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) a)))))
(if (<= a -1.05e-10)
t_1
(if (<= a 1.25e-220)
(* (- y x) (/ z (- a t)))
(if (<= a 110000000000.0) (* y (/ (- z t) (- a 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.05e-10) {
tmp = t_1;
} else if (a <= 1.25e-220) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 110000000000.0) {
tmp = y * ((z - t) / (a - 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.05d-10)) then
tmp = t_1
else if (a <= 1.25d-220) then
tmp = (y - x) * (z / (a - t))
else if (a <= 110000000000.0d0) then
tmp = y * ((z - t) / (a - 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.05e-10) {
tmp = t_1;
} else if (a <= 1.25e-220) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 110000000000.0) {
tmp = y * ((z - t) / (a - 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.05e-10: tmp = t_1 elif a <= 1.25e-220: tmp = (y - x) * (z / (a - t)) elif a <= 110000000000.0: tmp = y * ((z - t) / (a - 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.05e-10) tmp = t_1; elseif (a <= 1.25e-220) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 110000000000.0) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - 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.05e-10) tmp = t_1; elseif (a <= 1.25e-220) tmp = (y - x) * (z / (a - t)); elseif (a <= 110000000000.0) tmp = y * ((z - t) / (a - 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.05e-10], t$95$1, If[LessEqual[a, 1.25e-220], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 110000000000.0], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $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.05 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-220}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 110000000000:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.05e-10 or 1.1e11 < a Initial program 70.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%
if -1.05e-10 < a < 1.25e-220Initial program 68.6%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.2%
Simplified63.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6468.6%
Applied egg-rr68.6%
if 1.25e-220 < a < 1.1e11Initial program 69.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.1%
Simplified51.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.5%
Applied egg-rr67.5%
Final simplification72.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* z (/ (- y x) a)))))
(if (<= a -2.6e-13)
t_1
(if (<= a 1.8e-220)
(* (- y x) (/ z (- a t)))
(if (<= a 82000000000.0) (* y (/ (- z t) (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (z * ((y - x) / a));
double tmp;
if (a <= -2.6e-13) {
tmp = t_1;
} else if (a <= 1.8e-220) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 82000000000.0) {
tmp = y * ((z - t) / (a - 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 * ((y - x) / a))
if (a <= (-2.6d-13)) then
tmp = t_1
else if (a <= 1.8d-220) then
tmp = (y - x) * (z / (a - t))
else if (a <= 82000000000.0d0) then
tmp = y * ((z - t) / (a - 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 * ((y - x) / a));
double tmp;
if (a <= -2.6e-13) {
tmp = t_1;
} else if (a <= 1.8e-220) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 82000000000.0) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z * ((y - x) / a)) tmp = 0 if a <= -2.6e-13: tmp = t_1 elif a <= 1.8e-220: tmp = (y - x) * (z / (a - t)) elif a <= 82000000000.0: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z * Float64(Float64(y - x) / a))) tmp = 0.0 if (a <= -2.6e-13) tmp = t_1; elseif (a <= 1.8e-220) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 82000000000.0) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (z * ((y - x) / a)); tmp = 0.0; if (a <= -2.6e-13) tmp = t_1; elseif (a <= 1.8e-220) tmp = (y - x) * (z / (a - t)); elseif (a <= 82000000000.0) tmp = y * ((z - t) / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e-13], t$95$1, If[LessEqual[a, 1.8e-220], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 82000000000.0], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y - x}{a}\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-220}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 82000000000:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.6e-13 or 8.2e10 < a Initial program 70.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--.f6475.5%
Simplified75.5%
Taylor expanded in z around inf
Simplified72.1%
if -2.6e-13 < a < 1.8000000000000001e-220Initial program 69.3%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6464.0%
Simplified64.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6469.5%
Applied egg-rr69.5%
if 1.8000000000000001e-220 < a < 8.2e10Initial program 69.2%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.1%
Simplified51.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.5%
Applied egg-rr67.5%
Final simplification70.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= y -3.4e+46)
t_1
(if (<= y -4.65e-231)
(* (- y x) (/ z (- a t)))
(if (<= y 5.8e-12) (* x (+ (/ z (- t a)) 1.0)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (y <= -3.4e+46) {
tmp = t_1;
} else if (y <= -4.65e-231) {
tmp = (y - x) * (z / (a - t));
} else if (y <= 5.8e-12) {
tmp = x * ((z / (t - a)) + 1.0);
} 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 * ((z - t) / (a - t))
if (y <= (-3.4d+46)) then
tmp = t_1
else if (y <= (-4.65d-231)) then
tmp = (y - x) * (z / (a - t))
else if (y <= 5.8d-12) then
tmp = x * ((z / (t - a)) + 1.0d0)
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 * ((z - t) / (a - t));
double tmp;
if (y <= -3.4e+46) {
tmp = t_1;
} else if (y <= -4.65e-231) {
tmp = (y - x) * (z / (a - t));
} else if (y <= 5.8e-12) {
tmp = x * ((z / (t - a)) + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if y <= -3.4e+46: tmp = t_1 elif y <= -4.65e-231: tmp = (y - x) * (z / (a - t)) elif y <= 5.8e-12: tmp = x * ((z / (t - a)) + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (y <= -3.4e+46) tmp = t_1; elseif (y <= -4.65e-231) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (y <= 5.8e-12) tmp = Float64(x * Float64(Float64(z / Float64(t - a)) + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (y <= -3.4e+46) tmp = t_1; elseif (y <= -4.65e-231) tmp = (y - x) * (z / (a - t)); elseif (y <= 5.8e-12) tmp = x * ((z / (t - a)) + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.4e+46], t$95$1, If[LessEqual[y, -4.65e-231], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e-12], N[(x * N[(N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.65 \cdot 10^{-231}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \left(\frac{z}{t - a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.3999999999999998e46 or 5.8000000000000003e-12 < y Initial program 67.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.3%
Simplified54.3%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6477.3%
Applied egg-rr77.3%
if -3.3999999999999998e46 < y < -4.65000000000000011e-231Initial program 79.5%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6462.4%
Simplified62.4%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6464.2%
Applied egg-rr64.2%
if -4.65000000000000011e-231 < y < 5.8000000000000003e-12Initial program 66.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6474.8%
Applied egg-rr74.8%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6466.4%
Simplified66.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6459.3%
Simplified59.3%
Final simplification69.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -7.8e+157)
y
(if (<= t 4.5e-244)
(+ x (* z (/ y a)))
(if (<= t 6.2e+165) (* x (+ (/ z (- t a)) 1.0)) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.8e+157) {
tmp = y;
} else if (t <= 4.5e-244) {
tmp = x + (z * (y / a));
} else if (t <= 6.2e+165) {
tmp = x * ((z / (t - a)) + 1.0);
} 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 <= (-7.8d+157)) then
tmp = y
else if (t <= 4.5d-244) then
tmp = x + (z * (y / a))
else if (t <= 6.2d+165) then
tmp = x * ((z / (t - a)) + 1.0d0)
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 <= -7.8e+157) {
tmp = y;
} else if (t <= 4.5e-244) {
tmp = x + (z * (y / a));
} else if (t <= 6.2e+165) {
tmp = x * ((z / (t - a)) + 1.0);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.8e+157: tmp = y elif t <= 4.5e-244: tmp = x + (z * (y / a)) elif t <= 6.2e+165: tmp = x * ((z / (t - a)) + 1.0) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.8e+157) tmp = y; elseif (t <= 4.5e-244) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (t <= 6.2e+165) tmp = Float64(x * Float64(Float64(z / Float64(t - a)) + 1.0)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.8e+157) tmp = y; elseif (t <= 4.5e-244) tmp = x + (z * (y / a)); elseif (t <= 6.2e+165) tmp = x * ((z / (t - a)) + 1.0); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.8e+157], y, If[LessEqual[t, 4.5e-244], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+165], N[(x * N[(N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{+157}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-244}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+165}:\\
\;\;\;\;x \cdot \left(\frac{z}{t - a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.79999999999999941e157 or 6.2000000000000003e165 < t Initial program 28.1%
Taylor expanded in t around inf
Simplified51.3%
if -7.79999999999999941e157 < t < 4.5000000000000002e-244Initial program 79.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--.f6472.8%
Simplified72.8%
Taylor expanded in z around inf
Simplified70.4%
Taylor expanded in y around inf
/-lowering-/.f6458.6%
Simplified58.6%
if 4.5000000000000002e-244 < t < 6.2000000000000003e165Initial program 85.0%
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.0%
Applied egg-rr90.0%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6474.7%
Simplified74.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6450.8%
Simplified50.8%
Final simplification54.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -8.5e+157)
y
(if (<= t 30000000000000.0)
(+ x (* z (/ y a)))
(if (<= t 2.05e+214) (/ (* x z) (- t a)) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.5e+157) {
tmp = y;
} else if (t <= 30000000000000.0) {
tmp = x + (z * (y / a));
} else if (t <= 2.05e+214) {
tmp = (x * z) / (t - a);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-8.5d+157)) then
tmp = y
else if (t <= 30000000000000.0d0) then
tmp = x + (z * (y / a))
else if (t <= 2.05d+214) then
tmp = (x * z) / (t - a)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -8.5e+157) {
tmp = y;
} else if (t <= 30000000000000.0) {
tmp = x + (z * (y / a));
} else if (t <= 2.05e+214) {
tmp = (x * z) / (t - a);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -8.5e+157: tmp = y elif t <= 30000000000000.0: tmp = x + (z * (y / a)) elif t <= 2.05e+214: tmp = (x * z) / (t - a) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -8.5e+157) tmp = y; elseif (t <= 30000000000000.0) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (t <= 2.05e+214) tmp = Float64(Float64(x * z) / Float64(t - a)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -8.5e+157) tmp = y; elseif (t <= 30000000000000.0) tmp = x + (z * (y / a)); elseif (t <= 2.05e+214) tmp = (x * z) / (t - a); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -8.5e+157], y, If[LessEqual[t, 30000000000000.0], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.05e+214], N[(N[(x * z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{+157}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 30000000000000:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{+214}:\\
\;\;\;\;\frac{x \cdot z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -8.4999999999999998e157 or 2.05e214 < t Initial program 27.8%
Taylor expanded in t around inf
Simplified55.4%
if -8.4999999999999998e157 < t < 3e13Initial program 84.9%
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%
Taylor expanded in z around inf
Simplified69.6%
Taylor expanded in y around inf
/-lowering-/.f6456.9%
Simplified56.9%
if 3e13 < t < 2.05e214Initial program 58.4%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.3%
Simplified51.3%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
--lowering--.f6438.3%
Simplified38.3%
Final simplification53.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.65e+42) (* z (/ (- y x) a)) (if (<= z -1.65e-279) y (if (<= z 2.6e-142) x (* y (/ z (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.65e+42) {
tmp = z * ((y - x) / a);
} else if (z <= -1.65e-279) {
tmp = y;
} else if (z <= 2.6e-142) {
tmp = x;
} else {
tmp = y * (z / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.65d+42)) then
tmp = z * ((y - x) / a)
else if (z <= (-1.65d-279)) then
tmp = y
else if (z <= 2.6d-142) then
tmp = x
else
tmp = y * (z / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.65e+42) {
tmp = z * ((y - x) / a);
} else if (z <= -1.65e-279) {
tmp = y;
} else if (z <= 2.6e-142) {
tmp = x;
} else {
tmp = y * (z / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.65e+42: tmp = z * ((y - x) / a) elif z <= -1.65e-279: tmp = y elif z <= 2.6e-142: tmp = x else: tmp = y * (z / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.65e+42) tmp = Float64(z * Float64(Float64(y - x) / a)); elseif (z <= -1.65e-279) tmp = y; elseif (z <= 2.6e-142) tmp = x; else tmp = Float64(y * Float64(z / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.65e+42) tmp = z * ((y - x) / a); elseif (z <= -1.65e-279) tmp = y; elseif (z <= 2.6e-142) tmp = x; else tmp = y * (z / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.65e+42], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.65e-279], y, If[LessEqual[z, 2.6e-142], x, N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.65 \cdot 10^{+42}:\\
\;\;\;\;z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{-279}:\\
\;\;\;\;y\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-142}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if z < -2.65000000000000014e42Initial program 80.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--.f6468.6%
Simplified68.6%
Taylor expanded in z around inf
Simplified68.9%
Taylor expanded in z around inf
div-subN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6457.5%
Simplified57.5%
if -2.65000000000000014e42 < z < -1.65e-279Initial program 60.1%
Taylor expanded in t around inf
Simplified40.3%
if -1.65e-279 < z < 2.6e-142Initial program 76.4%
Taylor expanded in a around inf
Simplified64.4%
if 2.6e-142 < z Initial program 67.8%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6440.8%
Simplified40.8%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6443.1%
Simplified43.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.8e+173)
(* y (/ (- z t) (- a t)))
(if (<= t 4.5e-12)
(+ x (/ (- y x) (/ (- a t) z)))
(+ y (/ (* (- y x) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.8e+173) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 4.5e-12) {
tmp = x + ((y - x) / ((a - t) / z));
} 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 <= (-4.8d+173)) then
tmp = y * ((z - t) / (a - t))
else if (t <= 4.5d-12) then
tmp = x + ((y - x) / ((a - t) / z))
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 <= -4.8e+173) {
tmp = y * ((z - t) / (a - t));
} else if (t <= 4.5e-12) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.8e+173: tmp = y * ((z - t) / (a - t)) elif t <= 4.5e-12: tmp = x + ((y - x) / ((a - t) / z)) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.8e+173) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= 4.5e-12) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); 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 <= -4.8e+173) tmp = y * ((z - t) / (a - t)); elseif (t <= 4.5e-12) tmp = x + ((y - x) / ((a - t) / z)); else tmp = y + (((y - x) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.8e+173], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-12], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $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 -4.8 \cdot 10^{+173}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-12}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if t < -4.7999999999999998e173Initial program 27.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6428.3%
Simplified28.3%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6463.6%
Applied egg-rr63.6%
if -4.7999999999999998e173 < t < 4.49999999999999981e-12Initial program 84.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6485.0%
Simplified85.0%
if 4.49999999999999981e-12 < t Initial program 50.5%
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--.f6477.8%
Simplified77.8%
Final simplification80.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -4.8e+173)
t_1
(if (<= t 2.75e+165) (+ x (/ (- y x) (/ (- a t) z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -4.8e+173) {
tmp = t_1;
} else if (t <= 2.75e+165) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-4.8d+173)) then
tmp = t_1
else if (t <= 2.75d+165) then
tmp = x + ((y - x) / ((a - t) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -4.8e+173) {
tmp = t_1;
} else if (t <= 2.75e+165) {
tmp = x + ((y - x) / ((a - t) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -4.8e+173: tmp = t_1 elif t <= 2.75e+165: tmp = x + ((y - x) / ((a - t) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -4.8e+173) tmp = t_1; elseif (t <= 2.75e+165) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -4.8e+173) tmp = t_1; elseif (t <= 2.75e+165) tmp = x + ((y - x) / ((a - t) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+173], t$95$1, If[LessEqual[t, 2.75e+165], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.75 \cdot 10^{+165}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.7999999999999998e173 or 2.7499999999999999e165 < t Initial program 28.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6431.5%
Simplified31.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6462.6%
Applied egg-rr62.6%
if -4.7999999999999998e173 < t < 2.7499999999999999e165Initial program 80.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--.f6489.8%
Applied egg-rr89.8%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f6479.6%
Simplified79.6%
Final simplification76.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z a))))
(if (<= z -6.6e+48)
t_1
(if (<= z -1.25e-279) y (if (<= z 1.55e-45) x t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (z <= -6.6e+48) {
tmp = t_1;
} else if (z <= -1.25e-279) {
tmp = y;
} else if (z <= 1.55e-45) {
tmp = 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 = y * (z / a)
if (z <= (-6.6d+48)) then
tmp = t_1
else if (z <= (-1.25d-279)) then
tmp = y
else if (z <= 1.55d-45) then
tmp = 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 = y * (z / a);
double tmp;
if (z <= -6.6e+48) {
tmp = t_1;
} else if (z <= -1.25e-279) {
tmp = y;
} else if (z <= 1.55e-45) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / a) tmp = 0 if z <= -6.6e+48: tmp = t_1 elif z <= -1.25e-279: tmp = y elif z <= 1.55e-45: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / a)) tmp = 0.0 if (z <= -6.6e+48) tmp = t_1; elseif (z <= -1.25e-279) tmp = y; elseif (z <= 1.55e-45) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / a); tmp = 0.0; if (z <= -6.6e+48) tmp = t_1; elseif (z <= -1.25e-279) tmp = y; elseif (z <= 1.55e-45) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.6e+48], t$95$1, If[LessEqual[z, -1.25e-279], y, If[LessEqual[z, 1.55e-45], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a}\\
\mathbf{if}\;z \leq -6.6 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-279}:\\
\;\;\;\;y\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-45}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.60000000000000045e48 or 1.55e-45 < z Initial program 74.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6439.5%
Simplified39.5%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6444.9%
Simplified44.9%
Taylor expanded in a around inf
/-lowering-/.f6435.9%
Simplified35.9%
if -6.60000000000000045e48 < z < -1.24999999999999992e-279Initial program 60.8%
Taylor expanded in t around inf
Simplified39.7%
if -1.24999999999999992e-279 < z < 1.55e-45Initial program 69.3%
Taylor expanded in a around inf
Simplified45.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* z (/ y a)))))
(if (<= a -1.32e+125)
t_1
(if (<= a 2.9e+37) (* (- y x) (/ z (- a t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (z * (y / a));
double tmp;
if (a <= -1.32e+125) {
tmp = t_1;
} else if (a <= 2.9e+37) {
tmp = (y - x) * (z / (a - 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 * (y / a))
if (a <= (-1.32d+125)) then
tmp = t_1
else if (a <= 2.9d+37) then
tmp = (y - x) * (z / (a - 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 * (y / a));
double tmp;
if (a <= -1.32e+125) {
tmp = t_1;
} else if (a <= 2.9e+37) {
tmp = (y - x) * (z / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z * (y / a)) tmp = 0 if a <= -1.32e+125: tmp = t_1 elif a <= 2.9e+37: tmp = (y - x) * (z / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z * Float64(y / a))) tmp = 0.0 if (a <= -1.32e+125) tmp = t_1; elseif (a <= 2.9e+37) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (z * (y / a)); tmp = 0.0; if (a <= -1.32e+125) tmp = t_1; elseif (a <= 2.9e+37) tmp = (y - x) * (z / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.32e+125], t$95$1, If[LessEqual[a, 2.9e+37], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -1.32 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+37}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.32000000000000006e125 or 2.89999999999999978e37 < a Initial program 72.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--.f6480.3%
Simplified80.3%
Taylor expanded in z around inf
Simplified76.5%
Taylor expanded in y around inf
/-lowering-/.f6472.3%
Simplified72.3%
if -1.32000000000000006e125 < a < 2.89999999999999978e37Initial program 68.4%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6458.0%
Simplified58.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6462.6%
Applied egg-rr62.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -7.8e+157) y (if (<= t 2.8e+136) (+ x (* z (/ y a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.8e+157) {
tmp = y;
} else if (t <= 2.8e+136) {
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 <= (-7.8d+157)) then
tmp = y
else if (t <= 2.8d+136) 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 <= -7.8e+157) {
tmp = y;
} else if (t <= 2.8e+136) {
tmp = x + (z * (y / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.8e+157: tmp = y elif t <= 2.8e+136: tmp = x + (z * (y / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.8e+157) tmp = y; elseif (t <= 2.8e+136) 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 <= -7.8e+157) tmp = y; elseif (t <= 2.8e+136) tmp = x + (z * (y / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.8e+157], y, If[LessEqual[t, 2.8e+136], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{+157}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+136}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.79999999999999941e157 or 2.8000000000000002e136 < t Initial program 33.3%
Taylor expanded in t around inf
Simplified48.2%
if -7.79999999999999941e157 < t < 2.8000000000000002e136Initial 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--.f6467.2%
Simplified67.2%
Taylor expanded in z around inf
Simplified64.4%
Taylor expanded in y around inf
/-lowering-/.f6452.9%
Simplified52.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= x -1100000000000.0)
t_1
(if (<= x 1.35e-21) (* y (/ z (- a t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (x <= -1100000000000.0) {
tmp = t_1;
} else if (x <= 1.35e-21) {
tmp = y * (z / (a - 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 * (1.0d0 - (z / a))
if (x <= (-1100000000000.0d0)) then
tmp = t_1
else if (x <= 1.35d-21) then
tmp = y * (z / (a - 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 * (1.0 - (z / a));
double tmp;
if (x <= -1100000000000.0) {
tmp = t_1;
} else if (x <= 1.35e-21) {
tmp = y * (z / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if x <= -1100000000000.0: tmp = t_1 elif x <= 1.35e-21: tmp = y * (z / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (x <= -1100000000000.0) tmp = t_1; elseif (x <= 1.35e-21) tmp = Float64(y * Float64(z / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (x <= -1100000000000.0) tmp = t_1; elseif (x <= 1.35e-21) tmp = y * (z / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1100000000000.0], t$95$1, If[LessEqual[x, 1.35e-21], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;x \leq -1100000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-21}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.1e12 or 1.3500000000000001e-21 < x Initial program 58.9%
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--.f6452.7%
Simplified52.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6445.9%
Simplified45.9%
Taylor expanded in t around 0
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6446.3%
Simplified46.3%
if -1.1e12 < x < 1.3500000000000001e-21Initial program 80.3%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6459.8%
Simplified59.8%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6446.5%
Simplified46.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.7e+135) y (if (<= t 8.2e+164) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.7e+135) {
tmp = y;
} else if (t <= 8.2e+164) {
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.7d+135)) then
tmp = y
else if (t <= 8.2d+164) 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.7e+135) {
tmp = y;
} else if (t <= 8.2e+164) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.7e+135: tmp = y elif t <= 8.2e+164: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.7e+135) tmp = y; elseif (t <= 8.2e+164) 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.7e+135) tmp = y; elseif (t <= 8.2e+164) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.7e+135], y, If[LessEqual[t, 8.2e+164], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{+135}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.69999999999999985e135 or 8.20000000000000032e164 < t Initial program 29.4%
Taylor expanded in t around inf
Simplified50.5%
if -2.69999999999999985e135 < t < 8.20000000000000032e164Initial program 83.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--.f6466.3%
Simplified66.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6443.2%
Simplified43.2%
Taylor expanded in t around 0
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6443.3%
Simplified43.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.15e+147) x (if (<= a 0.00013) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.15e+147) {
tmp = x;
} else if (a <= 0.00013) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.15d+147)) then
tmp = x
else if (a <= 0.00013d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.15e+147) {
tmp = x;
} else if (a <= 0.00013) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.15e+147: tmp = x elif a <= 0.00013: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.15e+147) tmp = x; elseif (a <= 0.00013) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.15e+147) tmp = x; elseif (a <= 0.00013) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.15e+147], x, If[LessEqual[a, 0.00013], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{+147}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 0.00013:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.15e147 or 1.29999999999999989e-4 < a Initial program 73.3%
Taylor expanded in a around inf
Simplified47.2%
if -1.15e147 < a < 1.29999999999999989e-4Initial program 67.6%
Taylor expanded in t around inf
Simplified26.5%
(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.8%
Taylor expanded in a around inf
Simplified22.5%
(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 2024158
(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))))