
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(t_2 (/ t t_1))
(t_3
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(t_4 (/ (+ t t_3) t_1)))
(if (<= t_4 (- INFINITY))
(+
t_2
(*
z
(+
(*
(/ y z)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* x (pow y 2.0))))) t_1))
(/ (pow y 3.0) t_1))))
(if (<= t_4 5e+298)
(+ t_2 (/ t_3 t_1))
(- (+ x (/ z y)) (* a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_2 = t / t_1;
double t_3 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double t_4 = (t + t_3) / t_1;
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = t_2 + (z * (((y / z) * ((230661.510616 + (y * (27464.7644705 + (x * pow(y, 2.0))))) / t_1)) + (pow(y, 3.0) / t_1)));
} else if (t_4 <= 5e+298) {
tmp = t_2 + (t_3 / t_1);
} else {
tmp = (x + (z / y)) - (a * (x / y));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_2 = t / t_1;
double t_3 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double t_4 = (t + t_3) / t_1;
double tmp;
if (t_4 <= -Double.POSITIVE_INFINITY) {
tmp = t_2 + (z * (((y / z) * ((230661.510616 + (y * (27464.7644705 + (x * Math.pow(y, 2.0))))) / t_1)) + (Math.pow(y, 3.0) / t_1)));
} else if (t_4 <= 5e+298) {
tmp = t_2 + (t_3 / t_1);
} else {
tmp = (x + (z / y)) - (a * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i t_2 = t / t_1 t_3 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) t_4 = (t + t_3) / t_1 tmp = 0 if t_4 <= -math.inf: tmp = t_2 + (z * (((y / z) * ((230661.510616 + (y * (27464.7644705 + (x * math.pow(y, 2.0))))) / t_1)) + (math.pow(y, 3.0) / t_1))) elif t_4 <= 5e+298: tmp = t_2 + (t_3 / t_1) else: tmp = (x + (z / y)) - (a * (x / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) t_2 = Float64(t / t_1) t_3 = Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) t_4 = Float64(Float64(t + t_3) / t_1) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = Float64(t_2 + Float64(z * Float64(Float64(Float64(y / z) * Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(x * (y ^ 2.0))))) / t_1)) + Float64((y ^ 3.0) / t_1)))); elseif (t_4 <= 5e+298) tmp = Float64(t_2 + Float64(t_3 / t_1)); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; t_2 = t / t_1; t_3 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616); t_4 = (t + t_3) / t_1; tmp = 0.0; if (t_4 <= -Inf) tmp = t_2 + (z * (((y / z) * ((230661.510616 + (y * (27464.7644705 + (x * (y ^ 2.0))))) / t_1)) + ((y ^ 3.0) / t_1))); elseif (t_4 <= 5e+298) tmp = t_2 + (t_3 / t_1); else tmp = (x + (z / y)) - (a * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, Block[{t$95$2 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t + t$95$3), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], N[(t$95$2 + N[(z * N[(N[(N[(y / z), $MachinePrecision] * N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(x * N[Power[y, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[Power[y, 3.0], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 5e+298], N[(t$95$2 + N[(t$95$3 / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
t_2 := \frac{t}{t\_1}\\
t_3 := y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)\\
t_4 := \frac{t + t\_3}{t\_1}\\
\mathbf{if}\;t\_4 \leq -\infty:\\
\;\;\;\;t\_2 + z \cdot \left(\frac{y}{z} \cdot \frac{230661.510616 + y \cdot \left(27464.7644705 + x \cdot {y}^{2}\right)}{t\_1} + \frac{{y}^{3}}{t\_1}\right)\\
\mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+298}:\\
\;\;\;\;t\_2 + \frac{t\_3}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -inf.0Initial program 32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
Simplified32.2%
Taylor expanded in t around 0 32.2%
Taylor expanded in z around inf 58.2%
times-frac79.5%
Simplified79.5%
if -inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.0000000000000003e298Initial program 96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
Simplified96.4%
Taylor expanded in t around 0 96.4%
if 5.0000000000000003e298 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
Simplified1.3%
Taylor expanded in y around inf 72.8%
associate-/l*74.8%
Simplified74.8%
Final simplification87.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(t_2 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(t_3 (/ (+ t t_1) t_2))
(t_4 (* z t_2)))
(if (<= t_3 (- INFINITY))
(*
z
(+
(/ t t_4)
(+
(/ (pow y 3.0) t_2)
(/ (* y (+ 230661.510616 (* y 27464.7644705))) t_4))))
(if (<= t_3 5e+298)
(+ (/ t t_2) (/ t_1 t_2))
(- (+ x (/ z y)) (* a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double t_2 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_3 = (t + t_1) / t_2;
double t_4 = z * t_2;
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = z * ((t / t_4) + ((pow(y, 3.0) / t_2) + ((y * (230661.510616 + (y * 27464.7644705))) / t_4)));
} else if (t_3 <= 5e+298) {
tmp = (t / t_2) + (t_1 / t_2);
} else {
tmp = (x + (z / y)) - (a * (x / y));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double t_2 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_3 = (t + t_1) / t_2;
double t_4 = z * t_2;
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = z * ((t / t_4) + ((Math.pow(y, 3.0) / t_2) + ((y * (230661.510616 + (y * 27464.7644705))) / t_4)));
} else if (t_3 <= 5e+298) {
tmp = (t / t_2) + (t_1 / t_2);
} else {
tmp = (x + (z / y)) - (a * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) t_2 = (y * ((y * ((y * (y + a)) + b)) + c)) + i t_3 = (t + t_1) / t_2 t_4 = z * t_2 tmp = 0 if t_3 <= -math.inf: tmp = z * ((t / t_4) + ((math.pow(y, 3.0) / t_2) + ((y * (230661.510616 + (y * 27464.7644705))) / t_4))) elif t_3 <= 5e+298: tmp = (t / t_2) + (t_1 / t_2) else: tmp = (x + (z / y)) - (a * (x / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) t_2 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) t_3 = Float64(Float64(t + t_1) / t_2) t_4 = Float64(z * t_2) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(t / t_4) + Float64(Float64((y ^ 3.0) / t_2) + Float64(Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705))) / t_4)))); elseif (t_3 <= 5e+298) tmp = Float64(Float64(t / t_2) + Float64(t_1 / t_2)); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616); t_2 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; t_3 = (t + t_1) / t_2; t_4 = z * t_2; tmp = 0.0; if (t_3 <= -Inf) tmp = z * ((t / t_4) + (((y ^ 3.0) / t_2) + ((y * (230661.510616 + (y * 27464.7644705))) / t_4))); elseif (t_3 <= 5e+298) tmp = (t / t_2) + (t_1 / t_2); else tmp = (x + (z / y)) - (a * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t + t$95$1), $MachinePrecision] / t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(z * t$95$2), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(z * N[(N[(t / t$95$4), $MachinePrecision] + N[(N[(N[Power[y, 3.0], $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+298], N[(N[(t / t$95$2), $MachinePrecision] + N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)\\
t_2 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
t_3 := \frac{t + t\_1}{t\_2}\\
t_4 := z \cdot t\_2\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{t}{t\_4} + \left(\frac{{y}^{3}}{t\_2} + \frac{y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{t\_4}\right)\right)\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+298}:\\
\;\;\;\;\frac{t}{t\_2} + \frac{t\_1}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -inf.0Initial program 32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
Simplified32.2%
Taylor expanded in z around inf 58.2%
Taylor expanded in x around 0 78.4%
if -inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.0000000000000003e298Initial program 96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
Simplified96.4%
Taylor expanded in t around 0 96.4%
if 5.0000000000000003e298 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
Simplified1.3%
Taylor expanded in y around inf 72.8%
associate-/l*74.8%
Simplified74.8%
Final simplification87.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(t_2
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(t_3 (/ (+ t t_2) t_1)))
(if (<= t_3 (- INFINITY))
(* z (+ (/ t (* z t_1)) (+ (/ (pow y 3.0) t_1) (/ x z))))
(if (<= t_3 5e+298)
(+ (/ t t_1) (/ t_2 t_1))
(- (+ x (/ z y)) (* a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double t_3 = (t + t_2) / t_1;
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = z * ((t / (z * t_1)) + ((pow(y, 3.0) / t_1) + (x / z)));
} else if (t_3 <= 5e+298) {
tmp = (t / t_1) + (t_2 / t_1);
} else {
tmp = (x + (z / y)) - (a * (x / y));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double t_3 = (t + t_2) / t_1;
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = z * ((t / (z * t_1)) + ((Math.pow(y, 3.0) / t_1) + (x / z)));
} else if (t_3 <= 5e+298) {
tmp = (t / t_1) + (t_2 / t_1);
} else {
tmp = (x + (z / y)) - (a * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) t_3 = (t + t_2) / t_1 tmp = 0 if t_3 <= -math.inf: tmp = z * ((t / (z * t_1)) + ((math.pow(y, 3.0) / t_1) + (x / z))) elif t_3 <= 5e+298: tmp = (t / t_1) + (t_2 / t_1) else: tmp = (x + (z / y)) - (a * (x / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) t_2 = Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) t_3 = Float64(Float64(t + t_2) / t_1) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(t / Float64(z * t_1)) + Float64(Float64((y ^ 3.0) / t_1) + Float64(x / z)))); elseif (t_3 <= 5e+298) tmp = Float64(Float64(t / t_1) + Float64(t_2 / t_1)); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616); t_3 = (t + t_2) / t_1; tmp = 0.0; if (t_3 <= -Inf) tmp = z * ((t / (z * t_1)) + (((y ^ 3.0) / t_1) + (x / z))); elseif (t_3 <= 5e+298) tmp = (t / t_1) + (t_2 / t_1); else tmp = (x + (z / y)) - (a * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t + t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(z * N[(N[(t / N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[Power[y, 3.0], $MachinePrecision] / t$95$1), $MachinePrecision] + N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+298], N[(N[(t / t$95$1), $MachinePrecision] + N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
t_2 := y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)\\
t_3 := \frac{t + t\_2}{t\_1}\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{t}{z \cdot t\_1} + \left(\frac{{y}^{3}}{t\_1} + \frac{x}{z}\right)\right)\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+298}:\\
\;\;\;\;\frac{t}{t\_1} + \frac{t\_2}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -inf.0Initial program 32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
fma-define32.2%
Simplified32.2%
Taylor expanded in z around inf 58.2%
Taylor expanded in y around inf 71.8%
if -inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.0000000000000003e298Initial program 96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
Simplified96.4%
Taylor expanded in t around 0 96.4%
if 5.0000000000000003e298 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
fma-define1.3%
Simplified1.3%
Taylor expanded in y around inf 72.8%
associate-/l*74.8%
Simplified74.8%
Final simplification86.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i)))
(if (or (<= y -1.5e+46) (not (<= y 1.22e+57)))
(- (+ x (/ z y)) (* a (/ x y)))
(+
(/ t t_1)
(/
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if ((y <= -1.5e+46) || !(y <= 1.22e+57)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t / t_1) + ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) / t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
if ((y <= (-1.5d+46)) .or. (.not. (y <= 1.22d+57))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t / t_1) + ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) / t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if ((y <= -1.5e+46) || !(y <= 1.22e+57)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t / t_1) + ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) / t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i tmp = 0 if (y <= -1.5e+46) or not (y <= 1.22e+57): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t / t_1) + ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) / t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) tmp = 0.0 if ((y <= -1.5e+46) || !(y <= 1.22e+57)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t / t_1) + Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; tmp = 0.0; if ((y <= -1.5e+46) || ~((y <= 1.22e+57))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t / t_1) + ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[Or[LessEqual[y, -1.5e+46], N[Not[LessEqual[y, 1.22e+57]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+46} \lor \neg \left(y \leq 1.22 \cdot 10^{+57}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{t\_1} + \frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{t\_1}\\
\end{array}
\end{array}
if y < -1.50000000000000012e46 or 1.22e57 < y Initial program 2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
Simplified2.6%
Taylor expanded in y around inf 71.8%
associate-/l*74.6%
Simplified74.6%
if -1.50000000000000012e46 < y < 1.22e57Initial program 95.2%
fma-define95.2%
fma-define95.2%
fma-define95.2%
fma-define95.2%
fma-define95.2%
fma-define95.2%
fma-define95.2%
Simplified95.2%
Taylor expanded in t around 0 95.2%
Final simplification86.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.5e+46) (not (<= y 2.3e+57)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.5e+46) || !(y <= 2.3e+57)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.5d+46)) .or. (.not. (y <= 2.3d+57))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.5e+46) || !(y <= 2.3e+57)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.5e+46) or not (y <= 2.3e+57): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.5e+46) || !(y <= 2.3e+57)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.5e+46) || ~((y <= 2.3e+57))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.5e+46], N[Not[LessEqual[y, 2.3e+57]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+46} \lor \neg \left(y \leq 2.3 \cdot 10^{+57}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\end{array}
\end{array}
if y < -1.50000000000000012e46 or 2.2999999999999999e57 < y Initial program 2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
fma-define2.6%
Simplified2.6%
Taylor expanded in y around inf 71.8%
associate-/l*74.6%
Simplified74.6%
if -1.50000000000000012e46 < y < 2.2999999999999999e57Initial program 95.2%
Final simplification86.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.7e+47) (not (<= y 2.6e+37)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.7e+47) || !(y <= 2.6e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.7d+47)) .or. (.not. (y <= 2.6d+37))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0))) / (i + (y * (c + (y * (b + (y * a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.7e+47) || !(y <= 2.6e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.7e+47) or not (y <= 2.6e+37): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.7e+47) || !(y <= 2.6e+37)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.7e+47) || ~((y <= 2.6e+37))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.7e+47], N[Not[LessEqual[y, 2.6e+37]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{+47} \lor \neg \left(y \leq 2.6 \cdot 10^{+37}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -1.6999999999999999e47 or 2.5999999999999999e37 < y Initial program 5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
Simplified5.3%
Taylor expanded in y around inf 69.7%
associate-/l*72.3%
Simplified72.3%
if -1.6999999999999999e47 < y < 2.5999999999999999e37Initial program 95.7%
Taylor expanded in y around 0 95.6%
Final simplification85.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.4e+57) (not (<= y 5.5e+55)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.4e+57) || !(y <= 5.5e+55)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.4d+57)) .or. (.not. (y <= 5.5d+55))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.4e+57) || !(y <= 5.5e+55)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.4e+57) or not (y <= 5.5e+55): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.4e+57) || !(y <= 5.5e+55)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.4e+57) || ~((y <= 5.5e+55))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.4e+57], N[Not[LessEqual[y, 5.5e+55]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+57} \lor \neg \left(y \leq 5.5 \cdot 10^{+55}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\end{array}
\end{array}
if y < -1.4e57 or 5.5000000000000004e55 < y Initial program 1.7%
fma-define1.7%
fma-define1.7%
fma-define1.7%
fma-define1.7%
fma-define1.7%
fma-define1.7%
fma-define1.7%
Simplified1.7%
Taylor expanded in y around inf 72.9%
associate-/l*75.7%
Simplified75.7%
if -1.4e57 < y < 5.5000000000000004e55Initial program 94.0%
Taylor expanded in x around 0 89.9%
Final simplification84.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -4.8e+51) (not (<= y 7e+36)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4.8e+51) || !(y <= 7e+36)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-4.8d+51)) .or. (.not. (y <= 7d+36))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4.8e+51) || !(y <= 7e+36)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4.8e+51) or not (y <= 7e+36): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4.8e+51) || !(y <= 7e+36)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4.8e+51) || ~((y <= 7e+36))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4.8e+51], N[Not[LessEqual[y, 7e+36]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+51} \lor \neg \left(y \leq 7 \cdot 10^{+36}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -4.7999999999999997e51 or 6.9999999999999996e36 < y Initial program 5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
Simplified5.3%
Taylor expanded in y around inf 70.9%
associate-/l*73.6%
Simplified73.6%
if -4.7999999999999997e51 < y < 6.9999999999999996e36Initial program 94.5%
Taylor expanded in y around 0 94.4%
Taylor expanded in x around 0 90.2%
Final simplification83.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.45e+47) (not (<= y 1.4e+37)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.45e+47) || !(y <= 1.4e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.45d+47)) .or. (.not. (y <= 1.4d+37))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0))) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.45e+47) || !(y <= 1.4e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.45e+47) or not (y <= 1.4e+37): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.45e+47) || !(y <= 1.4e+37)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.45e+47) || ~((y <= 1.4e+37))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.45e+47], N[Not[LessEqual[y, 1.4e+37]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+47} \lor \neg \left(y \leq 1.4 \cdot 10^{+37}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -1.4499999999999999e47 or 1.3999999999999999e37 < y Initial program 5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
Simplified5.3%
Taylor expanded in y around inf 69.7%
associate-/l*72.3%
Simplified72.3%
if -1.4499999999999999e47 < y < 1.3999999999999999e37Initial program 95.7%
Taylor expanded in y around 0 95.6%
Taylor expanded in a around 0 87.7%
Final simplification81.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.25e+45) (not (<= y 1.85e+45)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.25e+45) || !(y <= 1.85e+45)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.25d+45)) .or. (.not. (y <= 1.85d+45))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.25e+45) || !(y <= 1.85e+45)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.25e+45) or not (y <= 1.85e+45): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.25e+45) || !(y <= 1.85e+45)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.25e+45) || ~((y <= 1.85e+45))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.25e+45], N[Not[LessEqual[y, 1.85e+45]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+45} \lor \neg \left(y \leq 1.85 \cdot 10^{+45}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\end{array}
\end{array}
if y < -1.25e45 or 1.84999999999999989e45 < y Initial program 3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
fma-define3.5%
Simplified3.5%
Taylor expanded in y around inf 71.5%
associate-/l*74.2%
Simplified74.2%
if -1.25e45 < y < 1.84999999999999989e45Initial program 95.2%
Taylor expanded in y around 0 82.5%
*-commutative82.5%
Simplified82.5%
Final simplification79.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.15e+46) (not (<= y 2.2e+37)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.15e+46) || !(y <= 2.2e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.15d+46)) .or. (.not. (y <= 2.2d+37))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * (b + (y * a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.15e+46) || !(y <= 2.2e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.15e+46) or not (y <= 2.2e+37): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.15e+46) || !(y <= 2.2e+37)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.15e+46) || ~((y <= 2.2e+37))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.15e+46], N[Not[LessEqual[y, 2.2e+37]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+46} \lor \neg \left(y \leq 2.2 \cdot 10^{+37}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -1.15e46 or 2.2000000000000001e37 < y Initial program 5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
Simplified5.3%
Taylor expanded in y around inf 69.7%
associate-/l*72.3%
Simplified72.3%
if -1.15e46 < y < 2.2000000000000001e37Initial program 95.7%
Taylor expanded in y around 0 82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in y around 0 82.8%
Final simplification78.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.35e+51) (not (<= y 2.7e+49))) (- (+ x (/ z y)) (* a (/ x y))) (/ (+ t (* y 230661.510616)) (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.35e+51) || !(y <= 2.7e+49)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.35d+51)) .or. (.not. (y <= 2.7d+49))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * 230661.510616d0)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.35e+51) || !(y <= 2.7e+49)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.35e+51) or not (y <= 2.7e+49): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.35e+51) || !(y <= 2.7e+49)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.35e+51) || ~((y <= 2.7e+49))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.35e+51], N[Not[LessEqual[y, 2.7e+49]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+51} \lor \neg \left(y \leq 2.7 \cdot 10^{+49}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\end{array}
\end{array}
if y < -1.34999999999999996e51 or 2.7000000000000001e49 < y Initial program 3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
Simplified3.6%
Taylor expanded in y around inf 72.8%
associate-/l*75.6%
Simplified75.6%
if -1.34999999999999996e51 < y < 2.7000000000000001e49Initial program 93.9%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
Simplified78.6%
Final simplification77.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.5e+51) (not (<= y 1.8e+37))) (- (+ x (/ z y)) (* a (/ x y))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.5e+51) || !(y <= 1.8e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.5d+51)) .or. (.not. (y <= 1.8d+37))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * (b + (y * a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.5e+51) || !(y <= 1.8e+37)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.5e+51) or not (y <= 1.8e+37): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.5e+51) || !(y <= 1.8e+37)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.5e+51) || ~((y <= 1.8e+37))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.5e+51], N[Not[LessEqual[y, 1.8e+37]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+51} \lor \neg \left(y \leq 1.8 \cdot 10^{+37}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -1.5e51 or 1.79999999999999999e37 < y Initial program 5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
Simplified5.3%
Taylor expanded in y around inf 70.9%
associate-/l*73.6%
Simplified73.6%
if -1.5e51 < y < 1.79999999999999999e37Initial program 94.5%
Taylor expanded in y around 0 94.4%
Taylor expanded in y around 0 78.8%
*-commutative78.8%
Simplified78.8%
Final simplification76.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.8e+52) (not (<= y 3.2e+49))) (- (+ x (/ z y)) (* a (/ x y))) (/ t (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.8e+52) || !(y <= 3.2e+49)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.8d+52)) .or. (.not. (y <= 3.2d+49))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.8e+52) || !(y <= 3.2e+49)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.8e+52) or not (y <= 3.2e+49): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.8e+52) || !(y <= 3.2e+49)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(t / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.8e+52) || ~((y <= 3.2e+49))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.8e+52], N[Not[LessEqual[y, 3.2e+49]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+52} \lor \neg \left(y \leq 3.2 \cdot 10^{+49}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\end{array}
\end{array}
if y < -1.8e52 or 3.20000000000000014e49 < y Initial program 3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
fma-define3.6%
Simplified3.6%
Taylor expanded in y around inf 72.8%
associate-/l*75.6%
Simplified75.6%
if -1.8e52 < y < 3.20000000000000014e49Initial program 93.9%
fma-define93.9%
fma-define93.9%
fma-define93.9%
fma-define93.9%
fma-define93.9%
fma-define93.9%
fma-define93.9%
Simplified93.9%
Taylor expanded in t around inf 65.9%
Final simplification69.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.85e+51) (not (<= y 3.7e+36))) (- (+ x (/ z y)) (* a (/ x y))) (/ t (+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.85e+51) || !(y <= 3.7e+36)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.85d+51)) .or. (.not. (y <= 3.7d+36))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = t / (i + (y * (c + (y * (b + (y * a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.85e+51) || !(y <= 3.7e+36)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.85e+51) or not (y <= 3.7e+36): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = t / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.85e+51) || !(y <= 3.7e+36)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.85e+51) || ~((y <= 3.7e+36))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = t / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.85e+51], N[Not[LessEqual[y, 3.7e+36]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85 \cdot 10^{+51} \lor \neg \left(y \leq 3.7 \cdot 10^{+36}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -1.8500000000000001e51 or 3.70000000000000029e36 < y Initial program 5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
fma-define5.3%
Simplified5.3%
Taylor expanded in y around inf 70.9%
associate-/l*73.6%
Simplified73.6%
if -1.8500000000000001e51 < y < 3.70000000000000029e36Initial program 94.5%
Taylor expanded in y around 0 94.4%
Taylor expanded in t around inf 66.0%
Final simplification69.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.32e+51) (not (<= y 0.0115))) (- (+ x (/ z y)) (* a (/ x y))) (/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.32e+51) || !(y <= 0.0115)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.32d+51)) .or. (.not. (y <= 0.0115d0))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.32e+51) || !(y <= 0.0115)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.32e+51) or not (y <= 0.0115): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.32e+51) || !(y <= 0.0115)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.32e+51) || ~((y <= 0.0115))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.32e+51], N[Not[LessEqual[y, 0.0115]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.32 \cdot 10^{+51} \lor \neg \left(y \leq 0.0115\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i}\\
\end{array}
\end{array}
if y < -1.32e51 or 0.0115 < y Initial program 11.7%
fma-define11.7%
fma-define11.7%
fma-define11.7%
fma-define11.7%
fma-define11.7%
fma-define11.7%
fma-define11.7%
Simplified11.7%
Taylor expanded in y around inf 65.1%
associate-/l*67.6%
Simplified67.6%
if -1.32e51 < y < 0.0115Initial program 95.5%
Taylor expanded in y around 0 86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in i around inf 54.4%
Final simplification60.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.22e+36) (not (<= y 0.0013))) (- (+ x (/ z y)) (* a (/ x y))) (/ t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.22e+36) || !(y <= 0.0013)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.22d+36)) .or. (.not. (y <= 0.0013d0))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = t / i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.22e+36) || !(y <= 0.0013)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.22e+36) or not (y <= 0.0013): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = t / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.22e+36) || !(y <= 0.0013)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(t / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.22e+36) || ~((y <= 0.0013))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = t / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.22e+36], N[Not[LessEqual[y, 0.0013]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+36} \lor \neg \left(y \leq 0.0013\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\
\end{array}
\end{array}
if y < -1.21999999999999995e36 or 0.0012999999999999999 < y Initial program 12.1%
fma-define12.1%
fma-define12.1%
fma-define12.1%
fma-define12.1%
fma-define12.1%
fma-define12.1%
fma-define12.1%
Simplified12.1%
Taylor expanded in y around inf 63.1%
associate-/l*65.5%
Simplified65.5%
if -1.21999999999999995e36 < y < 0.0012999999999999999Initial program 97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
Simplified97.6%
Taylor expanded in y around 0 49.9%
Final simplification57.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.02e+173)
x
(if (<= y -5.8e+19)
(* y (+ (/ x a) (/ z (* y a))))
(if (<= y 1.65e-26) (/ t i) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.02e+173) {
tmp = x;
} else if (y <= -5.8e+19) {
tmp = y * ((x / a) + (z / (y * a)));
} else if (y <= 1.65e-26) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.02d+173)) then
tmp = x
else if (y <= (-5.8d+19)) then
tmp = y * ((x / a) + (z / (y * a)))
else if (y <= 1.65d-26) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.02e+173) {
tmp = x;
} else if (y <= -5.8e+19) {
tmp = y * ((x / a) + (z / (y * a)));
} else if (y <= 1.65e-26) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.02e+173: tmp = x elif y <= -5.8e+19: tmp = y * ((x / a) + (z / (y * a))) elif y <= 1.65e-26: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.02e+173) tmp = x; elseif (y <= -5.8e+19) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(y * a)))); elseif (y <= 1.65e-26) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.02e+173) tmp = x; elseif (y <= -5.8e+19) tmp = y * ((x / a) + (z / (y * a))); elseif (y <= 1.65e-26) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.02e+173], x, If[LessEqual[y, -5.8e+19], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e-26], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+173}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -5.8 \cdot 10^{+19}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{y \cdot a}\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-26}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.02e173 or 1.6499999999999999e-26 < y Initial program 15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
fma-define15.5%
Simplified15.5%
Taylor expanded in y around inf 60.9%
if -1.02e173 < y < -5.8e19Initial program 10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
Simplified10.0%
Taylor expanded in a around inf 1.9%
Taylor expanded in y around inf 27.6%
if -5.8e19 < y < 1.6499999999999999e-26Initial program 99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 52.1%
Final simplification51.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -9.5e+35) x (if (<= y 1.65e-26) (/ t i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -9.5e+35) {
tmp = x;
} else if (y <= 1.65e-26) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-9.5d+35)) then
tmp = x
else if (y <= 1.65d-26) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -9.5e+35) {
tmp = x;
} else if (y <= 1.65e-26) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -9.5e+35: tmp = x elif y <= 1.65e-26: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -9.5e+35) tmp = x; elseif (y <= 1.65e-26) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -9.5e+35) tmp = x; elseif (y <= 1.65e-26) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -9.5e+35], x, If[LessEqual[y, 1.65e-26], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+35}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-26}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -9.50000000000000062e35 or 1.6499999999999999e-26 < y Initial program 13.6%
fma-define13.6%
fma-define13.6%
fma-define13.6%
fma-define13.6%
fma-define13.6%
fma-define13.6%
fma-define13.6%
Simplified13.6%
Taylor expanded in y around inf 49.4%
if -9.50000000000000062e35 < y < 1.6499999999999999e-26Initial program 97.5%
fma-define97.5%
fma-define97.5%
fma-define97.5%
fma-define97.5%
fma-define97.6%
fma-define97.6%
fma-define97.6%
Simplified97.6%
Taylor expanded in y around 0 50.6%
(FPCore (x y z t a b c i) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
def code(x, y, z, t, a, b, c, i): return x
function code(x, y, z, t, a, b, c, i) return x end
function tmp = code(x, y, z, t, a, b, c, i) tmp = x; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 56.9%
fma-define56.9%
fma-define56.9%
fma-define56.9%
fma-define56.9%
fma-define56.9%
fma-define56.9%
fma-define56.9%
Simplified56.9%
Taylor expanded in y around inf 25.6%
herbie shell --seed 2024139
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
:precision binary64
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))