
(FPCore (x y z t a) :precision binary64 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
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 - z) / (((t - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a): return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a) return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a))) end
function tmp = code(x, y, z, t, a) tmp = x - ((y - z) / (((t - z) + 1.0) / a)); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
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 - z) / (((t - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a): return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a) return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a))) end
function tmp = code(x, y, z, t, a) tmp = x - ((y - z) / (((t - z) + 1.0) / a)); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* a (/ (- y z) (+ -1.0 (- z t))))))
double code(double x, double y, double z, double t, double a) {
return x + (a * ((y - z) / (-1.0 + (z - 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 + (a * ((y - z) / ((-1.0d0) + (z - t))))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (a * ((y - z) / (-1.0 + (z - t))));
}
def code(x, y, z, t, a): return x + (a * ((y - z) / (-1.0 + (z - t))))
function code(x, y, z, t, a) return Float64(x + Float64(a * Float64(Float64(y - z) / Float64(-1.0 + Float64(z - t))))) end
function tmp = code(x, y, z, t, a) tmp = x + (a * ((y - z) / (-1.0 + (z - t)))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(a * N[(N[(y - z), $MachinePrecision] / N[(-1.0 + N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + a \cdot \frac{y - z}{-1 + \left(z - t\right)}
\end{array}
Initial program 98.3%
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
--lowering--.f6499.9%
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ y (/ t a)))))
(if (<= z -3.5e+70)
(- x a)
(if (<= z -3.8e-102)
t_1
(if (<= z 3e-122)
(+ x (* a (- z y)))
(if (<= z 3.3e+75) t_1 (- x a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y / (t / a));
double tmp;
if (z <= -3.5e+70) {
tmp = x - a;
} else if (z <= -3.8e-102) {
tmp = t_1;
} else if (z <= 3e-122) {
tmp = x + (a * (z - y));
} else if (z <= 3.3e+75) {
tmp = t_1;
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y / (t / a))
if (z <= (-3.5d+70)) then
tmp = x - a
else if (z <= (-3.8d-102)) then
tmp = t_1
else if (z <= 3d-122) then
tmp = x + (a * (z - y))
else if (z <= 3.3d+75) then
tmp = t_1
else
tmp = x - a
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 / (t / a));
double tmp;
if (z <= -3.5e+70) {
tmp = x - a;
} else if (z <= -3.8e-102) {
tmp = t_1;
} else if (z <= 3e-122) {
tmp = x + (a * (z - y));
} else if (z <= 3.3e+75) {
tmp = t_1;
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y / (t / a)) tmp = 0 if z <= -3.5e+70: tmp = x - a elif z <= -3.8e-102: tmp = t_1 elif z <= 3e-122: tmp = x + (a * (z - y)) elif z <= 3.3e+75: tmp = t_1 else: tmp = x - a return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y / Float64(t / a))) tmp = 0.0 if (z <= -3.5e+70) tmp = Float64(x - a); elseif (z <= -3.8e-102) tmp = t_1; elseif (z <= 3e-122) tmp = Float64(x + Float64(a * Float64(z - y))); elseif (z <= 3.3e+75) tmp = t_1; else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y / (t / a)); tmp = 0.0; if (z <= -3.5e+70) tmp = x - a; elseif (z <= -3.8e-102) tmp = t_1; elseif (z <= 3e-122) tmp = x + (a * (z - y)); elseif (z <= 3.3e+75) tmp = t_1; else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+70], N[(x - a), $MachinePrecision], If[LessEqual[z, -3.8e-102], t$95$1, If[LessEqual[z, 3e-122], N[(x + N[(a * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e+75], t$95$1, N[(x - a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{\frac{t}{a}}\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+70}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{-102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-122}:\\
\;\;\;\;x + a \cdot \left(z - y\right)\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+75}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -3.50000000000000002e70 or 3.29999999999999998e75 < z Initial program 96.5%
Taylor expanded in z around inf
--lowering--.f6488.2%
Simplified88.2%
if -3.50000000000000002e70 < z < -3.80000000000000026e-102 or 3.00000000000000004e-122 < z < 3.29999999999999998e75Initial program 99.7%
Taylor expanded in t around inf
/-lowering-/.f6473.5%
Simplified73.5%
Taylor expanded in y around inf
Simplified70.5%
if -3.80000000000000026e-102 < z < 3.00000000000000004e-122Initial program 99.9%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6484.6%
Simplified84.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6484.6%
Applied egg-rr84.6%
Taylor expanded in z around 0
Simplified84.6%
Final simplification82.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.2e+62)
(- x a)
(if (<= z 1.18e-119)
(+ x (* a (/ y (+ z -1.0))))
(if (<= z 1.8e+75) (+ x (* a (/ (- z y) t))) (- x a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+62) {
tmp = x - a;
} else if (z <= 1.18e-119) {
tmp = x + (a * (y / (z + -1.0)));
} else if (z <= 1.8e+75) {
tmp = x + (a * ((z - y) / t));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.2d+62)) then
tmp = x - a
else if (z <= 1.18d-119) then
tmp = x + (a * (y / (z + (-1.0d0))))
else if (z <= 1.8d+75) then
tmp = x + (a * ((z - y) / t))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+62) {
tmp = x - a;
} else if (z <= 1.18e-119) {
tmp = x + (a * (y / (z + -1.0)));
} else if (z <= 1.8e+75) {
tmp = x + (a * ((z - y) / t));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.2e+62: tmp = x - a elif z <= 1.18e-119: tmp = x + (a * (y / (z + -1.0))) elif z <= 1.8e+75: tmp = x + (a * ((z - y) / t)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.2e+62) tmp = Float64(x - a); elseif (z <= 1.18e-119) tmp = Float64(x + Float64(a * Float64(y / Float64(z + -1.0)))); elseif (z <= 1.8e+75) tmp = Float64(x + Float64(a * Float64(Float64(z - y) / t))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.2e+62) tmp = x - a; elseif (z <= 1.18e-119) tmp = x + (a * (y / (z + -1.0))); elseif (z <= 1.8e+75) tmp = x + (a * ((z - y) / t)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.2e+62], N[(x - a), $MachinePrecision], If[LessEqual[z, 1.18e-119], N[(x + N[(a * N[(y / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+75], N[(x + N[(a * N[(N[(z - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+62}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 1.18 \cdot 10^{-119}:\\
\;\;\;\;x + a \cdot \frac{y}{z + -1}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+75}:\\
\;\;\;\;x + a \cdot \frac{z - y}{t}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -3.19999999999999984e62 or 1.8e75 < z Initial program 96.5%
Taylor expanded in z around inf
--lowering--.f6487.6%
Simplified87.6%
if -3.19999999999999984e62 < z < 1.17999999999999996e-119Initial program 99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6481.3%
Simplified81.3%
Taylor expanded in y around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6480.8%
Simplified80.8%
if 1.17999999999999996e-119 < z < 1.8e75Initial program 99.7%
Taylor expanded in t around inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6468.6%
Simplified68.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6472.8%
Applied egg-rr72.8%
Final simplification82.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.3e+61)
(- x a)
(if (<= z 5.2e-125)
(+ x (* a (/ y (+ z -1.0))))
(if (<= z 1.55e+75) (- x (/ y (/ t a))) (- x a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.3e+61) {
tmp = x - a;
} else if (z <= 5.2e-125) {
tmp = x + (a * (y / (z + -1.0)));
} else if (z <= 1.55e+75) {
tmp = x - (y / (t / a));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.3d+61)) then
tmp = x - a
else if (z <= 5.2d-125) then
tmp = x + (a * (y / (z + (-1.0d0))))
else if (z <= 1.55d+75) then
tmp = x - (y / (t / a))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.3e+61) {
tmp = x - a;
} else if (z <= 5.2e-125) {
tmp = x + (a * (y / (z + -1.0)));
} else if (z <= 1.55e+75) {
tmp = x - (y / (t / a));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.3e+61: tmp = x - a elif z <= 5.2e-125: tmp = x + (a * (y / (z + -1.0))) elif z <= 1.55e+75: tmp = x - (y / (t / a)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.3e+61) tmp = Float64(x - a); elseif (z <= 5.2e-125) tmp = Float64(x + Float64(a * Float64(y / Float64(z + -1.0)))); elseif (z <= 1.55e+75) tmp = Float64(x - Float64(y / Float64(t / a))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.3e+61) tmp = x - a; elseif (z <= 5.2e-125) tmp = x + (a * (y / (z + -1.0))); elseif (z <= 1.55e+75) tmp = x - (y / (t / a)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.3e+61], N[(x - a), $MachinePrecision], If[LessEqual[z, 5.2e-125], N[(x + N[(a * N[(y / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+75], N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+61}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-125}:\\
\;\;\;\;x + a \cdot \frac{y}{z + -1}\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+75}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a}}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -3.2999999999999998e61 or 1.5500000000000001e75 < z Initial program 96.5%
Taylor expanded in z around inf
--lowering--.f6487.6%
Simplified87.6%
if -3.2999999999999998e61 < z < 5.20000000000000011e-125Initial program 99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6481.3%
Simplified81.3%
Taylor expanded in y around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6480.8%
Simplified80.8%
if 5.20000000000000011e-125 < z < 1.5500000000000001e75Initial program 99.7%
Taylor expanded in t around inf
/-lowering-/.f6472.7%
Simplified72.7%
Taylor expanded in y around inf
Simplified65.9%
Final simplification81.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y z) (/ (- z t) a)))))
(if (<= t -1.05e+17)
t_1
(if (<= t 600000000000.0) (+ x (* (- y z) (/ a (+ z -1.0)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) / ((z - t) / a));
double tmp;
if (t <= -1.05e+17) {
tmp = t_1;
} else if (t <= 600000000000.0) {
tmp = x + ((y - z) * (a / (z + -1.0)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) / ((z - t) / a))
if (t <= (-1.05d+17)) then
tmp = t_1
else if (t <= 600000000000.0d0) then
tmp = x + ((y - z) * (a / (z + (-1.0d0))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) / ((z - t) / a));
double tmp;
if (t <= -1.05e+17) {
tmp = t_1;
} else if (t <= 600000000000.0) {
tmp = x + ((y - z) * (a / (z + -1.0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) / ((z - t) / a)) tmp = 0 if t <= -1.05e+17: tmp = t_1 elif t <= 600000000000.0: tmp = x + ((y - z) * (a / (z + -1.0))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) / Float64(Float64(z - t) / a))) tmp = 0.0 if (t <= -1.05e+17) tmp = t_1; elseif (t <= 600000000000.0) tmp = Float64(x + Float64(Float64(y - z) * Float64(a / Float64(z + -1.0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) / ((z - t) / a)); tmp = 0.0; if (t <= -1.05e+17) tmp = t_1; elseif (t <= 600000000000.0) tmp = x + ((y - z) * (a / (z + -1.0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+17], t$95$1, If[LessEqual[t, 600000000000.0], N[(x + N[(N[(y - z), $MachinePrecision] * N[(a / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{\frac{z - t}{a}}\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 600000000000:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{a}{z + -1}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.05e17 or 6e11 < t Initial program 99.8%
+-commutativeN/A
associate-+r-N/A
div-subN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6497.2%
Applied egg-rr97.2%
Taylor expanded in t around inf
/-lowering-/.f6497.2%
Simplified97.2%
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f6499.8%
Applied egg-rr99.8%
if -1.05e17 < t < 6e11Initial program 97.1%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6481.3%
Simplified81.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6497.3%
Applied egg-rr97.3%
Final simplification98.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.42e+20) (+ x (* a (/ (- z y) t))) (if (<= t 8.5e+70) (+ x (* (- y z) (/ a (+ z -1.0)))) (- x (/ y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.42e+20) {
tmp = x + (a * ((z - y) / t));
} else if (t <= 8.5e+70) {
tmp = x + ((y - z) * (a / (z + -1.0)));
} else {
tmp = x - (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 <= (-1.42d+20)) then
tmp = x + (a * ((z - y) / t))
else if (t <= 8.5d+70) then
tmp = x + ((y - z) * (a / (z + (-1.0d0))))
else
tmp = x - (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 <= -1.42e+20) {
tmp = x + (a * ((z - y) / t));
} else if (t <= 8.5e+70) {
tmp = x + ((y - z) * (a / (z + -1.0)));
} else {
tmp = x - (y / (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.42e+20: tmp = x + (a * ((z - y) / t)) elif t <= 8.5e+70: tmp = x + ((y - z) * (a / (z + -1.0))) else: tmp = x - (y / (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.42e+20) tmp = Float64(x + Float64(a * Float64(Float64(z - y) / t))); elseif (t <= 8.5e+70) tmp = Float64(x + Float64(Float64(y - z) * Float64(a / Float64(z + -1.0)))); else tmp = Float64(x - Float64(y / Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.42e+20) tmp = x + (a * ((z - y) / t)); elseif (t <= 8.5e+70) tmp = x + ((y - z) * (a / (z + -1.0))); else tmp = x - (y / (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.42e+20], N[(x + N[(a * N[(N[(z - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+70], N[(x + N[(N[(y - z), $MachinePrecision] * N[(a / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.42 \cdot 10^{+20}:\\
\;\;\;\;x + a \cdot \frac{z - y}{t}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+70}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{a}{z + -1}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a}}\\
\end{array}
\end{array}
if t < -1.42e20Initial program 99.9%
Taylor expanded in t around inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6469.9%
Simplified69.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6479.7%
Applied egg-rr79.7%
if -1.42e20 < t < 8.4999999999999996e70Initial program 97.3%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6480.8%
Simplified80.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6496.3%
Applied egg-rr96.3%
if 8.4999999999999996e70 < t Initial program 99.8%
Taylor expanded in t around inf
/-lowering-/.f6487.6%
Simplified87.6%
Taylor expanded in y around inf
Simplified90.4%
Final simplification91.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* a (/ z (+ -1.0 (- z t)))))))
(if (<= z -7.8e+54)
t_1
(if (<= z 1.55e+75) (+ x (/ (* y a) (- -1.0 t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (a * (z / (-1.0 + (z - t))));
double tmp;
if (z <= -7.8e+54) {
tmp = t_1;
} else if (z <= 1.55e+75) {
tmp = x + ((y * a) / (-1.0 - 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 - (a * (z / ((-1.0d0) + (z - t))))
if (z <= (-7.8d+54)) then
tmp = t_1
else if (z <= 1.55d+75) then
tmp = x + ((y * a) / ((-1.0d0) - 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 - (a * (z / (-1.0 + (z - t))));
double tmp;
if (z <= -7.8e+54) {
tmp = t_1;
} else if (z <= 1.55e+75) {
tmp = x + ((y * a) / (-1.0 - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (a * (z / (-1.0 + (z - t)))) tmp = 0 if z <= -7.8e+54: tmp = t_1 elif z <= 1.55e+75: tmp = x + ((y * a) / (-1.0 - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(a * Float64(z / Float64(-1.0 + Float64(z - t))))) tmp = 0.0 if (z <= -7.8e+54) tmp = t_1; elseif (z <= 1.55e+75) tmp = Float64(x + Float64(Float64(y * a) / Float64(-1.0 - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (a * (z / (-1.0 + (z - t)))); tmp = 0.0; if (z <= -7.8e+54) tmp = t_1; elseif (z <= 1.55e+75) tmp = x + ((y * a) / (-1.0 - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(a * N[(z / N[(-1.0 + N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+54], t$95$1, If[LessEqual[z, 1.55e+75], N[(x + N[(N[(y * a), $MachinePrecision] / N[(-1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - a \cdot \frac{z}{-1 + \left(z - t\right)}\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+75}:\\
\;\;\;\;x + \frac{y \cdot a}{-1 - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.8000000000000005e54 or 1.5500000000000001e75 < z Initial program 96.5%
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
--lowering--.f6499.9%
Applied egg-rr99.9%
Taylor expanded in y around 0
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sub-negN/A
associate-+r+N/A
mul-1-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6489.9%
Simplified89.9%
if -7.8000000000000005e54 < z < 1.5500000000000001e75Initial program 99.8%
Taylor expanded in z around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6485.2%
Simplified85.2%
Final simplification87.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.3e+54) (- x a) (if (<= z 1.55e+75) (+ x (/ (* y a) (- -1.0 t))) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.3e+54) {
tmp = x - a;
} else if (z <= 1.55e+75) {
tmp = x + ((y * a) / (-1.0 - t));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5.3d+54)) then
tmp = x - a
else if (z <= 1.55d+75) then
tmp = x + ((y * a) / ((-1.0d0) - t))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.3e+54) {
tmp = x - a;
} else if (z <= 1.55e+75) {
tmp = x + ((y * a) / (-1.0 - t));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.3e+54: tmp = x - a elif z <= 1.55e+75: tmp = x + ((y * a) / (-1.0 - t)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.3e+54) tmp = Float64(x - a); elseif (z <= 1.55e+75) tmp = Float64(x + Float64(Float64(y * a) / Float64(-1.0 - t))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.3e+54) tmp = x - a; elseif (z <= 1.55e+75) tmp = x + ((y * a) / (-1.0 - t)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.3e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, 1.55e+75], N[(x + N[(N[(y * a), $MachinePrecision] / N[(-1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.3 \cdot 10^{+54}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+75}:\\
\;\;\;\;x + \frac{y \cdot a}{-1 - t}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -5.30000000000000018e54 or 1.5500000000000001e75 < z Initial program 96.5%
Taylor expanded in z around inf
--lowering--.f6487.6%
Simplified87.6%
if -5.30000000000000018e54 < z < 1.5500000000000001e75Initial program 99.8%
Taylor expanded in z around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6485.2%
Simplified85.2%
Final simplification86.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.1e+54) (- x a) (if (<= z 1.3e-7) (+ x (* a (- z y))) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.1e+54) {
tmp = x - a;
} else if (z <= 1.3e-7) {
tmp = x + (a * (z - y));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5.1d+54)) then
tmp = x - a
else if (z <= 1.3d-7) then
tmp = x + (a * (z - y))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.1e+54) {
tmp = x - a;
} else if (z <= 1.3e-7) {
tmp = x + (a * (z - y));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.1e+54: tmp = x - a elif z <= 1.3e-7: tmp = x + (a * (z - y)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.1e+54) tmp = Float64(x - a); elseif (z <= 1.3e-7) tmp = Float64(x + Float64(a * Float64(z - y))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.1e+54) tmp = x - a; elseif (z <= 1.3e-7) tmp = x + (a * (z - y)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.1e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, 1.3e-7], N[(x + N[(a * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{+54}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-7}:\\
\;\;\;\;x + a \cdot \left(z - y\right)\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -5.10000000000000009e54 or 1.29999999999999999e-7 < z Initial program 97.0%
Taylor expanded in z around inf
--lowering--.f6482.2%
Simplified82.2%
if -5.10000000000000009e54 < z < 1.29999999999999999e-7Initial program 99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.2%
Simplified76.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6476.2%
Applied egg-rr76.2%
Taylor expanded in z around 0
Simplified74.5%
Final simplification78.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.1e+54) (- x a) (if (<= z 8.8e-8) (- x (* y a)) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.1e+54) {
tmp = x - a;
} else if (z <= 8.8e-8) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5.1d+54)) then
tmp = x - a
else if (z <= 8.8d-8) then
tmp = x - (y * a)
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.1e+54) {
tmp = x - a;
} else if (z <= 8.8e-8) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.1e+54: tmp = x - a elif z <= 8.8e-8: tmp = x - (y * a) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.1e+54) tmp = Float64(x - a); elseif (z <= 8.8e-8) tmp = Float64(x - Float64(y * a)); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.1e+54) tmp = x - a; elseif (z <= 8.8e-8) tmp = x - (y * a); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.1e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, 8.8e-8], N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{+54}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-8}:\\
\;\;\;\;x - y \cdot a\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -5.10000000000000009e54 or 8.7999999999999994e-8 < z Initial program 97.0%
Taylor expanded in z around inf
--lowering--.f6482.2%
Simplified82.2%
if -5.10000000000000009e54 < z < 8.7999999999999994e-8Initial program 99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.2%
Simplified76.2%
Taylor expanded in z around 0
--lowering--.f64N/A
*-lowering-*.f6472.4%
Simplified72.4%
Final simplification77.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.1e+54) (- x a) (if (<= z 2.15e-38) x (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.1e+54) {
tmp = x - a;
} else if (z <= 2.15e-38) {
tmp = x;
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5.1d+54)) then
tmp = x - a
else if (z <= 2.15d-38) then
tmp = x
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.1e+54) {
tmp = x - a;
} else if (z <= 2.15e-38) {
tmp = x;
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.1e+54: tmp = x - a elif z <= 2.15e-38: tmp = x else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.1e+54) tmp = Float64(x - a); elseif (z <= 2.15e-38) tmp = x; else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.1e+54) tmp = x - a; elseif (z <= 2.15e-38) tmp = x; else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.1e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, 2.15e-38], x, N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{+54}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{-38}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -5.10000000000000009e54 or 2.1500000000000001e-38 < z Initial program 97.1%
Taylor expanded in z around inf
--lowering--.f6478.3%
Simplified78.3%
if -5.10000000000000009e54 < z < 2.1500000000000001e-38Initial program 99.9%
Taylor expanded in x around inf
Simplified54.9%
(FPCore (x y z t a) :precision binary64 (if (<= x -1.25e-236) x (if (<= x 2.35e-117) (- 0.0 a) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.25e-236) {
tmp = x;
} else if (x <= 2.35e-117) {
tmp = 0.0 - a;
} 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 (x <= (-1.25d-236)) then
tmp = x
else if (x <= 2.35d-117) then
tmp = 0.0d0 - a
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 (x <= -1.25e-236) {
tmp = x;
} else if (x <= 2.35e-117) {
tmp = 0.0 - a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.25e-236: tmp = x elif x <= 2.35e-117: tmp = 0.0 - a else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.25e-236) tmp = x; elseif (x <= 2.35e-117) tmp = Float64(0.0 - a); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.25e-236) tmp = x; elseif (x <= 2.35e-117) tmp = 0.0 - a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.25e-236], x, If[LessEqual[x, 2.35e-117], N[(0.0 - a), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{-236}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.35 \cdot 10^{-117}:\\
\;\;\;\;0 - a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.2499999999999999e-236 or 2.35000000000000004e-117 < x Initial program 99.4%
Taylor expanded in x around inf
Simplified62.8%
if -1.2499999999999999e-236 < x < 2.35000000000000004e-117Initial program 94.6%
Taylor expanded in z around inf
--lowering--.f6444.5%
Simplified44.5%
Taylor expanded in x around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6439.5%
Simplified39.5%
sub0-negN/A
neg-lowering-neg.f6439.5%
Applied egg-rr39.5%
Final simplification57.6%
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ a (+ -1.0 (- z t))))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * (a / (-1.0 + (z - 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 - z) * (a / ((-1.0d0) + (z - t))))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * (a / (-1.0 + (z - t))));
}
def code(x, y, z, t, a): return x + ((y - z) * (a / (-1.0 + (z - t))))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(a / Float64(-1.0 + Float64(z - t))))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * (a / (-1.0 + (z - t)))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(a / N[(-1.0 + N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{a}{-1 + \left(z - t\right)}
\end{array}
Initial program 98.3%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6498.7%
Applied egg-rr98.7%
Final simplification98.7%
(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 98.3%
Taylor expanded in x around inf
Simplified51.8%
(FPCore (x y z t a) :precision binary64 (- x (* (/ (- y z) (+ (- t z) 1.0)) a)))
double code(double x, double y, double z, double t, double a) {
return x - (((y - z) / ((t - z) + 1.0)) * a);
}
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 - z) / ((t - z) + 1.0d0)) * a)
end function
public static double code(double x, double y, double z, double t, double a) {
return x - (((y - z) / ((t - z) + 1.0)) * a);
}
def code(x, y, z, t, a): return x - (((y - z) / ((t - z) + 1.0)) * a)
function code(x, y, z, t, a) return Float64(x - Float64(Float64(Float64(y - z) / Float64(Float64(t - z) + 1.0)) * a)) end
function tmp = code(x, y, z, t, a) tmp = x - (((y - z) / ((t - z) + 1.0)) * a); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(N[(y - z), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\left(t - z\right) + 1} \cdot a
\end{array}
herbie shell --seed 2024152
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (- x (* (/ (- y z) (+ (- t z) 1)) a)))
(- x (/ (- y z) (/ (+ (- t z) 1.0) a))))