
(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 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= t 1.1e+142) (+ x (/ (- y x) (/ (- a t) (- z t)))) (+ y (* (- y x) (/ (- a z) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.1e+142) {
tmp = x + ((y - x) / ((a - t) / (z - 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 <= 1.1d+142) then
tmp = x + ((y - x) / ((a - t) / (z - 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 <= 1.1e+142) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + ((y - x) * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 1.1e+142: tmp = x + ((y - x) / ((a - t) / (z - t))) else: tmp = y + ((y - x) * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 1.1e+142) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 1.1e+142) tmp = x + ((y - x) / ((a - t) / (z - t))); else tmp = y + ((y - x) * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 1.1e+142], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < 1.09999999999999993e142Initial program 80.6%
associate-/l*93.4%
Simplified93.4%
if 1.09999999999999993e142 < t Initial program 21.8%
associate-/l*53.3%
Simplified53.3%
associate-/l*21.8%
clear-num21.5%
inv-pow21.5%
Applied egg-rr21.5%
unpow-121.5%
associate-/r*48.4%
Simplified48.4%
div-inv48.0%
Applied egg-rr48.0%
Taylor expanded in t around -inf 65.1%
*-commutative65.1%
mul-1-neg65.1%
distribute-rgt-out--65.1%
*-commutative65.1%
associate-*r/82.2%
div-sub82.2%
*-commutative82.2%
div-sub82.2%
associate-/r/84.9%
unsub-neg84.9%
associate-/r/82.2%
div-sub82.2%
*-commutative82.2%
div-sub82.2%
Simplified85.0%
Final simplification92.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- x y) (- t z)) (- a t))))
(t_2 (+ y (* (- y x) (/ (- a z) t)))))
(if (<= t -7.4e+152)
t_2
(if (<= t -3e-278)
t_1
(if (<= t 2e-173)
(+ x (* (- y x) (* (- z t) (/ 1.0 a))))
(if (<= t 1.42e+63)
t_1
(if (<= t 3.2e+141) (+ x (/ (- z t) (/ (- a t) y))) t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((x - y) * (t - z)) / (a - t));
double t_2 = y + ((y - x) * ((a - z) / t));
double tmp;
if (t <= -7.4e+152) {
tmp = t_2;
} else if (t <= -3e-278) {
tmp = t_1;
} else if (t <= 2e-173) {
tmp = x + ((y - x) * ((z - t) * (1.0 / a)));
} else if (t <= 1.42e+63) {
tmp = t_1;
} else if (t <= 3.2e+141) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = t_2;
}
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 + (((x - y) * (t - z)) / (a - t))
t_2 = y + ((y - x) * ((a - z) / t))
if (t <= (-7.4d+152)) then
tmp = t_2
else if (t <= (-3d-278)) then
tmp = t_1
else if (t <= 2d-173) then
tmp = x + ((y - x) * ((z - t) * (1.0d0 / a)))
else if (t <= 1.42d+63) then
tmp = t_1
else if (t <= 3.2d+141) then
tmp = x + ((z - t) / ((a - t) / y))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((x - y) * (t - z)) / (a - t));
double t_2 = y + ((y - x) * ((a - z) / t));
double tmp;
if (t <= -7.4e+152) {
tmp = t_2;
} else if (t <= -3e-278) {
tmp = t_1;
} else if (t <= 2e-173) {
tmp = x + ((y - x) * ((z - t) * (1.0 / a)));
} else if (t <= 1.42e+63) {
tmp = t_1;
} else if (t <= 3.2e+141) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((x - y) * (t - z)) / (a - t)) t_2 = y + ((y - x) * ((a - z) / t)) tmp = 0 if t <= -7.4e+152: tmp = t_2 elif t <= -3e-278: tmp = t_1 elif t <= 2e-173: tmp = x + ((y - x) * ((z - t) * (1.0 / a))) elif t <= 1.42e+63: tmp = t_1 elif t <= 3.2e+141: tmp = x + ((z - t) / ((a - t) / y)) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) t_2 = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))) tmp = 0.0 if (t <= -7.4e+152) tmp = t_2; elseif (t <= -3e-278) tmp = t_1; elseif (t <= 2e-173) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) * Float64(1.0 / a)))); elseif (t <= 1.42e+63) tmp = t_1; elseif (t <= 3.2e+141) tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / y))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((x - y) * (t - z)) / (a - t)); t_2 = y + ((y - x) * ((a - z) / t)); tmp = 0.0; if (t <= -7.4e+152) tmp = t_2; elseif (t <= -3e-278) tmp = t_1; elseif (t <= 2e-173) tmp = x + ((y - x) * ((z - t) * (1.0 / a))); elseif (t <= 1.42e+63) tmp = t_1; elseif (t <= 3.2e+141) tmp = x + ((z - t) / ((a - t) / y)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(x - y), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.4e+152], t$95$2, If[LessEqual[t, -3e-278], t$95$1, If[LessEqual[t, 2e-173], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.42e+63], t$95$1, If[LessEqual[t, 3.2e+141], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
t_2 := y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{if}\;t \leq -7.4 \cdot 10^{+152}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3 \cdot 10^{-278}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-173}:\\
\;\;\;\;x + \left(y - x\right) \cdot \left(\left(z - t\right) \cdot \frac{1}{a}\right)\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+141}:\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -7.39999999999999992e152 or 3.20000000000000019e141 < t Initial program 29.7%
associate-/l*63.7%
Simplified63.7%
associate-/l*29.7%
clear-num29.5%
inv-pow29.5%
Applied egg-rr29.5%
unpow-129.5%
associate-/r*57.2%
Simplified57.2%
div-inv56.9%
Applied egg-rr56.9%
Taylor expanded in t around -inf 61.6%
*-commutative61.6%
mul-1-neg61.6%
distribute-rgt-out--63.3%
*-commutative63.3%
associate-*r/79.8%
div-sub79.7%
*-commutative79.7%
div-sub79.8%
associate-/r/82.9%
unsub-neg82.9%
associate-/r/79.8%
div-sub79.7%
*-commutative79.7%
div-sub79.8%
Simplified82.9%
if -7.39999999999999992e152 < t < -3e-278 or 2.0000000000000001e-173 < t < 1.4200000000000001e63Initial program 90.0%
if -3e-278 < t < 2.0000000000000001e-173Initial program 81.7%
associate-/l*97.8%
Simplified97.8%
associate-/r/97.7%
div-inv97.6%
associate-*l*97.6%
Applied egg-rr97.6%
Taylor expanded in a around inf 93.4%
if 1.4200000000000001e63 < t < 3.20000000000000019e141Initial program 65.0%
*-commutative65.0%
associate-/l*94.8%
Simplified94.8%
Taylor expanded in y around inf 86.1%
Final simplification88.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y x) (* (- z t) (/ 1.0 a))))))
(if (<= a -2.8e+36)
t_1
(if (<= a -6.5e-10)
(+ x (/ (- y x) (/ (- t a) t)))
(if (<= a -6.6e-54)
(* y (/ (- z t) (- a t)))
(if (<= a 1.6e+60) (+ 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) * ((z - t) * (1.0 / a)));
double tmp;
if (a <= -2.8e+36) {
tmp = t_1;
} else if (a <= -6.5e-10) {
tmp = x + ((y - x) / ((t - a) / t));
} else if (a <= -6.6e-54) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 1.6e+60) {
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 + ((y - x) * ((z - t) * (1.0d0 / a)))
if (a <= (-2.8d+36)) then
tmp = t_1
else if (a <= (-6.5d-10)) then
tmp = x + ((y - x) / ((t - a) / t))
else if (a <= (-6.6d-54)) then
tmp = y * ((z - t) / (a - t))
else if (a <= 1.6d+60) 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) * ((z - t) * (1.0 / a)));
double tmp;
if (a <= -2.8e+36) {
tmp = t_1;
} else if (a <= -6.5e-10) {
tmp = x + ((y - x) / ((t - a) / t));
} else if (a <= -6.6e-54) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 1.6e+60) {
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) * ((z - t) * (1.0 / a))) tmp = 0 if a <= -2.8e+36: tmp = t_1 elif a <= -6.5e-10: tmp = x + ((y - x) / ((t - a) / t)) elif a <= -6.6e-54: tmp = y * ((z - t) / (a - t)) elif a <= 1.6e+60: 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(z - t) * Float64(1.0 / a)))) tmp = 0.0 if (a <= -2.8e+36) tmp = t_1; elseif (a <= -6.5e-10) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(t - a) / t))); elseif (a <= -6.6e-54) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 1.6e+60) tmp = Float64(y + Float64(Float64(y - x) * Float64(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) * ((z - t) * (1.0 / a))); tmp = 0.0; if (a <= -2.8e+36) tmp = t_1; elseif (a <= -6.5e-10) tmp = x + ((y - x) / ((t - a) / t)); elseif (a <= -6.6e-54) tmp = y * ((z - t) / (a - t)); elseif (a <= 1.6e+60) 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[(z - t), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.8e+36], t$95$1, If[LessEqual[a, -6.5e-10], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(t - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.6e-54], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+60], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - x\right) \cdot \left(\left(z - t\right) \cdot \frac{1}{a}\right)\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{+36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-10}:\\
\;\;\;\;x + \frac{y - x}{\frac{t - a}{t}}\\
\mathbf{elif}\;a \leq -6.6 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+60}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.8000000000000001e36 or 1.59999999999999995e60 < a Initial program 70.8%
associate-/l*94.5%
Simplified94.5%
associate-/r/91.6%
div-inv91.5%
associate-*l*94.5%
Applied egg-rr94.5%
Taylor expanded in a around inf 85.7%
if -2.8000000000000001e36 < a < -6.5000000000000003e-10Initial program 75.8%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around 0 87.8%
associate-*r/87.8%
neg-mul-187.8%
Simplified87.8%
if -6.5000000000000003e-10 < a < -6.59999999999999986e-54Initial program 93.3%
associate-/l*93.3%
Simplified93.3%
Taylor expanded in x around 0 80.1%
associate-*r/80.1%
Simplified80.1%
if -6.59999999999999986e-54 < a < 1.59999999999999995e60Initial program 72.6%
associate-/l*79.6%
Simplified79.6%
associate-/l*72.6%
clear-num72.5%
inv-pow72.5%
Applied egg-rr72.5%
unpow-172.5%
associate-/r*79.2%
Simplified79.2%
div-inv79.2%
Applied egg-rr79.2%
Taylor expanded in t around -inf 73.1%
*-commutative73.1%
mul-1-neg73.1%
distribute-rgt-out--73.1%
*-commutative73.1%
associate-*r/79.5%
div-sub75.8%
*-commutative75.8%
div-sub79.5%
associate-/r/79.4%
unsub-neg79.4%
associate-/r/79.5%
div-sub75.8%
*-commutative75.8%
div-sub79.5%
Simplified79.4%
Final simplification82.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2900.0)
(+ y (/ (- x y) (/ t z)))
(if (<= t -2.9e-100)
(* x (+ (/ (- t z) (- a t)) 1.0))
(if (<= t 3.4e+29)
(+ x (/ (- y x) (/ a z)))
(if (or (<= t 8e+54) (not (<= t 1.95e+112)))
(+ y (/ (- z a) (/ t x)))
(+ x (/ (- z t) (/ a y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2900.0) {
tmp = y + ((x - y) / (t / z));
} else if (t <= -2.9e-100) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else if (t <= 3.4e+29) {
tmp = x + ((y - x) / (a / z));
} else if ((t <= 8e+54) || !(t <= 1.95e+112)) {
tmp = y + ((z - a) / (t / x));
} else {
tmp = x + ((z - t) / (a / 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 <= (-2900.0d0)) then
tmp = y + ((x - y) / (t / z))
else if (t <= (-2.9d-100)) then
tmp = x * (((t - z) / (a - t)) + 1.0d0)
else if (t <= 3.4d+29) then
tmp = x + ((y - x) / (a / z))
else if ((t <= 8d+54) .or. (.not. (t <= 1.95d+112))) then
tmp = y + ((z - a) / (t / x))
else
tmp = x + ((z - t) / (a / 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 <= -2900.0) {
tmp = y + ((x - y) / (t / z));
} else if (t <= -2.9e-100) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else if (t <= 3.4e+29) {
tmp = x + ((y - x) / (a / z));
} else if ((t <= 8e+54) || !(t <= 1.95e+112)) {
tmp = y + ((z - a) / (t / x));
} else {
tmp = x + ((z - t) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2900.0: tmp = y + ((x - y) / (t / z)) elif t <= -2.9e-100: tmp = x * (((t - z) / (a - t)) + 1.0) elif t <= 3.4e+29: tmp = x + ((y - x) / (a / z)) elif (t <= 8e+54) or not (t <= 1.95e+112): tmp = y + ((z - a) / (t / x)) else: tmp = x + ((z - t) / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2900.0) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); elseif (t <= -2.9e-100) tmp = Float64(x * Float64(Float64(Float64(t - z) / Float64(a - t)) + 1.0)); elseif (t <= 3.4e+29) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif ((t <= 8e+54) || !(t <= 1.95e+112)) tmp = Float64(y + Float64(Float64(z - a) / Float64(t / x))); else tmp = Float64(x + Float64(Float64(z - t) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2900.0) tmp = y + ((x - y) / (t / z)); elseif (t <= -2.9e-100) tmp = x * (((t - z) / (a - t)) + 1.0); elseif (t <= 3.4e+29) tmp = x + ((y - x) / (a / z)); elseif ((t <= 8e+54) || ~((t <= 1.95e+112))) tmp = y + ((z - a) / (t / x)); else tmp = x + ((z - t) / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2900.0], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.9e-100], N[(x * N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+29], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 8e+54], N[Not[LessEqual[t, 1.95e+112]], $MachinePrecision]], N[(y + N[(N[(z - a), $MachinePrecision] / N[(t / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2900:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{-100}:\\
\;\;\;\;x \cdot \left(\frac{t - z}{a - t} + 1\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+29}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+54} \lor \neg \left(t \leq 1.95 \cdot 10^{+112}\right):\\
\;\;\;\;y + \frac{z - a}{\frac{t}{x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - t}{\frac{a}{y}}\\
\end{array}
\end{array}
if t < -2900Initial program 59.0%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in t around -inf 57.4%
mul-1-neg57.4%
unsub-neg57.4%
div-sub57.4%
*-commutative57.4%
div-sub57.4%
distribute-rgt-out--59.4%
Simplified59.4%
Taylor expanded in z around inf 58.4%
*-commutative58.4%
associate-/l*66.0%
Simplified66.0%
if -2900 < t < -2.89999999999999975e-100Initial program 91.0%
associate-/l*90.8%
Simplified90.8%
Taylor expanded in x around inf 81.5%
mul-1-neg81.5%
unsub-neg81.5%
Simplified81.5%
if -2.89999999999999975e-100 < t < 3.39999999999999981e29Initial program 91.2%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 87.5%
if 3.39999999999999981e29 < t < 8.0000000000000006e54 or 1.94999999999999984e112 < t Initial program 33.1%
associate-/l*60.9%
Simplified60.9%
Taylor expanded in t around -inf 67.3%
mul-1-neg67.3%
unsub-neg67.3%
div-sub67.3%
*-commutative67.3%
div-sub67.3%
distribute-rgt-out--67.3%
Simplified67.3%
Taylor expanded in y around 0 66.6%
mul-1-neg66.6%
associate-/l*76.3%
distribute-neg-frac76.3%
Simplified76.3%
if 8.0000000000000006e54 < t < 1.94999999999999984e112Initial program 68.3%
*-commutative68.3%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in y around inf 82.6%
Taylor expanded in a around inf 75.9%
*-commutative75.9%
associate-/l*82.1%
Simplified82.1%
Final simplification80.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -35.0)
(+ y (/ (- x y) (/ t z)))
(if (<= t 3.2e+30)
(+ x (/ (- y x) (/ a z)))
(if (or (<= t 1.08e+52) (not (<= t 1.75e+112)))
(+ y (/ (- z a) (/ t x)))
(+ x (/ (- z t) (/ a y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -35.0) {
tmp = y + ((x - y) / (t / z));
} else if (t <= 3.2e+30) {
tmp = x + ((y - x) / (a / z));
} else if ((t <= 1.08e+52) || !(t <= 1.75e+112)) {
tmp = y + ((z - a) / (t / x));
} else {
tmp = x + ((z - t) / (a / 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 <= (-35.0d0)) then
tmp = y + ((x - y) / (t / z))
else if (t <= 3.2d+30) then
tmp = x + ((y - x) / (a / z))
else if ((t <= 1.08d+52) .or. (.not. (t <= 1.75d+112))) then
tmp = y + ((z - a) / (t / x))
else
tmp = x + ((z - t) / (a / 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 <= -35.0) {
tmp = y + ((x - y) / (t / z));
} else if (t <= 3.2e+30) {
tmp = x + ((y - x) / (a / z));
} else if ((t <= 1.08e+52) || !(t <= 1.75e+112)) {
tmp = y + ((z - a) / (t / x));
} else {
tmp = x + ((z - t) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -35.0: tmp = y + ((x - y) / (t / z)) elif t <= 3.2e+30: tmp = x + ((y - x) / (a / z)) elif (t <= 1.08e+52) or not (t <= 1.75e+112): tmp = y + ((z - a) / (t / x)) else: tmp = x + ((z - t) / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -35.0) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); elseif (t <= 3.2e+30) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif ((t <= 1.08e+52) || !(t <= 1.75e+112)) tmp = Float64(y + Float64(Float64(z - a) / Float64(t / x))); else tmp = Float64(x + Float64(Float64(z - t) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -35.0) tmp = y + ((x - y) / (t / z)); elseif (t <= 3.2e+30) tmp = x + ((y - x) / (a / z)); elseif ((t <= 1.08e+52) || ~((t <= 1.75e+112))) tmp = y + ((z - a) / (t / x)); else tmp = x + ((z - t) / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -35.0], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+30], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 1.08e+52], N[Not[LessEqual[t, 1.75e+112]], $MachinePrecision]], N[(y + N[(N[(z - a), $MachinePrecision] / N[(t / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -35:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+30}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{+52} \lor \neg \left(t \leq 1.75 \cdot 10^{+112}\right):\\
\;\;\;\;y + \frac{z - a}{\frac{t}{x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - t}{\frac{a}{y}}\\
\end{array}
\end{array}
if t < -35Initial program 59.8%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in t around -inf 58.3%
mul-1-neg58.3%
unsub-neg58.3%
div-sub58.3%
*-commutative58.3%
div-sub58.3%
distribute-rgt-out--60.3%
Simplified60.3%
Taylor expanded in z around inf 59.2%
*-commutative59.2%
associate-/l*66.6%
Simplified66.6%
if -35 < t < 3.19999999999999973e30Initial program 91.1%
associate-/l*98.0%
Simplified98.0%
Taylor expanded in t around 0 82.4%
if 3.19999999999999973e30 < t < 1.07999999999999997e52 or 1.74999999999999998e112 < t Initial program 33.1%
associate-/l*60.9%
Simplified60.9%
Taylor expanded in t around -inf 67.3%
mul-1-neg67.3%
unsub-neg67.3%
div-sub67.3%
*-commutative67.3%
div-sub67.3%
distribute-rgt-out--67.3%
Simplified67.3%
Taylor expanded in y around 0 66.6%
mul-1-neg66.6%
associate-/l*76.3%
distribute-neg-frac76.3%
Simplified76.3%
if 1.07999999999999997e52 < t < 1.74999999999999998e112Initial program 68.3%
*-commutative68.3%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in y around inf 82.6%
Taylor expanded in a around inf 75.9%
*-commutative75.9%
associate-/l*82.1%
Simplified82.1%
Final simplification78.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* z (/ y a)))) (t_2 (* y (/ (- z t) (- a t)))))
(if (<= t -115000.0)
t_2
(if (<= t -3.6e-25)
t_1
(if (<= t -1.3e-148)
(/ z (/ (- t) (- y x)))
(if (<= t 2.9e+85) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (z * (y / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (t <= -115000.0) {
tmp = t_2;
} else if (t <= -3.6e-25) {
tmp = t_1;
} else if (t <= -1.3e-148) {
tmp = z / (-t / (y - x));
} else if (t <= 2.9e+85) {
tmp = t_1;
} else {
tmp = t_2;
}
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 + (z * (y / a))
t_2 = y * ((z - t) / (a - t))
if (t <= (-115000.0d0)) then
tmp = t_2
else if (t <= (-3.6d-25)) then
tmp = t_1
else if (t <= (-1.3d-148)) then
tmp = z / (-t / (y - x))
else if (t <= 2.9d+85) then
tmp = t_1
else
tmp = t_2
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 t_2 = y * ((z - t) / (a - t));
double tmp;
if (t <= -115000.0) {
tmp = t_2;
} else if (t <= -3.6e-25) {
tmp = t_1;
} else if (t <= -1.3e-148) {
tmp = z / (-t / (y - x));
} else if (t <= 2.9e+85) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z * (y / a)) t_2 = y * ((z - t) / (a - t)) tmp = 0 if t <= -115000.0: tmp = t_2 elif t <= -3.6e-25: tmp = t_1 elif t <= -1.3e-148: tmp = z / (-t / (y - x)) elif t <= 2.9e+85: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z * Float64(y / a))) t_2 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -115000.0) tmp = t_2; elseif (t <= -3.6e-25) tmp = t_1; elseif (t <= -1.3e-148) tmp = Float64(z / Float64(Float64(-t) / Float64(y - x))); elseif (t <= 2.9e+85) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (z * (y / a)); t_2 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -115000.0) tmp = t_2; elseif (t <= -3.6e-25) tmp = t_1; elseif (t <= -1.3e-148) tmp = z / (-t / (y - x)); elseif (t <= 2.9e+85) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -115000.0], t$95$2, If[LessEqual[t, -3.6e-25], t$95$1, If[LessEqual[t, -1.3e-148], N[(z / N[((-t) / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+85], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{a}\\
t_2 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -115000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.6 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{-148}:\\
\;\;\;\;\frac{z}{\frac{-t}{y - x}}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+85}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -115000 or 2.89999999999999997e85 < t Initial program 48.6%
associate-/l*74.9%
Simplified74.9%
Taylor expanded in x around 0 44.5%
associate-*r/65.2%
Simplified65.2%
if -115000 < t < -3.5999999999999999e-25 or -1.30000000000000004e-148 < t < 2.89999999999999997e85Initial program 85.7%
associate-/l*95.9%
Simplified95.9%
Taylor expanded in t around 0 83.0%
Taylor expanded in y around inf 64.6%
associate-/l*69.3%
associate-/r/68.2%
Simplified68.2%
if -3.5999999999999999e-25 < t < -1.30000000000000004e-148Initial program 95.6%
associate-/l*95.4%
Simplified95.4%
associate-/r/99.9%
div-inv99.7%
associate-*l*95.2%
Applied egg-rr95.2%
Taylor expanded in z around -inf 75.8%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in a around 0 61.0%
neg-mul-161.0%
distribute-neg-frac61.0%
Simplified61.0%
Final simplification66.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* z (/ y a)))) (t_2 (/ (- y) (/ (- a t) t))))
(if (<= t -3.1e+57)
t_2
(if (<= t -2.7e-25)
t_1
(if (<= t -1.9e-132)
(* x (/ (- z) (- a t)))
(if (<= t 1.6e+112) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (z * (y / a));
double t_2 = -y / ((a - t) / t);
double tmp;
if (t <= -3.1e+57) {
tmp = t_2;
} else if (t <= -2.7e-25) {
tmp = t_1;
} else if (t <= -1.9e-132) {
tmp = x * (-z / (a - t));
} else if (t <= 1.6e+112) {
tmp = t_1;
} else {
tmp = t_2;
}
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 + (z * (y / a))
t_2 = -y / ((a - t) / t)
if (t <= (-3.1d+57)) then
tmp = t_2
else if (t <= (-2.7d-25)) then
tmp = t_1
else if (t <= (-1.9d-132)) then
tmp = x * (-z / (a - t))
else if (t <= 1.6d+112) then
tmp = t_1
else
tmp = t_2
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 t_2 = -y / ((a - t) / t);
double tmp;
if (t <= -3.1e+57) {
tmp = t_2;
} else if (t <= -2.7e-25) {
tmp = t_1;
} else if (t <= -1.9e-132) {
tmp = x * (-z / (a - t));
} else if (t <= 1.6e+112) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z * (y / a)) t_2 = -y / ((a - t) / t) tmp = 0 if t <= -3.1e+57: tmp = t_2 elif t <= -2.7e-25: tmp = t_1 elif t <= -1.9e-132: tmp = x * (-z / (a - t)) elif t <= 1.6e+112: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z * Float64(y / a))) t_2 = Float64(Float64(-y) / Float64(Float64(a - t) / t)) tmp = 0.0 if (t <= -3.1e+57) tmp = t_2; elseif (t <= -2.7e-25) tmp = t_1; elseif (t <= -1.9e-132) tmp = Float64(x * Float64(Float64(-z) / Float64(a - t))); elseif (t <= 1.6e+112) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (z * (y / a)); t_2 = -y / ((a - t) / t); tmp = 0.0; if (t <= -3.1e+57) tmp = t_2; elseif (t <= -2.7e-25) tmp = t_1; elseif (t <= -1.9e-132) tmp = x * (-z / (a - t)); elseif (t <= 1.6e+112) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[((-y) / N[(N[(a - t), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.1e+57], t$95$2, If[LessEqual[t, -2.7e-25], t$95$1, If[LessEqual[t, -1.9e-132], N[(x * N[((-z) / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e+112], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{a}\\
t_2 := \frac{-y}{\frac{a - t}{t}}\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{+57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-132}:\\
\;\;\;\;x \cdot \frac{-z}{a - t}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+112}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -3.10000000000000013e57 or 1.59999999999999993e112 < t Initial program 43.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in x around 0 45.0%
associate-*r/67.7%
Simplified67.7%
Taylor expanded in z around 0 41.8%
mul-1-neg41.8%
associate-/l*61.2%
distribute-neg-frac61.2%
Simplified61.2%
if -3.10000000000000013e57 < t < -2.70000000000000016e-25 or -1.8999999999999998e-132 < t < 1.59999999999999993e112Initial program 85.7%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in t around 0 78.9%
Taylor expanded in y around inf 62.3%
associate-/l*66.6%
associate-/r/65.6%
Simplified65.6%
if -2.70000000000000016e-25 < t < -1.8999999999999998e-132Initial program 94.5%
associate-/l*94.3%
Simplified94.3%
associate-/r/99.9%
div-inv99.6%
associate-*l*94.1%
Applied egg-rr94.1%
Taylor expanded in z around -inf 75.5%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in y around 0 58.6%
mul-1-neg58.6%
distribute-neg-frac58.6%
*-commutative58.6%
distribute-lft-neg-out58.6%
associate-*r/63.8%
distribute-lft-neg-out63.8%
distribute-rgt-neg-in63.8%
Simplified63.8%
Final simplification64.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -1.05e+95)
y
(if (<= t 6.5e-296)
t_1
(if (<= t 1.62e-189) (/ y (/ a z)) (if (<= t 1.18e+114) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -1.05e+95) {
tmp = y;
} else if (t <= 6.5e-296) {
tmp = t_1;
} else if (t <= 1.62e-189) {
tmp = y / (a / z);
} else if (t <= 1.18e+114) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-1.05d+95)) then
tmp = y
else if (t <= 6.5d-296) then
tmp = t_1
else if (t <= 1.62d-189) then
tmp = y / (a / z)
else if (t <= 1.18d+114) then
tmp = t_1
else
tmp = 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 * (1.0 - (z / a));
double tmp;
if (t <= -1.05e+95) {
tmp = y;
} else if (t <= 6.5e-296) {
tmp = t_1;
} else if (t <= 1.62e-189) {
tmp = y / (a / z);
} else if (t <= 1.18e+114) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -1.05e+95: tmp = y elif t <= 6.5e-296: tmp = t_1 elif t <= 1.62e-189: tmp = y / (a / z) elif t <= 1.18e+114: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -1.05e+95) tmp = y; elseif (t <= 6.5e-296) tmp = t_1; elseif (t <= 1.62e-189) tmp = Float64(y / Float64(a / z)); elseif (t <= 1.18e+114) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -1.05e+95) tmp = y; elseif (t <= 6.5e-296) tmp = t_1; elseif (t <= 1.62e-189) tmp = y / (a / z); elseif (t <= 1.18e+114) tmp = t_1; else tmp = y; 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[t, -1.05e+95], y, If[LessEqual[t, 6.5e-296], t$95$1, If[LessEqual[t, 1.62e-189], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e+114], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+95}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-296}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.62 \cdot 10^{-189}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{+114}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.05e95 or 1.18000000000000005e114 < t Initial program 41.5%
associate-/l*71.1%
Simplified71.1%
Taylor expanded in t around inf 47.6%
if -1.05e95 < t < 6.49999999999999963e-296 or 1.62e-189 < t < 1.18000000000000005e114Initial program 84.9%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in t around 0 72.8%
Taylor expanded in x around inf 54.9%
*-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
Simplified54.9%
if 6.49999999999999963e-296 < t < 1.62e-189Initial program 90.6%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in x around 0 62.7%
associate-*r/71.9%
Simplified71.9%
Taylor expanded in t around 0 57.0%
associate-/l*66.2%
Simplified66.2%
Final simplification53.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -1.22e+92)
y
(if (<= t 9e-296)
t_1
(if (<= t 2.5e-190) (* y (/ z (- a t))) (if (<= t 3.9e+112) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -1.22e+92) {
tmp = y;
} else if (t <= 9e-296) {
tmp = t_1;
} else if (t <= 2.5e-190) {
tmp = y * (z / (a - t));
} else if (t <= 3.9e+112) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-1.22d+92)) then
tmp = y
else if (t <= 9d-296) then
tmp = t_1
else if (t <= 2.5d-190) then
tmp = y * (z / (a - t))
else if (t <= 3.9d+112) then
tmp = t_1
else
tmp = 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 * (1.0 - (z / a));
double tmp;
if (t <= -1.22e+92) {
tmp = y;
} else if (t <= 9e-296) {
tmp = t_1;
} else if (t <= 2.5e-190) {
tmp = y * (z / (a - t));
} else if (t <= 3.9e+112) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -1.22e+92: tmp = y elif t <= 9e-296: tmp = t_1 elif t <= 2.5e-190: tmp = y * (z / (a - t)) elif t <= 3.9e+112: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -1.22e+92) tmp = y; elseif (t <= 9e-296) tmp = t_1; elseif (t <= 2.5e-190) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= 3.9e+112) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -1.22e+92) tmp = y; elseif (t <= 9e-296) tmp = t_1; elseif (t <= 2.5e-190) tmp = y * (z / (a - t)); elseif (t <= 3.9e+112) tmp = t_1; else tmp = y; 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[t, -1.22e+92], y, If[LessEqual[t, 9e-296], t$95$1, If[LessEqual[t, 2.5e-190], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e+112], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.22 \cdot 10^{+92}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-296}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-190}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+112}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.22e92 or 3.89999999999999968e112 < t Initial program 41.5%
associate-/l*71.1%
Simplified71.1%
Taylor expanded in t around inf 47.6%
if -1.22e92 < t < 9.0000000000000003e-296 or 2.50000000000000017e-190 < t < 3.89999999999999968e112Initial program 84.9%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in t around 0 72.8%
Taylor expanded in x around inf 54.9%
*-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
Simplified54.9%
if 9.0000000000000003e-296 < t < 2.50000000000000017e-190Initial program 90.6%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in x around 0 62.7%
associate-*r/71.9%
Simplified71.9%
Taylor expanded in z around inf 61.3%
associate-*r/70.5%
Simplified70.5%
Final simplification54.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -3.4e+70)
t_1
(if (<= t -9.2e-157)
(* z (/ (- y x) (- a t)))
(if (<= t 2.9e+85) (+ x (* z (/ y a))) 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 <= -3.4e+70) {
tmp = t_1;
} else if (t <= -9.2e-157) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 2.9e+85) {
tmp = x + (z * (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 * ((z - t) / (a - t))
if (t <= (-3.4d+70)) then
tmp = t_1
else if (t <= (-9.2d-157)) then
tmp = z * ((y - x) / (a - t))
else if (t <= 2.9d+85) then
tmp = x + (z * (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 * ((z - t) / (a - t));
double tmp;
if (t <= -3.4e+70) {
tmp = t_1;
} else if (t <= -9.2e-157) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 2.9e+85) {
tmp = x + (z * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -3.4e+70: tmp = t_1 elif t <= -9.2e-157: tmp = z * ((y - x) / (a - t)) elif t <= 2.9e+85: tmp = x + (z * (y / a)) 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 <= -3.4e+70) tmp = t_1; elseif (t <= -9.2e-157) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 2.9e+85) tmp = Float64(x + Float64(z * Float64(y / a))); 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 <= -3.4e+70) tmp = t_1; elseif (t <= -9.2e-157) tmp = z * ((y - x) / (a - t)); elseif (t <= 2.9e+85) tmp = x + (z * (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[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.4e+70], t$95$1, If[LessEqual[t, -9.2e-157], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+85], N[(x + N[(z * N[(y / a), $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 -3.4 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -9.2 \cdot 10^{-157}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+85}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.4000000000000001e70 or 2.89999999999999997e85 < t Initial program 44.2%
associate-/l*73.6%
Simplified73.6%
Taylor expanded in x around 0 44.8%
associate-*r/68.8%
Simplified68.8%
if -3.4000000000000001e70 < t < -9.19999999999999954e-157Initial program 84.2%
associate-/l*90.4%
Simplified90.4%
Taylor expanded in z around inf 64.4%
div-sub64.5%
Simplified64.5%
if -9.19999999999999954e-157 < t < 2.89999999999999997e85Initial program 86.8%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t around 0 83.9%
Taylor expanded in y around inf 64.6%
associate-/l*69.0%
associate-/r/67.8%
Simplified67.8%
Final simplification67.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -3.9e+70)
t_1
(if (<= t -1.2e-149)
(* z (/ (- y x) (- a t)))
(if (<= t 4e+85) (+ x (/ z (/ a (- y x)))) 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 <= -3.9e+70) {
tmp = t_1;
} else if (t <= -1.2e-149) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 4e+85) {
tmp = x + (z / (a / (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 = y * ((z - t) / (a - t))
if (t <= (-3.9d+70)) then
tmp = t_1
else if (t <= (-1.2d-149)) then
tmp = z * ((y - x) / (a - t))
else if (t <= 4d+85) then
tmp = x + (z / (a / (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 = y * ((z - t) / (a - t));
double tmp;
if (t <= -3.9e+70) {
tmp = t_1;
} else if (t <= -1.2e-149) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 4e+85) {
tmp = x + (z / (a / (y - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -3.9e+70: tmp = t_1 elif t <= -1.2e-149: tmp = z * ((y - x) / (a - t)) elif t <= 4e+85: tmp = x + (z / (a / (y - x))) 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 <= -3.9e+70) tmp = t_1; elseif (t <= -1.2e-149) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 4e+85) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); 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 <= -3.9e+70) tmp = t_1; elseif (t <= -1.2e-149) tmp = z * ((y - x) / (a - t)); elseif (t <= 4e+85) tmp = x + (z / (a / (y - x))); 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, -3.9e+70], t$95$1, If[LessEqual[t, -1.2e-149], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+85], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $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 -3.9 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{-149}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+85}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.89999999999999975e70 or 4.0000000000000001e85 < t Initial program 44.2%
associate-/l*73.6%
Simplified73.6%
Taylor expanded in x around 0 44.8%
associate-*r/68.8%
Simplified68.8%
if -3.89999999999999975e70 < t < -1.2000000000000001e-149Initial program 84.2%
associate-/l*90.4%
Simplified90.4%
Taylor expanded in z around inf 64.4%
div-sub64.5%
Simplified64.5%
if -1.2000000000000001e-149 < t < 4.0000000000000001e85Initial program 86.8%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t around 0 75.9%
+-commutative75.9%
*-commutative75.9%
associate-/l*82.2%
Simplified82.2%
Final simplification75.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -4.8e+70)
t_1
(if (<= t -9.5e-149)
(* z (/ (- y x) (- a t)))
(if (<= t 4.2e+85) (+ x (/ (- y x) (/ a 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+70) {
tmp = t_1;
} else if (t <= -9.5e-149) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 4.2e+85) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-4.8d+70)) then
tmp = t_1
else if (t <= (-9.5d-149)) then
tmp = z * ((y - x) / (a - t))
else if (t <= 4.2d+85) then
tmp = x + ((y - x) / (a / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -4.8e+70) {
tmp = t_1;
} else if (t <= -9.5e-149) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 4.2e+85) {
tmp = x + ((y - x) / (a / 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+70: tmp = t_1 elif t <= -9.5e-149: tmp = z * ((y - x) / (a - t)) elif t <= 4.2e+85: tmp = x + ((y - x) / (a / 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+70) tmp = t_1; elseif (t <= -9.5e-149) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 4.2e+85) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / 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+70) tmp = t_1; elseif (t <= -9.5e-149) tmp = z * ((y - x) / (a - t)); elseif (t <= 4.2e+85) tmp = x + ((y - x) / (a / 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+70], t$95$1, If[LessEqual[t, -9.5e-149], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e+85], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / 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^{+70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-149}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+85}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.79999999999999974e70 or 4.2000000000000002e85 < t Initial program 44.2%
associate-/l*73.6%
Simplified73.6%
Taylor expanded in x around 0 44.8%
associate-*r/68.8%
Simplified68.8%
if -4.79999999999999974e70 < t < -9.50000000000000034e-149Initial program 84.2%
associate-/l*90.4%
Simplified90.4%
Taylor expanded in z around inf 64.4%
div-sub64.5%
Simplified64.5%
if -9.50000000000000034e-149 < t < 4.2000000000000002e85Initial program 86.8%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t around 0 83.9%
Final simplification75.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8.5e-145) (not (<= a 2.7e-15))) (+ x (/ (- z t) (/ (- a t) y))) (+ y (/ (- x y) (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.5e-145) || !(a <= 2.7e-15)) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = y + ((x - y) / (t / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-8.5d-145)) .or. (.not. (a <= 2.7d-15))) then
tmp = x + ((z - t) / ((a - t) / y))
else
tmp = y + ((x - y) / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.5e-145) || !(a <= 2.7e-15)) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = y + ((x - y) / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8.5e-145) or not (a <= 2.7e-15): tmp = x + ((z - t) / ((a - t) / y)) else: tmp = y + ((x - y) / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8.5e-145) || !(a <= 2.7e-15)) tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / y))); else tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8.5e-145) || ~((a <= 2.7e-15))) tmp = x + ((z - t) / ((a - t) / y)); else tmp = y + ((x - y) / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8.5e-145], N[Not[LessEqual[a, 2.7e-15]], $MachinePrecision]], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{-145} \lor \neg \left(a \leq 2.7 \cdot 10^{-15}\right):\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -8.50000000000000043e-145 or 2.70000000000000009e-15 < a Initial program 71.3%
*-commutative71.3%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in y around inf 75.3%
if -8.50000000000000043e-145 < a < 2.70000000000000009e-15Initial program 76.5%
associate-/l*80.4%
Simplified80.4%
Taylor expanded in t around -inf 80.2%
mul-1-neg80.2%
unsub-neg80.2%
div-sub77.8%
*-commutative77.8%
div-sub80.2%
distribute-rgt-out--80.2%
Simplified80.2%
Taylor expanded in z around inf 79.2%
*-commutative79.2%
associate-/l*84.0%
Simplified84.0%
Final simplification78.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.8e-54) (not (<= a 1.36e+42))) (+ x (/ (- z t) (/ (- a t) y))) (+ y (* (- y x) (/ (- a z) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.8e-54) || !(a <= 1.36e+42)) {
tmp = x + ((z - t) / ((a - t) / y));
} 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 ((a <= (-1.8d-54)) .or. (.not. (a <= 1.36d+42))) then
tmp = x + ((z - t) / ((a - t) / y))
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 ((a <= -1.8e-54) || !(a <= 1.36e+42)) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = y + ((y - x) * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.8e-54) or not (a <= 1.36e+42): tmp = x + ((z - t) / ((a - t) / y)) else: tmp = y + ((y - x) * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.8e-54) || !(a <= 1.36e+42)) tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / y))); else tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.8e-54) || ~((a <= 1.36e+42))) tmp = x + ((z - t) / ((a - t) / y)); else tmp = y + ((y - x) * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.8e-54], N[Not[LessEqual[a, 1.36e+42]], $MachinePrecision]], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{-54} \lor \neg \left(a \leq 1.36 \cdot 10^{+42}\right):\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if a < -1.79999999999999988e-54 or 1.35999999999999999e42 < a Initial program 72.7%
*-commutative72.7%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in y around inf 78.6%
if -1.79999999999999988e-54 < a < 1.35999999999999999e42Initial program 73.5%
associate-/l*79.9%
Simplified79.9%
associate-/l*73.5%
clear-num73.5%
inv-pow73.5%
Applied egg-rr73.5%
unpow-173.5%
associate-/r*79.6%
Simplified79.6%
div-inv79.5%
Applied egg-rr79.5%
Taylor expanded in t around -inf 74.1%
*-commutative74.1%
mul-1-neg74.1%
distribute-rgt-out--74.1%
*-commutative74.1%
associate-*r/79.8%
div-sub76.0%
*-commutative76.0%
div-sub79.8%
associate-/r/79.8%
unsub-neg79.8%
associate-/r/79.8%
div-sub76.0%
*-commutative76.0%
div-sub79.8%
Simplified79.8%
Final simplification79.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -480.0) (+ y (/ (- x y) (/ t z))) (if (<= t 2.3e+86) (+ x (/ (- y x) (/ a z))) (* y (/ (- z t) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -480.0) {
tmp = y + ((x - y) / (t / z));
} else if (t <= 2.3e+86) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-480.0d0)) then
tmp = y + ((x - y) / (t / z))
else if (t <= 2.3d+86) then
tmp = x + ((y - x) / (a / z))
else
tmp = y * ((z - t) / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -480.0) {
tmp = y + ((x - y) / (t / z));
} else if (t <= 2.3e+86) {
tmp = x + ((y - x) / (a / z));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -480.0: tmp = y + ((x - y) / (t / z)) elif t <= 2.3e+86: tmp = x + ((y - x) / (a / z)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -480.0) tmp = Float64(y + Float64(Float64(x - y) / Float64(t / z))); elseif (t <= 2.3e+86) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -480.0) tmp = y + ((x - y) / (t / z)); elseif (t <= 2.3e+86) tmp = x + ((y - x) / (a / z)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -480.0], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+86], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -480:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+86}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if t < -480Initial program 59.8%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in t around -inf 58.3%
mul-1-neg58.3%
unsub-neg58.3%
div-sub58.3%
*-commutative58.3%
div-sub58.3%
distribute-rgt-out--60.3%
Simplified60.3%
Taylor expanded in z around inf 59.2%
*-commutative59.2%
associate-/l*66.6%
Simplified66.6%
if -480 < t < 2.2999999999999999e86Initial program 87.4%
associate-/l*95.8%
Simplified95.8%
Taylor expanded in t around 0 79.5%
if 2.2999999999999999e86 < t Initial program 36.3%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in x around 0 40.7%
associate-*r/70.1%
Simplified70.1%
Final simplification75.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.2e+48) (not (<= t 1.6e+112))) (/ (- y) (/ t (- z t))) (+ x (* z (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e+48) || !(t <= 1.6e+112)) {
tmp = -y / (t / (z - t));
} else {
tmp = x + (z * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-3.2d+48)) .or. (.not. (t <= 1.6d+112))) then
tmp = -y / (t / (z - t))
else
tmp = x + (z * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e+48) || !(t <= 1.6e+112)) {
tmp = -y / (t / (z - t));
} else {
tmp = x + (z * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.2e+48) or not (t <= 1.6e+112): tmp = -y / (t / (z - t)) else: tmp = x + (z * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.2e+48) || !(t <= 1.6e+112)) tmp = Float64(Float64(-y) / Float64(t / Float64(z - t))); else tmp = Float64(x + Float64(z * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.2e+48) || ~((t <= 1.6e+112))) tmp = -y / (t / (z - t)); else tmp = x + (z * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.2e+48], N[Not[LessEqual[t, 1.6e+112]], $MachinePrecision]], N[((-y) / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+48} \lor \neg \left(t \leq 1.6 \cdot 10^{+112}\right):\\
\;\;\;\;\frac{-y}{\frac{t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -3.2000000000000001e48 or 1.59999999999999993e112 < t Initial program 43.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in x around 0 45.0%
associate-*r/67.7%
Simplified67.7%
Taylor expanded in a around 0 36.1%
mul-1-neg36.1%
associate-/l*51.9%
Simplified51.9%
if -3.2000000000000001e48 < t < 1.59999999999999993e112Initial program 86.6%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in t around 0 76.4%
Taylor expanded in y around inf 58.8%
associate-/l*62.7%
associate-/r/61.8%
Simplified61.8%
Final simplification58.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -7.2e+55)
y
(if (<= t -5.4e-297)
x
(if (<= t 8.8e-191) (* y (/ z a)) (if (<= t 1.85e+112) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.2e+55) {
tmp = y;
} else if (t <= -5.4e-297) {
tmp = x;
} else if (t <= 8.8e-191) {
tmp = y * (z / a);
} else if (t <= 1.85e+112) {
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 <= (-7.2d+55)) then
tmp = y
else if (t <= (-5.4d-297)) then
tmp = x
else if (t <= 8.8d-191) then
tmp = y * (z / a)
else if (t <= 1.85d+112) 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 <= -7.2e+55) {
tmp = y;
} else if (t <= -5.4e-297) {
tmp = x;
} else if (t <= 8.8e-191) {
tmp = y * (z / a);
} else if (t <= 1.85e+112) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.2e+55: tmp = y elif t <= -5.4e-297: tmp = x elif t <= 8.8e-191: tmp = y * (z / a) elif t <= 1.85e+112: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.2e+55) tmp = y; elseif (t <= -5.4e-297) tmp = x; elseif (t <= 8.8e-191) tmp = Float64(y * Float64(z / a)); elseif (t <= 1.85e+112) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.2e+55) tmp = y; elseif (t <= -5.4e-297) tmp = x; elseif (t <= 8.8e-191) tmp = y * (z / a); elseif (t <= 1.85e+112) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.2e+55], y, If[LessEqual[t, -5.4e-297], x, If[LessEqual[t, 8.8e-191], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+112], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+55}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-297}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-191}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+112}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.19999999999999975e55 or 1.85000000000000002e112 < t Initial program 43.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in t around inf 45.5%
if -7.19999999999999975e55 < t < -5.4000000000000002e-297 or 8.79999999999999992e-191 < t < 1.85000000000000002e112Initial program 87.7%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in a around inf 39.9%
if -5.4000000000000002e-297 < t < 8.79999999999999992e-191Initial program 81.8%
associate-/l*97.0%
Simplified97.0%
Taylor expanded in x around 0 51.4%
associate-*r/60.4%
Simplified60.4%
Taylor expanded in t around 0 56.5%
Final simplification43.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.55e+56)
y
(if (<= t -1.05e-296)
x
(if (<= t 2.45e-188) (/ y (/ a z)) (if (<= t 3.7e+112) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.55e+56) {
tmp = y;
} else if (t <= -1.05e-296) {
tmp = x;
} else if (t <= 2.45e-188) {
tmp = y / (a / z);
} else if (t <= 3.7e+112) {
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 <= (-1.55d+56)) then
tmp = y
else if (t <= (-1.05d-296)) then
tmp = x
else if (t <= 2.45d-188) then
tmp = y / (a / z)
else if (t <= 3.7d+112) 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 <= -1.55e+56) {
tmp = y;
} else if (t <= -1.05e-296) {
tmp = x;
} else if (t <= 2.45e-188) {
tmp = y / (a / z);
} else if (t <= 3.7e+112) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.55e+56: tmp = y elif t <= -1.05e-296: tmp = x elif t <= 2.45e-188: tmp = y / (a / z) elif t <= 3.7e+112: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.55e+56) tmp = y; elseif (t <= -1.05e-296) tmp = x; elseif (t <= 2.45e-188) tmp = Float64(y / Float64(a / z)); elseif (t <= 3.7e+112) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.55e+56) tmp = y; elseif (t <= -1.05e-296) tmp = x; elseif (t <= 2.45e-188) tmp = y / (a / z); elseif (t <= 3.7e+112) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.55e+56], y, If[LessEqual[t, -1.05e-296], x, If[LessEqual[t, 2.45e-188], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e+112], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{+56}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-296}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.45 \cdot 10^{-188}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{+112}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.55000000000000002e56 or 3.70000000000000004e112 < t Initial program 43.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in t around inf 45.5%
if -1.55000000000000002e56 < t < -1.05e-296 or 2.45000000000000002e-188 < t < 3.70000000000000004e112Initial program 87.7%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in a around inf 39.9%
if -1.05e-296 < t < 2.45000000000000002e-188Initial program 81.8%
associate-/l*97.0%
Simplified97.0%
Taylor expanded in x around 0 51.4%
associate-*r/60.4%
Simplified60.4%
Taylor expanded in t around 0 47.6%
associate-/l*56.6%
Simplified56.6%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.1e+51) y (if (<= t 4.8e+112) (+ x (* z (/ y a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.1e+51) {
tmp = y;
} else if (t <= 4.8e+112) {
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.1d+51)) then
tmp = y
else if (t <= 4.8d+112) 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.1e+51) {
tmp = y;
} else if (t <= 4.8e+112) {
tmp = x + (z * (y / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.1e+51: tmp = y elif t <= 4.8e+112: tmp = x + (z * (y / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.1e+51) tmp = y; elseif (t <= 4.8e+112) 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.1e+51) tmp = y; elseif (t <= 4.8e+112) tmp = x + (z * (y / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.1e+51], y, If[LessEqual[t, 4.8e+112], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+51}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+112}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.10000000000000011e51 or 4.8e112 < t Initial program 43.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in t around inf 45.5%
if -3.10000000000000011e51 < t < 4.8e112Initial program 86.6%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in t around 0 76.4%
Taylor expanded in y around inf 58.8%
associate-/l*62.7%
associate-/r/61.8%
Simplified61.8%
Final simplification56.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -9.2e+56) y (if (<= t 6.5e+112) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.2e+56) {
tmp = y;
} else if (t <= 6.5e+112) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-9.2d+56)) then
tmp = y
else if (t <= 6.5d+112) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.2e+56) {
tmp = y;
} else if (t <= 6.5e+112) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.2e+56: tmp = y elif t <= 6.5e+112: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.2e+56) tmp = y; elseif (t <= 6.5e+112) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.2e+56) tmp = y; elseif (t <= 6.5e+112) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.2e+56], y, If[LessEqual[t, 6.5e+112], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{+56}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+112}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.20000000000000058e56 or 6.4999999999999998e112 < t Initial program 43.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in t around inf 45.5%
if -9.20000000000000058e56 < t < 6.4999999999999998e112Initial program 86.6%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in a around inf 36.4%
Final simplification39.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 73.0%
associate-/l*88.2%
Simplified88.2%
Taylor expanded in a around inf 26.9%
Final simplification26.9%
(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 2023240
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))