
(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 19 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 (fma (/ (- y x) (- a t)) (- z t) x))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -2e-281)
t_1
(if (<= t_2 0.0)
(+ y (/ (* (- z a) (- x y)) t))
(if (<= t_2 1e+304) t_2 t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((y - x) / (a - t)), (z - t), x);
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -2e-281) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else if (t_2 <= 1e+304) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(y - x) / Float64(a - t)), Float64(z - t), x) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -2e-281) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / t)); elseif (t_2 <= 1e+304) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $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, -2e-281], t$95$1, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+304], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{y - x}{a - t}, z - t, x\right)\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t_2 \leq 10^{+304}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -2e-281 or 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 62.0%
+-commutative62.0%
associate-*l/91.1%
fma-def91.2%
Simplified91.2%
if -2e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
associate-*l/3.9%
Simplified3.9%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
distribute-lft-out--99.6%
div-sub99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e303Initial program 98.8%
Final simplification94.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) (- a t)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -2e-281)
t_1
(if (<= t_2 0.0)
(+ y (/ (* (- z a) (- x y)) t))
(if (<= t_2 1e+304) t_2 t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) / (a - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -2e-281) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else if (t_2 <= 1e+304) {
tmp = t_2;
} 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 + ((z - t) * ((y - x) / (a - t)))
t_2 = x + (((y - x) * (z - t)) / (a - t))
if (t_2 <= (-2d-281)) then
tmp = t_1
else if (t_2 <= 0.0d0) then
tmp = y + (((z - a) * (x - y)) / t)
else if (t_2 <= 1d+304) then
tmp = t_2
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 - t)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -2e-281) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else if (t_2 <= 1e+304) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) / (a - t))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -2e-281: tmp = t_1 elif t_2 <= 0.0: tmp = y + (((z - a) * (x - y)) / t) elif t_2 <= 1e+304: tmp = t_2 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) / Float64(a - t)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -2e-281) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / t)); elseif (t_2 <= 1e+304) tmp = t_2; 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 - t))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -2e-281) tmp = t_1; elseif (t_2 <= 0.0) tmp = y + (((z - a) * (x - y)) / t); elseif (t_2 <= 1e+304) tmp = t_2; 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] / N[(a - 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, -2e-281], t$95$1, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+304], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t_2 \leq 10^{+304}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -2e-281 or 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 62.0%
associate-*l/91.1%
Simplified91.1%
if -2e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
associate-*l/3.9%
Simplified3.9%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
distribute-lft-out--99.6%
div-sub99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e303Initial program 98.8%
Final simplification94.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -2e-281)
(+ x (/ (- z t) (/ (- a t) (- y x))))
(if (<= t_1 0.0)
(+ y (/ (* (- z a) (- x y)) t))
(if (<= t_1 1e+304) t_1 (+ x (* (- z t) (/ (- y x) (- 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 <= -2e-281) {
tmp = x + ((z - t) / ((a - t) / (y - x)));
} else if (t_1 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((z - t) * ((y - x) / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if (t_1 <= (-2d-281)) then
tmp = x + ((z - t) / ((a - t) / (y - x)))
else if (t_1 <= 0.0d0) then
tmp = y + (((z - a) * (x - y)) / t)
else if (t_1 <= 1d+304) then
tmp = t_1
else
tmp = x + ((z - t) * ((y - x) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -2e-281) {
tmp = x + ((z - t) / ((a - t) / (y - x)));
} else if (t_1 <= 0.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((z - t) * ((y - x) / (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 <= -2e-281: tmp = x + ((z - t) / ((a - t) / (y - x))) elif t_1 <= 0.0: tmp = y + (((z - a) * (x - y)) / t) elif t_1 <= 1e+304: tmp = t_1 else: tmp = x + ((z - t) * ((y - x) / (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 <= -2e-281) tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / Float64(y - x)))); elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / t)); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) / 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 <= -2e-281) tmp = x + ((z - t) / ((a - t) / (y - x))); elseif (t_1 <= 0.0) tmp = y + (((z - a) * (x - y)) / t); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = x + ((z - t) * ((y - x) / (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, -2e-281], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+304], t$95$1, N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-281}:\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t_1 \leq 10^{+304}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -2e-281Initial program 72.6%
+-commutative72.6%
associate-*l/92.6%
fma-def92.8%
Simplified92.8%
fma-udef92.6%
*-commutative92.6%
clear-num92.5%
un-div-inv92.7%
Applied egg-rr92.7%
if -2e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
associate-*l/3.9%
Simplified3.9%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
distribute-lft-out--99.6%
div-sub99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e303Initial program 98.8%
if 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 35.4%
associate-*l/87.1%
Simplified87.1%
Final simplification94.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* t (- y)) (- a t))))
(if (<= t -6e+37)
(/ (- y) (/ t (- z t)))
(if (<= t -3.2e-69)
(/ y (/ (- a t) z))
(if (<= t -2.05e-97)
t_1
(if (<= t 6.8e-60)
(* x (- 1.0 (/ z a)))
(if (<= t 2e-28)
t_1
(if (<= t 3.2e+39) (/ (* y z) (- a t)) (* t (/ y (- t a)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t * -y) / (a - t);
double tmp;
if (t <= -6e+37) {
tmp = -y / (t / (z - t));
} else if (t <= -3.2e-69) {
tmp = y / ((a - t) / z);
} else if (t <= -2.05e-97) {
tmp = t_1;
} else if (t <= 6.8e-60) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2e-28) {
tmp = t_1;
} else if (t <= 3.2e+39) {
tmp = (y * z) / (a - t);
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (t * -y) / (a - t)
if (t <= (-6d+37)) then
tmp = -y / (t / (z - t))
else if (t <= (-3.2d-69)) then
tmp = y / ((a - t) / z)
else if (t <= (-2.05d-97)) then
tmp = t_1
else if (t <= 6.8d-60) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 2d-28) then
tmp = t_1
else if (t <= 3.2d+39) then
tmp = (y * z) / (a - t)
else
tmp = t * (y / (t - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t * -y) / (a - t);
double tmp;
if (t <= -6e+37) {
tmp = -y / (t / (z - t));
} else if (t <= -3.2e-69) {
tmp = y / ((a - t) / z);
} else if (t <= -2.05e-97) {
tmp = t_1;
} else if (t <= 6.8e-60) {
tmp = x * (1.0 - (z / a));
} else if (t <= 2e-28) {
tmp = t_1;
} else if (t <= 3.2e+39) {
tmp = (y * z) / (a - t);
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t * -y) / (a - t) tmp = 0 if t <= -6e+37: tmp = -y / (t / (z - t)) elif t <= -3.2e-69: tmp = y / ((a - t) / z) elif t <= -2.05e-97: tmp = t_1 elif t <= 6.8e-60: tmp = x * (1.0 - (z / a)) elif t <= 2e-28: tmp = t_1 elif t <= 3.2e+39: tmp = (y * z) / (a - t) else: tmp = t * (y / (t - a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t * Float64(-y)) / Float64(a - t)) tmp = 0.0 if (t <= -6e+37) tmp = Float64(Float64(-y) / Float64(t / Float64(z - t))); elseif (t <= -3.2e-69) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (t <= -2.05e-97) tmp = t_1; elseif (t <= 6.8e-60) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 2e-28) tmp = t_1; elseif (t <= 3.2e+39) tmp = Float64(Float64(y * z) / Float64(a - t)); else tmp = Float64(t * Float64(y / Float64(t - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t * -y) / (a - t); tmp = 0.0; if (t <= -6e+37) tmp = -y / (t / (z - t)); elseif (t <= -3.2e-69) tmp = y / ((a - t) / z); elseif (t <= -2.05e-97) tmp = t_1; elseif (t <= 6.8e-60) tmp = x * (1.0 - (z / a)); elseif (t <= 2e-28) tmp = t_1; elseif (t <= 3.2e+39) tmp = (y * z) / (a - t); else tmp = t * (y / (t - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t * (-y)), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+37], N[((-y) / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.2e-69], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.05e-97], t$95$1, If[LessEqual[t, 6.8e-60], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-28], t$95$1, If[LessEqual[t, 3.2e+39], N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t \cdot \left(-y\right)}{a - t}\\
\mathbf{if}\;t \leq -6 \cdot 10^{+37}:\\
\;\;\;\;\frac{-y}{\frac{t}{z - t}}\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-69}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-97}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+39}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{t - a}\\
\end{array}
\end{array}
if t < -6.00000000000000043e37Initial program 47.2%
+-commutative47.2%
associate-*l/66.7%
fma-def66.8%
Simplified66.8%
fma-udef66.7%
*-commutative66.7%
clear-num65.0%
un-div-inv65.2%
Applied egg-rr65.2%
Taylor expanded in y around inf 64.6%
div-sub64.6%
*-commutative64.6%
associate-/r/55.8%
Simplified55.8%
Taylor expanded in a around 0 44.2%
mul-1-neg44.2%
associate-/l*59.2%
distribute-neg-frac59.2%
Simplified59.2%
if -6.00000000000000043e37 < t < -3.19999999999999999e-69Initial program 75.9%
+-commutative75.9%
associate-*l/80.8%
fma-def81.3%
Simplified81.3%
fma-udef80.8%
*-commutative80.8%
clear-num80.7%
un-div-inv80.9%
Applied egg-rr80.9%
Taylor expanded in y around inf 51.8%
div-sub51.8%
*-commutative51.8%
associate-/r/46.9%
Simplified46.9%
Taylor expanded in z around inf 46.5%
associate-/l*46.6%
Simplified46.6%
if -3.19999999999999999e-69 < t < -2.04999999999999996e-97 or 6.80000000000000013e-60 < t < 1.99999999999999994e-28Initial program 94.3%
associate-*l/83.5%
Simplified83.5%
Taylor expanded in x around 0 88.3%
Taylor expanded in z around 0 65.8%
mul-1-neg65.8%
distribute-lft-neg-out65.8%
*-commutative65.8%
Simplified65.8%
if -2.04999999999999996e-97 < t < 6.80000000000000013e-60Initial program 91.3%
+-commutative91.3%
associate-*l/96.6%
fma-def96.6%
Simplified96.6%
fma-udef96.6%
*-commutative96.6%
clear-num96.6%
un-div-inv96.7%
Applied egg-rr96.7%
Taylor expanded in a around inf 85.0%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in y around 0 69.2%
*-lft-identity69.2%
associate-*r/69.2%
*-commutative69.2%
associate-*r*69.2%
associate-*l/77.8%
associate-*r/77.8%
distribute-rgt-in77.8%
mul-1-neg77.8%
unsub-neg77.8%
Simplified77.8%
Taylor expanded in t around 0 77.8%
if 1.99999999999999994e-28 < t < 3.19999999999999993e39Initial program 77.6%
associate-*l/85.0%
Simplified85.0%
Taylor expanded in x around 0 47.7%
associate-/l*55.2%
associate-/r/55.1%
Simplified55.1%
Taylor expanded in z around inf 48.4%
if 3.19999999999999993e39 < t Initial program 49.9%
associate-*l/74.9%
Simplified74.9%
Taylor expanded in x around 0 40.6%
Taylor expanded in z around 0 32.4%
mul-1-neg32.4%
distribute-lft-neg-out32.4%
*-commutative32.4%
Simplified32.4%
frac-2neg32.4%
div-inv32.5%
distribute-rgt-neg-out32.5%
remove-double-neg32.5%
sub-neg32.5%
distribute-neg-in32.5%
add-sqr-sqrt0.0%
sqrt-unprod11.9%
sqr-neg11.9%
sqrt-unprod13.5%
add-sqr-sqrt13.5%
add-sqr-sqrt0.0%
sqrt-unprod17.1%
sqr-neg17.1%
sqrt-unprod32.4%
add-sqr-sqrt32.5%
Applied egg-rr32.5%
*-commutative32.5%
associate-*r*48.9%
associate-*l/48.9%
*-lft-identity48.9%
+-commutative48.9%
unsub-neg48.9%
Simplified48.9%
Final simplification62.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ a (- z t))))))
(if (<= a -3.45e-34)
t_1
(if (<= a 1.2e-153)
(* y (/ (- z t) (- a t)))
(if (<= a 3.1e-128)
(* (- z a) (/ x t))
(if (<= a 1.5e+37) (/ (- z t) (/ (- a t) y)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -3.45e-34) {
tmp = t_1;
} else if (a <= 1.2e-153) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 3.1e-128) {
tmp = (z - a) * (x / t);
} else if (a <= 1.5e+37) {
tmp = (z - t) / ((a - t) / y);
} 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) / (a / (z - t)))
if (a <= (-3.45d-34)) then
tmp = t_1
else if (a <= 1.2d-153) then
tmp = y * ((z - t) / (a - t))
else if (a <= 3.1d-128) then
tmp = (z - a) * (x / t)
else if (a <= 1.5d+37) then
tmp = (z - t) / ((a - t) / y)
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 / (z - t)));
double tmp;
if (a <= -3.45e-34) {
tmp = t_1;
} else if (a <= 1.2e-153) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 3.1e-128) {
tmp = (z - a) * (x / t);
} else if (a <= 1.5e+37) {
tmp = (z - t) / ((a - t) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / (a / (z - t))) tmp = 0 if a <= -3.45e-34: tmp = t_1 elif a <= 1.2e-153: tmp = y * ((z - t) / (a - t)) elif a <= 3.1e-128: tmp = (z - a) * (x / t) elif a <= 1.5e+37: tmp = (z - t) / ((a - t) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - x) / Float64(a / Float64(z - t)))) tmp = 0.0 if (a <= -3.45e-34) tmp = t_1; elseif (a <= 1.2e-153) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 3.1e-128) tmp = Float64(Float64(z - a) * Float64(x / t)); elseif (a <= 1.5e+37) tmp = Float64(Float64(z - t) / Float64(Float64(a - t) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - x) / (a / (z - t))); tmp = 0.0; if (a <= -3.45e-34) tmp = t_1; elseif (a <= 1.2e-153) tmp = y * ((z - t) / (a - t)); elseif (a <= 3.1e-128) tmp = (z - a) * (x / t); elseif (a <= 1.5e+37) tmp = (z - t) / ((a - t) / y); 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[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.45e-34], t$95$1, If[LessEqual[a, 1.2e-153], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-128], N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e+37], N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{if}\;a \leq -3.45 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-153}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-128}:\\
\;\;\;\;\left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+37}:\\
\;\;\;\;\frac{z - t}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -3.45e-34 or 1.50000000000000011e37 < a Initial program 73.1%
associate-*l/89.6%
Simplified89.6%
Taylor expanded in a around inf 65.3%
associate-/l*76.3%
Simplified76.3%
if -3.45e-34 < a < 1.2000000000000001e-153Initial program 68.9%
associate-*l/72.2%
Simplified72.2%
Taylor expanded in y around inf 79.5%
div-sub79.5%
Simplified79.5%
if 1.2000000000000001e-153 < a < 3.10000000000000003e-128Initial program 22.4%
associate-*l/19.9%
Simplified19.9%
Taylor expanded in t around inf 99.4%
associate--l+99.4%
distribute-lft-out--99.4%
div-sub99.4%
mul-1-neg99.4%
unsub-neg99.4%
distribute-rgt-out--99.4%
Simplified99.4%
Taylor expanded in y around 0 88.1%
associate-/l*88.1%
associate-/r/88.7%
Simplified88.7%
if 3.10000000000000003e-128 < a < 1.50000000000000011e37Initial program 62.1%
+-commutative62.1%
associate-*l/80.4%
fma-def80.4%
Simplified80.4%
fma-udef80.4%
*-commutative80.4%
clear-num80.1%
un-div-inv80.4%
Applied egg-rr80.4%
Taylor expanded in y around inf 65.9%
div-sub65.9%
*-commutative65.9%
associate-/r/65.9%
Simplified65.9%
Final simplification76.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z t) (/ (- y x) (- a t))))))
(if (<= a -9.5e-37)
t_1
(if (<= a -1.86e-224)
(* y (/ (- z t) (- a t)))
(if (<= a 9.6e-106) (+ y (/ (* (- z a) (- x y)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - t) * ((y - x) / (a - t)));
double tmp;
if (a <= -9.5e-37) {
tmp = t_1;
} else if (a <= -1.86e-224) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 9.6e-106) {
tmp = y + (((z - a) * (x - y)) / 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 - t)))
if (a <= (-9.5d-37)) then
tmp = t_1
else if (a <= (-1.86d-224)) then
tmp = y * ((z - t) / (a - t))
else if (a <= 9.6d-106) then
tmp = y + (((z - a) * (x - y)) / 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 - t)));
double tmp;
if (a <= -9.5e-37) {
tmp = t_1;
} else if (a <= -1.86e-224) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 9.6e-106) {
tmp = y + (((z - a) * (x - y)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - t) * ((y - x) / (a - t))) tmp = 0 if a <= -9.5e-37: tmp = t_1 elif a <= -1.86e-224: tmp = y * ((z - t) / (a - t)) elif a <= 9.6e-106: tmp = y + (((z - a) * (x - y)) / 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) / Float64(a - t)))) tmp = 0.0 if (a <= -9.5e-37) tmp = t_1; elseif (a <= -1.86e-224) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 9.6e-106) tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / 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 - t))); tmp = 0.0; if (a <= -9.5e-37) tmp = t_1; elseif (a <= -1.86e-224) tmp = y * ((z - t) / (a - t)); elseif (a <= 9.6e-106) tmp = y + (((z - a) * (x - y)) / 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] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e-37], t$95$1, If[LessEqual[a, -1.86e-224], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.6e-106], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{-37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.86 \cdot 10^{-224}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{-106}:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -9.49999999999999927e-37 or 9.599999999999999e-106 < a Initial program 71.9%
associate-*l/88.9%
Simplified88.9%
if -9.49999999999999927e-37 < a < -1.8600000000000001e-224Initial program 61.1%
associate-*l/68.7%
Simplified68.7%
Taylor expanded in y around inf 84.9%
div-sub84.9%
Simplified84.9%
if -1.8600000000000001e-224 < a < 9.599999999999999e-106Initial program 70.1%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 90.3%
associate--l+90.3%
distribute-lft-out--90.3%
div-sub90.3%
mul-1-neg90.3%
unsub-neg90.3%
distribute-rgt-out--90.3%
Simplified90.3%
Final simplification88.6%
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -6.6e+75)
(and (not (<= t -7.2e-43))
(or (<= t -2.05e-97) (not (<= t 3.2e-62)))))
(* y (/ (- z t) (- a t)))
(+ x (/ z (/ a (- y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.6e+75) || (!(t <= -7.2e-43) && ((t <= -2.05e-97) || !(t <= 3.2e-62)))) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z / (a / (y - 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 ((t <= (-6.6d+75)) .or. (.not. (t <= (-7.2d-43))) .and. (t <= (-2.05d-97)) .or. (.not. (t <= 3.2d-62))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z / (a / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.6e+75) || (!(t <= -7.2e-43) && ((t <= -2.05e-97) || !(t <= 3.2e-62)))) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z / (a / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -6.6e+75) or (not (t <= -7.2e-43) and ((t <= -2.05e-97) or not (t <= 3.2e-62))): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z / (a / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -6.6e+75) || (!(t <= -7.2e-43) && ((t <= -2.05e-97) || !(t <= 3.2e-62)))) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -6.6e+75) || (~((t <= -7.2e-43)) && ((t <= -2.05e-97) || ~((t <= 3.2e-62))))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z / (a / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -6.6e+75], And[N[Not[LessEqual[t, -7.2e-43]], $MachinePrecision], Or[LessEqual[t, -2.05e-97], N[Not[LessEqual[t, 3.2e-62]], $MachinePrecision]]]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+75} \lor \neg \left(t \leq -7.2 \cdot 10^{-43}\right) \land \left(t \leq -2.05 \cdot 10^{-97} \lor \neg \left(t \leq 3.2 \cdot 10^{-62}\right)\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\end{array}
\end{array}
if t < -6.59999999999999996e75 or -7.1999999999999998e-43 < t < -2.04999999999999996e-97 or 3.20000000000000021e-62 < t Initial program 54.5%
associate-*l/71.7%
Simplified71.7%
Taylor expanded in y around inf 68.5%
div-sub68.5%
Simplified68.5%
if -6.59999999999999996e75 < t < -7.1999999999999998e-43 or -2.04999999999999996e-97 < t < 3.20000000000000021e-62Initial program 89.8%
associate-*l/95.5%
Simplified95.5%
Taylor expanded in t around 0 76.8%
associate-/l*83.5%
Simplified83.5%
Final simplification75.1%
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -6.6e+75)
(not
(or (<= t -1.05e-41) (and (not (<= t -2.05e-97)) (<= t 4.3e-60)))))
(* y (/ (- z t) (- a t)))
(- x (/ (- x y) (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.6e+75) || !((t <= -1.05e-41) || (!(t <= -2.05e-97) && (t <= 4.3e-60)))) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x - ((x - y) / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-6.6d+75)) .or. (.not. (t <= (-1.05d-41)) .or. (.not. (t <= (-2.05d-97))) .and. (t <= 4.3d-60))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x - ((x - y) / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.6e+75) || !((t <= -1.05e-41) || (!(t <= -2.05e-97) && (t <= 4.3e-60)))) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x - ((x - y) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -6.6e+75) or not ((t <= -1.05e-41) or (not (t <= -2.05e-97) and (t <= 4.3e-60))): tmp = y * ((z - t) / (a - t)) else: tmp = x - ((x - y) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -6.6e+75) || !((t <= -1.05e-41) || (!(t <= -2.05e-97) && (t <= 4.3e-60)))) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x - Float64(Float64(x - y) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -6.6e+75) || ~(((t <= -1.05e-41) || (~((t <= -2.05e-97)) && (t <= 4.3e-60))))) tmp = y * ((z - t) / (a - t)); else tmp = x - ((x - y) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -6.6e+75], N[Not[Or[LessEqual[t, -1.05e-41], And[N[Not[LessEqual[t, -2.05e-97]], $MachinePrecision], LessEqual[t, 4.3e-60]]]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+75} \lor \neg \left(t \leq -1.05 \cdot 10^{-41} \lor \neg \left(t \leq -2.05 \cdot 10^{-97}\right) \land t \leq 4.3 \cdot 10^{-60}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -6.59999999999999996e75 or -1.05000000000000006e-41 < t < -2.04999999999999996e-97 or 4.3000000000000001e-60 < t Initial program 54.5%
associate-*l/71.7%
Simplified71.7%
Taylor expanded in y around inf 68.5%
div-sub68.5%
Simplified68.5%
if -6.59999999999999996e75 < t < -1.05000000000000006e-41 or -2.04999999999999996e-97 < t < 4.3000000000000001e-60Initial program 89.8%
+-commutative89.8%
associate-*l/95.5%
fma-def95.5%
Simplified95.5%
fma-udef95.5%
*-commutative95.5%
clear-num94.7%
un-div-inv94.8%
Applied egg-rr94.8%
Taylor expanded in a around inf 78.5%
associate-/l*86.1%
Simplified86.1%
Taylor expanded in z around inf 84.4%
Final simplification75.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -4.1e+37)
t_1
(if (<= t -1.8e-38)
(* z (/ (- y x) (- a t)))
(if (or (<= t -2.05e-97) (not (<= t 3.8e-77)))
t_1
(* x (- 1.0 (/ z a))))))))
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.1e+37) {
tmp = t_1;
} else if (t <= -1.8e-38) {
tmp = z * ((y - x) / (a - t));
} else if ((t <= -2.05e-97) || !(t <= 3.8e-77)) {
tmp = t_1;
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-4.1d+37)) then
tmp = t_1
else if (t <= (-1.8d-38)) then
tmp = z * ((y - x) / (a - t))
else if ((t <= (-2.05d-97)) .or. (.not. (t <= 3.8d-77))) then
tmp = t_1
else
tmp = x * (1.0d0 - (z / a))
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.1e+37) {
tmp = t_1;
} else if (t <= -1.8e-38) {
tmp = z * ((y - x) / (a - t));
} else if ((t <= -2.05e-97) || !(t <= 3.8e-77)) {
tmp = t_1;
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -4.1e+37: tmp = t_1 elif t <= -1.8e-38: tmp = z * ((y - x) / (a - t)) elif (t <= -2.05e-97) or not (t <= 3.8e-77): tmp = t_1 else: tmp = x * (1.0 - (z / a)) 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.1e+37) tmp = t_1; elseif (t <= -1.8e-38) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif ((t <= -2.05e-97) || !(t <= 3.8e-77)) tmp = t_1; else tmp = Float64(x * Float64(1.0 - Float64(z / a))); 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.1e+37) tmp = t_1; elseif (t <= -1.8e-38) tmp = z * ((y - x) / (a - t)); elseif ((t <= -2.05e-97) || ~((t <= 3.8e-77))) tmp = t_1; else tmp = x * (1.0 - (z / a)); 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.1e+37], t$95$1, If[LessEqual[t, -1.8e-38], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -2.05e-97], N[Not[LessEqual[t, 3.8e-77]], $MachinePrecision]], t$95$1, N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-38}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-97} \lor \neg \left(t \leq 3.8 \cdot 10^{-77}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\end{array}
\end{array}
if t < -4.0999999999999998e37 or -1.8e-38 < t < -2.04999999999999996e-97 or 3.7999999999999999e-77 < t Initial program 57.9%
associate-*l/73.8%
Simplified73.8%
Taylor expanded in y around inf 65.6%
div-sub65.6%
Simplified65.6%
if -4.0999999999999998e37 < t < -1.8e-38Initial program 79.5%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in z around inf 80.8%
div-sub80.8%
Simplified80.8%
if -2.04999999999999996e-97 < t < 3.7999999999999999e-77Initial program 91.9%
+-commutative91.9%
associate-*l/96.4%
fma-def96.4%
Simplified96.4%
fma-udef96.4%
*-commutative96.4%
clear-num96.4%
un-div-inv96.5%
Applied egg-rr96.5%
Taylor expanded in a around inf 87.3%
associate-/l*94.3%
Simplified94.3%
Taylor expanded in y around 0 71.7%
*-lft-identity71.7%
associate-*r/71.7%
*-commutative71.7%
associate-*r*71.7%
associate-*l/79.8%
associate-*r/79.8%
distribute-rgt-in79.7%
mul-1-neg79.7%
unsub-neg79.7%
Simplified79.7%
Taylor expanded in t around 0 79.8%
Final simplification71.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ a (- z t))))))
(if (<= a -3.45e-34)
t_1
(if (<= a -3.2e-219)
(* y (/ (- z t) (- a t)))
(if (<= a 2100000000000.0) (+ y (/ (* (- z a) (- x y)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -3.45e-34) {
tmp = t_1;
} else if (a <= -3.2e-219) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 2100000000000.0) {
tmp = y + (((z - a) * (x - y)) / 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) / (a / (z - t)))
if (a <= (-3.45d-34)) then
tmp = t_1
else if (a <= (-3.2d-219)) then
tmp = y * ((z - t) / (a - t))
else if (a <= 2100000000000.0d0) then
tmp = y + (((z - a) * (x - y)) / 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 / (z - t)));
double tmp;
if (a <= -3.45e-34) {
tmp = t_1;
} else if (a <= -3.2e-219) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 2100000000000.0) {
tmp = y + (((z - a) * (x - y)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / (a / (z - t))) tmp = 0 if a <= -3.45e-34: tmp = t_1 elif a <= -3.2e-219: tmp = y * ((z - t) / (a - t)) elif a <= 2100000000000.0: tmp = y + (((z - a) * (x - y)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - x) / Float64(a / Float64(z - t)))) tmp = 0.0 if (a <= -3.45e-34) tmp = t_1; elseif (a <= -3.2e-219) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 2100000000000.0) tmp = Float64(y + Float64(Float64(Float64(z - a) * Float64(x - y)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - x) / (a / (z - t))); tmp = 0.0; if (a <= -3.45e-34) tmp = t_1; elseif (a <= -3.2e-219) tmp = y * ((z - t) / (a - t)); elseif (a <= 2100000000000.0) tmp = y + (((z - a) * (x - y)) / 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[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.45e-34], t$95$1, If[LessEqual[a, -3.2e-219], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2100000000000.0], N[(y + N[(N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{if}\;a \leq -3.45 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-219}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 2100000000000:\\
\;\;\;\;y + \frac{\left(z - a\right) \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -3.45e-34 or 2.1e12 < a Initial program 72.9%
associate-*l/89.7%
Simplified89.7%
Taylor expanded in a around inf 65.1%
associate-/l*75.9%
Simplified75.9%
if -3.45e-34 < a < -3.19999999999999998e-219Initial program 59.6%
associate-*l/67.1%
Simplified67.1%
Taylor expanded in y around inf 82.8%
div-sub82.8%
Simplified82.8%
if -3.19999999999999998e-219 < a < 2.1e12Initial program 69.2%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in t around inf 82.3%
associate--l+82.3%
distribute-lft-out--82.3%
div-sub82.3%
mul-1-neg82.3%
unsub-neg82.3%
distribute-rgt-out--82.3%
Simplified82.3%
Final simplification78.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -6.6e+75)
y
(if (<= t 9e+52)
(* x (- 1.0 (/ z a)))
(if (<= t 1.18e+145)
(* t (/ (- y) a))
(if (<= t 3e+237) (* (- z a) (/ x t)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 9e+52) {
tmp = x * (1.0 - (z / a));
} else if (t <= 1.18e+145) {
tmp = t * (-y / a);
} else if (t <= 3e+237) {
tmp = (z - a) * (x / t);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-6.6d+75)) then
tmp = y
else if (t <= 9d+52) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 1.18d+145) then
tmp = t * (-y / a)
else if (t <= 3d+237) then
tmp = (z - a) * (x / t)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 9e+52) {
tmp = x * (1.0 - (z / a));
} else if (t <= 1.18e+145) {
tmp = t * (-y / a);
} else if (t <= 3e+237) {
tmp = (z - a) * (x / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.6e+75: tmp = y elif t <= 9e+52: tmp = x * (1.0 - (z / a)) elif t <= 1.18e+145: tmp = t * (-y / a) elif t <= 3e+237: tmp = (z - a) * (x / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.6e+75) tmp = y; elseif (t <= 9e+52) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 1.18e+145) tmp = Float64(t * Float64(Float64(-y) / a)); elseif (t <= 3e+237) tmp = Float64(Float64(z - a) * Float64(x / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.6e+75) tmp = y; elseif (t <= 9e+52) tmp = x * (1.0 - (z / a)); elseif (t <= 1.18e+145) tmp = t * (-y / a); elseif (t <= 3e+237) tmp = (z - a) * (x / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.6e+75], y, If[LessEqual[t, 9e+52], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e+145], N[(t * N[((-y) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+237], N[(N[(z - a), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+52}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{+145}:\\
\;\;\;\;t \cdot \frac{-y}{a}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+237}:\\
\;\;\;\;\left(z - a\right) \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.59999999999999996e75 or 3e237 < t Initial program 38.7%
associate-*l/62.9%
Simplified62.9%
Taylor expanded in t around inf 60.8%
if -6.59999999999999996e75 < t < 8.9999999999999999e52Initial program 87.8%
+-commutative87.8%
associate-*l/90.9%
fma-def90.9%
Simplified90.9%
fma-udef90.9%
*-commutative90.9%
clear-num90.3%
un-div-inv90.4%
Applied egg-rr90.4%
Taylor expanded in a around inf 71.3%
associate-/l*77.6%
Simplified77.6%
Taylor expanded in y around 0 51.3%
*-lft-identity51.3%
associate-*r/51.3%
*-commutative51.3%
associate-*r*51.3%
associate-*l/58.2%
associate-*r/58.2%
distribute-rgt-in58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
Taylor expanded in t around 0 58.3%
if 8.9999999999999999e52 < t < 1.17999999999999998e145Initial program 80.1%
associate-*l/94.8%
Simplified94.8%
Taylor expanded in x around 0 70.1%
associate-/l*79.8%
associate-/r/79.7%
Simplified79.7%
Taylor expanded in a around inf 49.2%
associate-/l*54.2%
Simplified54.2%
Taylor expanded in z around 0 39.1%
associate-*r/39.1%
mul-1-neg39.1%
*-commutative39.1%
distribute-rgt-neg-out39.1%
associate-*l/44.2%
Simplified44.2%
if 1.17999999999999998e145 < t < 3e237Initial program 34.6%
associate-*l/68.8%
Simplified68.8%
Taylor expanded in t around inf 61.5%
associate--l+61.5%
distribute-lft-out--61.5%
div-sub61.5%
mul-1-neg61.5%
unsub-neg61.5%
distribute-rgt-out--61.8%
Simplified61.8%
Taylor expanded in y around 0 30.5%
associate-/l*45.9%
associate-/r/42.1%
Simplified42.1%
Final simplification56.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.1e+37)
(/ (- y) (/ t (- z t)))
(if (<= t -5.2e-59)
(/ y (/ (- a t) z))
(if (<= t -2.05e-97)
(/ (- t) (/ (- a t) y))
(if (<= t 1.02e+48) (* x (- 1.0 (/ z a))) (* t (/ y (- t a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.1e+37) {
tmp = -y / (t / (z - t));
} else if (t <= -5.2e-59) {
tmp = y / ((a - t) / z);
} else if (t <= -2.05e-97) {
tmp = -t / ((a - t) / y);
} else if (t <= 1.02e+48) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-3.1d+37)) then
tmp = -y / (t / (z - t))
else if (t <= (-5.2d-59)) then
tmp = y / ((a - t) / z)
else if (t <= (-2.05d-97)) then
tmp = -t / ((a - t) / y)
else if (t <= 1.02d+48) then
tmp = x * (1.0d0 - (z / a))
else
tmp = t * (y / (t - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.1e+37) {
tmp = -y / (t / (z - t));
} else if (t <= -5.2e-59) {
tmp = y / ((a - t) / z);
} else if (t <= -2.05e-97) {
tmp = -t / ((a - t) / y);
} else if (t <= 1.02e+48) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.1e+37: tmp = -y / (t / (z - t)) elif t <= -5.2e-59: tmp = y / ((a - t) / z) elif t <= -2.05e-97: tmp = -t / ((a - t) / y) elif t <= 1.02e+48: tmp = x * (1.0 - (z / a)) else: tmp = t * (y / (t - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.1e+37) tmp = Float64(Float64(-y) / Float64(t / Float64(z - t))); elseif (t <= -5.2e-59) tmp = Float64(y / Float64(Float64(a - t) / z)); elseif (t <= -2.05e-97) tmp = Float64(Float64(-t) / Float64(Float64(a - t) / y)); elseif (t <= 1.02e+48) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = Float64(t * Float64(y / Float64(t - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.1e+37) tmp = -y / (t / (z - t)); elseif (t <= -5.2e-59) tmp = y / ((a - t) / z); elseif (t <= -2.05e-97) tmp = -t / ((a - t) / y); elseif (t <= 1.02e+48) tmp = x * (1.0 - (z / a)); else tmp = t * (y / (t - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.1e+37], N[((-y) / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.2e-59], N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.05e-97], N[((-t) / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+48], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+37}:\\
\;\;\;\;\frac{-y}{\frac{t}{z - t}}\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-59}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-97}:\\
\;\;\;\;\frac{-t}{\frac{a - t}{y}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+48}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{t - a}\\
\end{array}
\end{array}
if t < -3.1000000000000002e37Initial program 47.2%
+-commutative47.2%
associate-*l/66.7%
fma-def66.8%
Simplified66.8%
fma-udef66.7%
*-commutative66.7%
clear-num65.0%
un-div-inv65.2%
Applied egg-rr65.2%
Taylor expanded in y around inf 64.6%
div-sub64.6%
*-commutative64.6%
associate-/r/55.8%
Simplified55.8%
Taylor expanded in a around 0 44.2%
mul-1-neg44.2%
associate-/l*59.2%
distribute-neg-frac59.2%
Simplified59.2%
if -3.1000000000000002e37 < t < -5.19999999999999996e-59Initial program 79.8%
+-commutative79.8%
associate-*l/84.9%
fma-def85.2%
Simplified85.2%
fma-udef84.9%
*-commutative84.9%
clear-num84.7%
un-div-inv84.8%
Applied egg-rr84.8%
Taylor expanded in y around inf 54.3%
div-sub54.3%
*-commutative54.3%
associate-/r/49.2%
Simplified49.2%
Taylor expanded in z around inf 48.8%
associate-/l*48.9%
Simplified48.9%
if -5.19999999999999996e-59 < t < -2.04999999999999996e-97Initial program 78.4%
associate-*l/68.0%
Simplified68.0%
Taylor expanded in x around 0 78.3%
associate-/l*78.4%
associate-/r/68.0%
Simplified68.0%
associate-*l/78.3%
associate-/l*78.4%
clear-num78.4%
Applied egg-rr78.4%
Taylor expanded in z around 0 56.6%
mul-1-neg56.6%
associate-/l*46.6%
Simplified46.6%
if -2.04999999999999996e-97 < t < 1.02e48Initial program 90.5%
+-commutative90.5%
associate-*l/94.8%
fma-def94.7%
Simplified94.7%
fma-udef94.8%
*-commutative94.8%
clear-num94.8%
un-div-inv94.8%
Applied egg-rr94.8%
Taylor expanded in a around inf 78.3%
associate-/l*85.1%
Simplified85.1%
Taylor expanded in y around 0 60.8%
*-lft-identity60.8%
associate-*r/60.8%
*-commutative60.8%
associate-*r*60.8%
associate-*l/68.4%
associate-*r/68.4%
distribute-rgt-in68.4%
mul-1-neg68.4%
unsub-neg68.4%
Simplified68.4%
Taylor expanded in t around 0 68.4%
if 1.02e48 < t Initial program 49.1%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in x around 0 41.2%
Taylor expanded in z around 0 32.9%
mul-1-neg32.9%
distribute-lft-neg-out32.9%
*-commutative32.9%
Simplified32.9%
frac-2neg32.9%
div-inv33.0%
distribute-rgt-neg-out33.0%
remove-double-neg33.0%
sub-neg33.0%
distribute-neg-in33.0%
add-sqr-sqrt0.0%
sqrt-unprod12.1%
sqr-neg12.1%
sqrt-unprod13.7%
add-sqr-sqrt13.7%
add-sqr-sqrt0.0%
sqrt-unprod17.3%
sqr-neg17.3%
sqrt-unprod32.8%
add-sqr-sqrt33.0%
Applied egg-rr33.0%
*-commutative33.0%
associate-*r*49.6%
associate-*l/49.6%
*-lft-identity49.6%
+-commutative49.6%
unsub-neg49.6%
Simplified49.6%
Final simplification59.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -6.6e+75)
y
(if (<= t 6.8e-34)
(* x (- 1.0 (/ z a)))
(if (<= t 6.8e+142) (* (- z t) (/ y a)) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 6.8e-34) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6.8e+142) {
tmp = (z - t) * (y / a);
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-6.6d+75)) then
tmp = y
else if (t <= 6.8d-34) then
tmp = x * (1.0d0 - (z / a))
else if (t <= 6.8d+142) then
tmp = (z - t) * (y / a)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 6.8e-34) {
tmp = x * (1.0 - (z / a));
} else if (t <= 6.8e+142) {
tmp = (z - t) * (y / a);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.6e+75: tmp = y elif t <= 6.8e-34: tmp = x * (1.0 - (z / a)) elif t <= 6.8e+142: tmp = (z - t) * (y / a) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.6e+75) tmp = y; elseif (t <= 6.8e-34) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= 6.8e+142) tmp = Float64(Float64(z - t) * Float64(y / a)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.6e+75) tmp = y; elseif (t <= 6.8e-34) tmp = x * (1.0 - (z / a)); elseif (t <= 6.8e+142) tmp = (z - t) * (y / a); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.6e+75], y, If[LessEqual[t, 6.8e-34], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e+142], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-34}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+142}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.59999999999999996e75 or 6.7999999999999996e142 < t Initial program 37.6%
associate-*l/64.6%
Simplified64.6%
Taylor expanded in t around inf 54.3%
if -6.59999999999999996e75 < t < 6.8000000000000001e-34Initial program 88.9%
+-commutative88.9%
associate-*l/92.4%
fma-def92.5%
Simplified92.5%
fma-udef92.4%
*-commutative92.4%
clear-num91.7%
un-div-inv91.8%
Applied egg-rr91.8%
Taylor expanded in a around inf 73.6%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in y around 0 54.3%
*-lft-identity54.3%
associate-*r/54.3%
*-commutative54.3%
associate-*r*54.3%
associate-*l/62.3%
associate-*r/62.3%
distribute-rgt-in62.3%
mul-1-neg62.3%
unsub-neg62.3%
Simplified62.3%
Taylor expanded in t around 0 62.3%
if 6.8000000000000001e-34 < t < 6.7999999999999996e142Initial program 80.4%
associate-*l/87.7%
Simplified87.7%
Taylor expanded in x around 0 65.5%
associate-/l*72.7%
associate-/r/70.4%
Simplified70.4%
Taylor expanded in a around inf 45.7%
Final simplification57.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2e-97) (not (<= t 4e-79))) (* y (/ (- z t) (- a t))) (* x (- 1.0 (/ z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2e-97) || !(t <= 4e-79)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2d-97)) .or. (.not. (t <= 4d-79))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x * (1.0d0 - (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2e-97) || !(t <= 4e-79)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2e-97) or not (t <= 4e-79): tmp = y * ((z - t) / (a - t)) else: tmp = x * (1.0 - (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2e-97) || !(t <= 4e-79)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x * Float64(1.0 - Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2e-97) || ~((t <= 4e-79))) tmp = y * ((z - t) / (a - t)); else tmp = x * (1.0 - (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2e-97], N[Not[LessEqual[t, 4e-79]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{-97} \lor \neg \left(t \leq 4 \cdot 10^{-79}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\end{array}
\end{array}
if t < -2.00000000000000007e-97 or 4e-79 < t Initial program 59.6%
associate-*l/75.4%
Simplified75.4%
Taylor expanded in y around inf 64.5%
div-sub64.5%
Simplified64.5%
if -2.00000000000000007e-97 < t < 4e-79Initial program 91.9%
+-commutative91.9%
associate-*l/96.4%
fma-def96.4%
Simplified96.4%
fma-udef96.4%
*-commutative96.4%
clear-num96.4%
un-div-inv96.5%
Applied egg-rr96.5%
Taylor expanded in a around inf 87.3%
associate-/l*94.3%
Simplified94.3%
Taylor expanded in y around 0 71.7%
*-lft-identity71.7%
associate-*r/71.7%
*-commutative71.7%
associate-*r*71.7%
associate-*l/79.8%
associate-*r/79.8%
distribute-rgt-in79.7%
mul-1-neg79.7%
unsub-neg79.7%
Simplified79.7%
Taylor expanded in t around 0 79.8%
Final simplification69.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -9e-37) x (if (<= a 9e+81) y (* x (+ (/ t a) 1.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9e-37) {
tmp = x;
} else if (a <= 9e+81) {
tmp = y;
} else {
tmp = x * ((t / a) + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-9d-37)) then
tmp = x
else if (a <= 9d+81) then
tmp = y
else
tmp = x * ((t / a) + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9e-37) {
tmp = x;
} else if (a <= 9e+81) {
tmp = y;
} else {
tmp = x * ((t / a) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9e-37: tmp = x elif a <= 9e+81: tmp = y else: tmp = x * ((t / a) + 1.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9e-37) tmp = x; elseif (a <= 9e+81) tmp = y; else tmp = Float64(x * Float64(Float64(t / a) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9e-37) tmp = x; elseif (a <= 9e+81) tmp = y; else tmp = x * ((t / a) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9e-37], x, If[LessEqual[a, 9e+81], y, N[(x * N[(N[(t / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+81}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{t}{a} + 1\right)\\
\end{array}
\end{array}
if a < -9.00000000000000081e-37Initial program 71.9%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in a around inf 45.9%
if -9.00000000000000081e-37 < a < 9.00000000000000034e81Initial program 66.0%
associate-*l/74.4%
Simplified74.4%
Taylor expanded in t around inf 47.8%
if 9.00000000000000034e81 < a Initial program 75.4%
+-commutative75.4%
associate-*l/91.8%
fma-def92.1%
Simplified92.1%
fma-udef91.8%
*-commutative91.8%
clear-num91.7%
un-div-inv91.7%
Applied egg-rr91.7%
Taylor expanded in a around inf 71.5%
associate-/l*81.1%
Simplified81.1%
Taylor expanded in y around 0 47.5%
*-lft-identity47.5%
associate-*r/47.5%
*-commutative47.5%
associate-*r*47.5%
associate-*l/52.8%
associate-*r/52.8%
distribute-rgt-in52.8%
mul-1-neg52.8%
unsub-neg52.8%
Simplified52.8%
Taylor expanded in z around 0 40.7%
Final simplification45.7%
(FPCore (x y z t a) :precision binary64 (if (<= t -6.6e+75) y (if (<= t 9.5e+47) (* x (- 1.0 (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 9.5e+47) {
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 <= (-6.6d+75)) then
tmp = y
else if (t <= 9.5d+47) 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 <= -6.6e+75) {
tmp = y;
} else if (t <= 9.5e+47) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.6e+75: tmp = y elif t <= 9.5e+47: tmp = x * (1.0 - (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.6e+75) tmp = y; elseif (t <= 9.5e+47) 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 <= -6.6e+75) tmp = y; elseif (t <= 9.5e+47) tmp = x * (1.0 - (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.6e+75], y, If[LessEqual[t, 9.5e+47], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6.59999999999999996e75 or 9.50000000000000001e47 < t Initial program 44.7%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 48.6%
if -6.59999999999999996e75 < t < 9.50000000000000001e47Initial program 88.3%
+-commutative88.3%
associate-*l/91.4%
fma-def91.5%
Simplified91.5%
fma-udef91.4%
*-commutative91.4%
clear-num90.8%
un-div-inv90.9%
Applied egg-rr90.9%
Taylor expanded in a around inf 71.8%
associate-/l*78.2%
Simplified78.2%
Taylor expanded in y around 0 51.6%
*-lft-identity51.6%
associate-*r/51.6%
*-commutative51.6%
associate-*r*51.6%
associate-*l/58.6%
associate-*r/58.6%
distribute-rgt-in58.6%
mul-1-neg58.6%
unsub-neg58.6%
Simplified58.6%
Taylor expanded in t around 0 58.7%
Final simplification54.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -6.6e+75) y (if (<= t 6.1e+47) (* x (- 1.0 (/ z a))) (* t (/ y (- t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 6.1e+47) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-6.6d+75)) then
tmp = y
else if (t <= 6.1d+47) then
tmp = x * (1.0d0 - (z / a))
else
tmp = t * (y / (t - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.6e+75) {
tmp = y;
} else if (t <= 6.1e+47) {
tmp = x * (1.0 - (z / a));
} else {
tmp = t * (y / (t - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.6e+75: tmp = y elif t <= 6.1e+47: tmp = x * (1.0 - (z / a)) else: tmp = t * (y / (t - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.6e+75) tmp = y; elseif (t <= 6.1e+47) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = Float64(t * Float64(y / Float64(t - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.6e+75) tmp = y; elseif (t <= 6.1e+47) tmp = x * (1.0 - (z / a)); else tmp = t * (y / (t - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.6e+75], y, If[LessEqual[t, 6.1e+47], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{t - a}\\
\end{array}
\end{array}
if t < -6.59999999999999996e75Initial program 39.4%
associate-*l/62.8%
Simplified62.8%
Taylor expanded in t around inf 60.6%
if -6.59999999999999996e75 < t < 6.10000000000000019e47Initial program 88.3%
+-commutative88.3%
associate-*l/91.4%
fma-def91.5%
Simplified91.5%
fma-udef91.4%
*-commutative91.4%
clear-num90.8%
un-div-inv90.9%
Applied egg-rr90.9%
Taylor expanded in a around inf 71.8%
associate-/l*78.2%
Simplified78.2%
Taylor expanded in y around 0 51.6%
*-lft-identity51.6%
associate-*r/51.6%
*-commutative51.6%
associate-*r*51.6%
associate-*l/58.6%
associate-*r/58.6%
distribute-rgt-in58.6%
mul-1-neg58.6%
unsub-neg58.6%
Simplified58.6%
Taylor expanded in t around 0 58.7%
if 6.10000000000000019e47 < t Initial program 49.1%
associate-*l/74.5%
Simplified74.5%
Taylor expanded in x around 0 41.2%
Taylor expanded in z around 0 32.9%
mul-1-neg32.9%
distribute-lft-neg-out32.9%
*-commutative32.9%
Simplified32.9%
frac-2neg32.9%
div-inv33.0%
distribute-rgt-neg-out33.0%
remove-double-neg33.0%
sub-neg33.0%
distribute-neg-in33.0%
add-sqr-sqrt0.0%
sqrt-unprod12.1%
sqr-neg12.1%
sqrt-unprod13.7%
add-sqr-sqrt13.7%
add-sqr-sqrt0.0%
sqrt-unprod17.3%
sqr-neg17.3%
sqrt-unprod32.8%
add-sqr-sqrt33.0%
Applied egg-rr33.0%
*-commutative33.0%
associate-*r*49.6%
associate-*l/49.6%
*-lft-identity49.6%
+-commutative49.6%
unsub-neg49.6%
Simplified49.6%
Final simplification56.9%
(FPCore (x y z t a) :precision binary64 (if (<= a -9e-37) x (if (<= a 7.6e+80) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9e-37) {
tmp = x;
} else if (a <= 7.6e+80) {
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 <= (-9d-37)) then
tmp = x
else if (a <= 7.6d+80) 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 <= -9e-37) {
tmp = x;
} else if (a <= 7.6e+80) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9e-37: tmp = x elif a <= 7.6e+80: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9e-37) tmp = x; elseif (a <= 7.6e+80) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9e-37) tmp = x; elseif (a <= 7.6e+80) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9e-37], x, If[LessEqual[a, 7.6e+80], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{+80}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.00000000000000081e-37 or 7.59999999999999995e80 < a Initial program 73.3%
associate-*l/88.7%
Simplified88.7%
Taylor expanded in a around inf 43.6%
if -9.00000000000000081e-37 < a < 7.59999999999999995e80Initial program 66.0%
associate-*l/74.4%
Simplified74.4%
Taylor expanded in t around inf 47.8%
Final simplification45.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.9%
associate-*l/82.1%
Simplified82.1%
Taylor expanded in a around inf 27.8%
Final simplification27.8%
(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 2023322
(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))))