
(FPCore (x y z t a b c) :precision binary64 (+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0)) + c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
def code(x, y, z, t, a, b, c): return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) + c) end
function tmp = code(x, y, z, t, a, b, c) tmp = (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right) + c
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0)) + c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
def code(x, y, z, t, a, b, c): return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) + c) end
function tmp = code(x, y, z, t, a, b, c) tmp = (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right) + c
\end{array}
(FPCore (x y z t a b c) :precision binary64 (+ (fma x y (fma z (/ t 16.0) (/ (* a b) -4.0))) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return fma(x, y, fma(z, (t / 16.0), ((a * b) / -4.0))) + c;
}
function code(x, y, z, t, a, b, c) return Float64(fma(x, y, fma(z, Float64(t / 16.0), Float64(Float64(a * b) / -4.0))) + c) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(x * y + N[(z * N[(t / 16.0), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] / -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, \mathsf{fma}\left(z, \frac{t}{16}, \frac{a \cdot b}{-4}\right)\right) + c
\end{array}
Initial program 98.0%
associate--l+98.0%
fma-define98.8%
associate-/l*98.8%
fma-neg98.8%
distribute-neg-frac298.8%
metadata-eval98.8%
Simplified98.8%
Final simplification98.8%
(FPCore (x y z t a b c) :precision binary64 (+ c (- (fma x y (* z (/ t 16.0))) (* a (/ b 4.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return c + (fma(x, y, (z * (t / 16.0))) - (a * (b / 4.0)));
}
function code(x, y, z, t, a, b, c) return Float64(c + Float64(fma(x, y, Float64(z * Float64(t / 16.0))) - Float64(a * Float64(b / 4.0)))) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(c + N[(N[(x * y + N[(z * N[(t / 16.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(b / 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c + \left(\mathsf{fma}\left(x, y, z \cdot \frac{t}{16}\right) - a \cdot \frac{b}{4}\right)
\end{array}
Initial program 98.0%
associate-+l-98.0%
*-commutative98.0%
associate-+l-98.0%
fma-define98.4%
*-commutative98.4%
associate-/l*98.4%
associate-/l*98.4%
Simplified98.4%
Final simplification98.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ (* x y) (* (* a b) -0.25))))
(if (<= (* a b) -4e+63)
t_1
(if (<= (* a b) 5e-178)
(+ c (* 0.0625 (* z t)))
(if (<= (* a b) 2e+132)
(+ c (* x y))
(if (<= (* a b) 1e+239) (+ c (* a (* b -0.25))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (x * y) + ((a * b) * -0.25);
double tmp;
if ((a * b) <= -4e+63) {
tmp = t_1;
} else if ((a * b) <= 5e-178) {
tmp = c + (0.0625 * (z * t));
} else if ((a * b) <= 2e+132) {
tmp = c + (x * y);
} else if ((a * b) <= 1e+239) {
tmp = c + (a * (b * -0.25));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = (x * y) + ((a * b) * (-0.25d0))
if ((a * b) <= (-4d+63)) then
tmp = t_1
else if ((a * b) <= 5d-178) then
tmp = c + (0.0625d0 * (z * t))
else if ((a * b) <= 2d+132) then
tmp = c + (x * y)
else if ((a * b) <= 1d+239) then
tmp = c + (a * (b * (-0.25d0)))
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 b, double c) {
double t_1 = (x * y) + ((a * b) * -0.25);
double tmp;
if ((a * b) <= -4e+63) {
tmp = t_1;
} else if ((a * b) <= 5e-178) {
tmp = c + (0.0625 * (z * t));
} else if ((a * b) <= 2e+132) {
tmp = c + (x * y);
} else if ((a * b) <= 1e+239) {
tmp = c + (a * (b * -0.25));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (x * y) + ((a * b) * -0.25) tmp = 0 if (a * b) <= -4e+63: tmp = t_1 elif (a * b) <= 5e-178: tmp = c + (0.0625 * (z * t)) elif (a * b) <= 2e+132: tmp = c + (x * y) elif (a * b) <= 1e+239: tmp = c + (a * (b * -0.25)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(x * y) + Float64(Float64(a * b) * -0.25)) tmp = 0.0 if (Float64(a * b) <= -4e+63) tmp = t_1; elseif (Float64(a * b) <= 5e-178) tmp = Float64(c + Float64(0.0625 * Float64(z * t))); elseif (Float64(a * b) <= 2e+132) tmp = Float64(c + Float64(x * y)); elseif (Float64(a * b) <= 1e+239) tmp = Float64(c + Float64(a * Float64(b * -0.25))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (x * y) + ((a * b) * -0.25); tmp = 0.0; if ((a * b) <= -4e+63) tmp = t_1; elseif ((a * b) <= 5e-178) tmp = c + (0.0625 * (z * t)); elseif ((a * b) <= 2e+132) tmp = c + (x * y); elseif ((a * b) <= 1e+239) tmp = c + (a * (b * -0.25)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] * -0.25), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -4e+63], t$95$1, If[LessEqual[N[(a * b), $MachinePrecision], 5e-178], N[(c + N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+132], N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1e+239], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y + \left(a \cdot b\right) \cdot -0.25\\
\mathbf{if}\;a \cdot b \leq -4 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{-178}:\\
\;\;\;\;c + 0.0625 \cdot \left(z \cdot t\right)\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+132}:\\
\;\;\;\;c + x \cdot y\\
\mathbf{elif}\;a \cdot b \leq 10^{+239}:\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 a b) < -4.00000000000000023e63 or 9.99999999999999991e238 < (*.f64 a b) Initial program 95.6%
Taylor expanded in z around 0 89.7%
Taylor expanded in b around inf 89.9%
Taylor expanded in c around 0 90.0%
Taylor expanded in b around 0 89.8%
if -4.00000000000000023e63 < (*.f64 a b) < 4.99999999999999976e-178Initial program 99.1%
Taylor expanded in z around inf 74.4%
if 4.99999999999999976e-178 < (*.f64 a b) < 1.99999999999999998e132Initial program 98.3%
Taylor expanded in x around inf 66.5%
if 1.99999999999999998e132 < (*.f64 a b) < 9.99999999999999991e238Initial program 99.9%
Taylor expanded in a around inf 64.9%
*-commutative64.9%
associate-*r*64.9%
Simplified64.9%
Final simplification76.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 0.0625 (* z t))))
(if (<= (* a b) -4e+63)
(+ (* x y) (* (* a b) -0.25))
(if (<= (* a b) 1e-141)
(+ c t_1)
(if (<= (* a b) 5e+141)
(+ (* x y) t_1)
(* b (- (/ (* x y) b) (* a 0.25))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 0.0625 * (z * t);
double tmp;
if ((a * b) <= -4e+63) {
tmp = (x * y) + ((a * b) * -0.25);
} else if ((a * b) <= 1e-141) {
tmp = c + t_1;
} else if ((a * b) <= 5e+141) {
tmp = (x * y) + t_1;
} else {
tmp = b * (((x * y) / b) - (a * 0.25));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = 0.0625d0 * (z * t)
if ((a * b) <= (-4d+63)) then
tmp = (x * y) + ((a * b) * (-0.25d0))
else if ((a * b) <= 1d-141) then
tmp = c + t_1
else if ((a * b) <= 5d+141) then
tmp = (x * y) + t_1
else
tmp = b * (((x * y) / b) - (a * 0.25d0))
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 t_1 = 0.0625 * (z * t);
double tmp;
if ((a * b) <= -4e+63) {
tmp = (x * y) + ((a * b) * -0.25);
} else if ((a * b) <= 1e-141) {
tmp = c + t_1;
} else if ((a * b) <= 5e+141) {
tmp = (x * y) + t_1;
} else {
tmp = b * (((x * y) / b) - (a * 0.25));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 0.0625 * (z * t) tmp = 0 if (a * b) <= -4e+63: tmp = (x * y) + ((a * b) * -0.25) elif (a * b) <= 1e-141: tmp = c + t_1 elif (a * b) <= 5e+141: tmp = (x * y) + t_1 else: tmp = b * (((x * y) / b) - (a * 0.25)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(0.0625 * Float64(z * t)) tmp = 0.0 if (Float64(a * b) <= -4e+63) tmp = Float64(Float64(x * y) + Float64(Float64(a * b) * -0.25)); elseif (Float64(a * b) <= 1e-141) tmp = Float64(c + t_1); elseif (Float64(a * b) <= 5e+141) tmp = Float64(Float64(x * y) + t_1); else tmp = Float64(b * Float64(Float64(Float64(x * y) / b) - Float64(a * 0.25))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 0.0625 * (z * t); tmp = 0.0; if ((a * b) <= -4e+63) tmp = (x * y) + ((a * b) * -0.25); elseif ((a * b) <= 1e-141) tmp = c + t_1; elseif ((a * b) <= 5e+141) tmp = (x * y) + t_1; else tmp = b * (((x * y) / b) - (a * 0.25)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -4e+63], N[(N[(x * y), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] * -0.25), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1e-141], N[(c + t$95$1), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 5e+141], N[(N[(x * y), $MachinePrecision] + t$95$1), $MachinePrecision], N[(b * N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - N[(a * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.0625 \cdot \left(z \cdot t\right)\\
\mathbf{if}\;a \cdot b \leq -4 \cdot 10^{+63}:\\
\;\;\;\;x \cdot y + \left(a \cdot b\right) \cdot -0.25\\
\mathbf{elif}\;a \cdot b \leq 10^{-141}:\\
\;\;\;\;c + t\_1\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{+141}:\\
\;\;\;\;x \cdot y + t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\frac{x \cdot y}{b} - a \cdot 0.25\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -4.00000000000000023e63Initial program 95.3%
Taylor expanded in z around 0 90.7%
Taylor expanded in b around inf 88.7%
Taylor expanded in c around 0 88.8%
Taylor expanded in b around 0 90.9%
if -4.00000000000000023e63 < (*.f64 a b) < 1e-141Initial program 99.1%
Taylor expanded in z around inf 74.5%
if 1e-141 < (*.f64 a b) < 5.00000000000000025e141Initial program 98.2%
Taylor expanded in a around 0 88.6%
Taylor expanded in c around 0 72.5%
if 5.00000000000000025e141 < (*.f64 a b) Initial program 97.4%
Taylor expanded in z around 0 87.3%
Taylor expanded in b around inf 89.9%
Taylor expanded in c around 0 80.2%
Final simplification77.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 0.0625 (* z t))))
(if (<= (* a b) -4e+63)
(+ (* x y) (* (* a b) -0.25))
(if (<= (* a b) 1e-141)
(+ c t_1)
(if (<= (* a b) 8e+132) (+ (* x y) t_1) (+ c (* a (* b -0.25))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 0.0625 * (z * t);
double tmp;
if ((a * b) <= -4e+63) {
tmp = (x * y) + ((a * b) * -0.25);
} else if ((a * b) <= 1e-141) {
tmp = c + t_1;
} else if ((a * b) <= 8e+132) {
tmp = (x * y) + t_1;
} else {
tmp = c + (a * (b * -0.25));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = 0.0625d0 * (z * t)
if ((a * b) <= (-4d+63)) then
tmp = (x * y) + ((a * b) * (-0.25d0))
else if ((a * b) <= 1d-141) then
tmp = c + t_1
else if ((a * b) <= 8d+132) then
tmp = (x * y) + t_1
else
tmp = c + (a * (b * (-0.25d0)))
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 t_1 = 0.0625 * (z * t);
double tmp;
if ((a * b) <= -4e+63) {
tmp = (x * y) + ((a * b) * -0.25);
} else if ((a * b) <= 1e-141) {
tmp = c + t_1;
} else if ((a * b) <= 8e+132) {
tmp = (x * y) + t_1;
} else {
tmp = c + (a * (b * -0.25));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 0.0625 * (z * t) tmp = 0 if (a * b) <= -4e+63: tmp = (x * y) + ((a * b) * -0.25) elif (a * b) <= 1e-141: tmp = c + t_1 elif (a * b) <= 8e+132: tmp = (x * y) + t_1 else: tmp = c + (a * (b * -0.25)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(0.0625 * Float64(z * t)) tmp = 0.0 if (Float64(a * b) <= -4e+63) tmp = Float64(Float64(x * y) + Float64(Float64(a * b) * -0.25)); elseif (Float64(a * b) <= 1e-141) tmp = Float64(c + t_1); elseif (Float64(a * b) <= 8e+132) tmp = Float64(Float64(x * y) + t_1); else tmp = Float64(c + Float64(a * Float64(b * -0.25))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 0.0625 * (z * t); tmp = 0.0; if ((a * b) <= -4e+63) tmp = (x * y) + ((a * b) * -0.25); elseif ((a * b) <= 1e-141) tmp = c + t_1; elseif ((a * b) <= 8e+132) tmp = (x * y) + t_1; else tmp = c + (a * (b * -0.25)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -4e+63], N[(N[(x * y), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] * -0.25), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1e-141], N[(c + t$95$1), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 8e+132], N[(N[(x * y), $MachinePrecision] + t$95$1), $MachinePrecision], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.0625 \cdot \left(z \cdot t\right)\\
\mathbf{if}\;a \cdot b \leq -4 \cdot 10^{+63}:\\
\;\;\;\;x \cdot y + \left(a \cdot b\right) \cdot -0.25\\
\mathbf{elif}\;a \cdot b \leq 10^{-141}:\\
\;\;\;\;c + t\_1\\
\mathbf{elif}\;a \cdot b \leq 8 \cdot 10^{+132}:\\
\;\;\;\;x \cdot y + t\_1\\
\mathbf{else}:\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -4.00000000000000023e63Initial program 95.3%
Taylor expanded in z around 0 90.7%
Taylor expanded in b around inf 88.7%
Taylor expanded in c around 0 88.8%
Taylor expanded in b around 0 90.9%
if -4.00000000000000023e63 < (*.f64 a b) < 1e-141Initial program 99.1%
Taylor expanded in z around inf 74.5%
if 1e-141 < (*.f64 a b) < 7.99999999999999993e132Initial program 98.1%
Taylor expanded in a around 0 88.2%
Taylor expanded in c around 0 73.4%
if 7.99999999999999993e132 < (*.f64 a b) Initial program 97.5%
Taylor expanded in a around inf 76.9%
*-commutative76.9%
associate-*r*76.9%
Simplified76.9%
Final simplification77.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ c (* x y))) (t_2 (+ c (* 0.0625 (* z t)))))
(if (<= z -1.36e+38)
t_2
(if (<= z -1.8e-128)
t_1
(if (<= z 3.25e-196)
(+ c (* a (* b -0.25)))
(if (<= z 3.7e-53) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = c + (x * y);
double t_2 = c + (0.0625 * (z * t));
double tmp;
if (z <= -1.36e+38) {
tmp = t_2;
} else if (z <= -1.8e-128) {
tmp = t_1;
} else if (z <= 3.25e-196) {
tmp = c + (a * (b * -0.25));
} else if (z <= 3.7e-53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c + (x * y)
t_2 = c + (0.0625d0 * (z * t))
if (z <= (-1.36d+38)) then
tmp = t_2
else if (z <= (-1.8d-128)) then
tmp = t_1
else if (z <= 3.25d-196) then
tmp = c + (a * (b * (-0.25d0)))
else if (z <= 3.7d-53) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = c + (x * y);
double t_2 = c + (0.0625 * (z * t));
double tmp;
if (z <= -1.36e+38) {
tmp = t_2;
} else if (z <= -1.8e-128) {
tmp = t_1;
} else if (z <= 3.25e-196) {
tmp = c + (a * (b * -0.25));
} else if (z <= 3.7e-53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = c + (x * y) t_2 = c + (0.0625 * (z * t)) tmp = 0 if z <= -1.36e+38: tmp = t_2 elif z <= -1.8e-128: tmp = t_1 elif z <= 3.25e-196: tmp = c + (a * (b * -0.25)) elif z <= 3.7e-53: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(c + Float64(x * y)) t_2 = Float64(c + Float64(0.0625 * Float64(z * t))) tmp = 0.0 if (z <= -1.36e+38) tmp = t_2; elseif (z <= -1.8e-128) tmp = t_1; elseif (z <= 3.25e-196) tmp = Float64(c + Float64(a * Float64(b * -0.25))); elseif (z <= 3.7e-53) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = c + (x * y); t_2 = c + (0.0625 * (z * t)); tmp = 0.0; if (z <= -1.36e+38) tmp = t_2; elseif (z <= -1.8e-128) tmp = t_1; elseif (z <= 3.25e-196) tmp = c + (a * (b * -0.25)); elseif (z <= 3.7e-53) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.36e+38], t$95$2, If[LessEqual[z, -1.8e-128], t$95$1, If[LessEqual[z, 3.25e-196], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e-53], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + x \cdot y\\
t_2 := c + 0.0625 \cdot \left(z \cdot t\right)\\
\mathbf{if}\;z \leq -1.36 \cdot 10^{+38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.25 \cdot 10^{-196}:\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.36000000000000002e38 or 3.69999999999999982e-53 < z Initial program 97.0%
Taylor expanded in z around inf 62.5%
if -1.36000000000000002e38 < z < -1.80000000000000012e-128 or 3.2500000000000002e-196 < z < 3.69999999999999982e-53Initial program 98.4%
Taylor expanded in x around inf 68.1%
if -1.80000000000000012e-128 < z < 3.2500000000000002e-196Initial program 100.0%
Taylor expanded in a around inf 67.8%
*-commutative67.8%
associate-*r*67.8%
Simplified67.8%
Final simplification65.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (* a b) -2e+44)
(+ c (- (* x y) (* (* a b) 0.25)))
(if (<= (* a b) 5e+141)
(+ c (+ (* x y) (* 0.0625 (* z t))))
(+ c (* b (- (/ (* x y) b) (* a 0.25)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a * b) <= -2e+44) {
tmp = c + ((x * y) - ((a * b) * 0.25));
} else if ((a * b) <= 5e+141) {
tmp = c + ((x * y) + (0.0625 * (z * t)));
} else {
tmp = c + (b * (((x * y) / b) - (a * 0.25)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((a * b) <= (-2d+44)) then
tmp = c + ((x * y) - ((a * b) * 0.25d0))
else if ((a * b) <= 5d+141) then
tmp = c + ((x * y) + (0.0625d0 * (z * t)))
else
tmp = c + (b * (((x * y) / b) - (a * 0.25d0)))
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 tmp;
if ((a * b) <= -2e+44) {
tmp = c + ((x * y) - ((a * b) * 0.25));
} else if ((a * b) <= 5e+141) {
tmp = c + ((x * y) + (0.0625 * (z * t)));
} else {
tmp = c + (b * (((x * y) / b) - (a * 0.25)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (a * b) <= -2e+44: tmp = c + ((x * y) - ((a * b) * 0.25)) elif (a * b) <= 5e+141: tmp = c + ((x * y) + (0.0625 * (z * t))) else: tmp = c + (b * (((x * y) / b) - (a * 0.25))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(a * b) <= -2e+44) tmp = Float64(c + Float64(Float64(x * y) - Float64(Float64(a * b) * 0.25))); elseif (Float64(a * b) <= 5e+141) tmp = Float64(c + Float64(Float64(x * y) + Float64(0.0625 * Float64(z * t)))); else tmp = Float64(c + Float64(b * Float64(Float64(Float64(x * y) / b) - Float64(a * 0.25)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((a * b) <= -2e+44) tmp = c + ((x * y) - ((a * b) * 0.25)); elseif ((a * b) <= 5e+141) tmp = c + ((x * y) + (0.0625 * (z * t))); else tmp = c + (b * (((x * y) / b) - (a * 0.25))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(a * b), $MachinePrecision], -2e+44], N[(c + N[(N[(x * y), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 5e+141], N[(c + N[(N[(x * y), $MachinePrecision] + N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c + N[(b * N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - N[(a * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2 \cdot 10^{+44}:\\
\;\;\;\;c + \left(x \cdot y - \left(a \cdot b\right) \cdot 0.25\right)\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{+141}:\\
\;\;\;\;c + \left(x \cdot y + 0.0625 \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c + b \cdot \left(\frac{x \cdot y}{b} - a \cdot 0.25\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -2.0000000000000002e44Initial program 93.5%
Taylor expanded in z around 0 89.2%
if -2.0000000000000002e44 < (*.f64 a b) < 5.00000000000000025e141Initial program 99.4%
Taylor expanded in a around 0 94.6%
if 5.00000000000000025e141 < (*.f64 a b) Initial program 97.4%
Taylor expanded in z around 0 87.3%
Taylor expanded in b around inf 89.9%
Final simplification92.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= (* a b) -2e+44) (not (<= (* a b) 5e+141))) (+ c (- (* x y) (* (* a b) 0.25))) (+ c (+ (* x y) (* 0.0625 (* z t))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (((a * b) <= -2e+44) || !((a * b) <= 5e+141)) {
tmp = c + ((x * y) - ((a * b) * 0.25));
} else {
tmp = c + ((x * y) + (0.0625 * (z * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if (((a * b) <= (-2d+44)) .or. (.not. ((a * b) <= 5d+141))) then
tmp = c + ((x * y) - ((a * b) * 0.25d0))
else
tmp = c + ((x * y) + (0.0625d0 * (z * t)))
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 tmp;
if (((a * b) <= -2e+44) || !((a * b) <= 5e+141)) {
tmp = c + ((x * y) - ((a * b) * 0.25));
} else {
tmp = c + ((x * y) + (0.0625 * (z * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if ((a * b) <= -2e+44) or not ((a * b) <= 5e+141): tmp = c + ((x * y) - ((a * b) * 0.25)) else: tmp = c + ((x * y) + (0.0625 * (z * t))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((Float64(a * b) <= -2e+44) || !(Float64(a * b) <= 5e+141)) tmp = Float64(c + Float64(Float64(x * y) - Float64(Float64(a * b) * 0.25))); else tmp = Float64(c + Float64(Float64(x * y) + Float64(0.0625 * Float64(z * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (((a * b) <= -2e+44) || ~(((a * b) <= 5e+141))) tmp = c + ((x * y) - ((a * b) * 0.25)); else tmp = c + ((x * y) + (0.0625 * (z * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -2e+44], N[Not[LessEqual[N[(a * b), $MachinePrecision], 5e+141]], $MachinePrecision]], N[(c + N[(N[(x * y), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c + N[(N[(x * y), $MachinePrecision] + N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2 \cdot 10^{+44} \lor \neg \left(a \cdot b \leq 5 \cdot 10^{+141}\right):\\
\;\;\;\;c + \left(x \cdot y - \left(a \cdot b\right) \cdot 0.25\right)\\
\mathbf{else}:\\
\;\;\;\;c + \left(x \cdot y + 0.0625 \cdot \left(z \cdot t\right)\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -2.0000000000000002e44 or 5.00000000000000025e141 < (*.f64 a b) Initial program 95.3%
Taylor expanded in z around 0 88.3%
if -2.0000000000000002e44 < (*.f64 a b) < 5.00000000000000025e141Initial program 99.4%
Taylor expanded in a around 0 94.6%
Final simplification92.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (* a b) -4e+63)
(+ (* x y) (* (* a b) -0.25))
(if (<= (* a b) 2e+173)
(+ c (+ (* x y) (* 0.0625 (* z t))))
(* b (- (/ (* x y) b) (* a 0.25))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a * b) <= -4e+63) {
tmp = (x * y) + ((a * b) * -0.25);
} else if ((a * b) <= 2e+173) {
tmp = c + ((x * y) + (0.0625 * (z * t)));
} else {
tmp = b * (((x * y) / b) - (a * 0.25));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((a * b) <= (-4d+63)) then
tmp = (x * y) + ((a * b) * (-0.25d0))
else if ((a * b) <= 2d+173) then
tmp = c + ((x * y) + (0.0625d0 * (z * t)))
else
tmp = b * (((x * y) / b) - (a * 0.25d0))
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 tmp;
if ((a * b) <= -4e+63) {
tmp = (x * y) + ((a * b) * -0.25);
} else if ((a * b) <= 2e+173) {
tmp = c + ((x * y) + (0.0625 * (z * t)));
} else {
tmp = b * (((x * y) / b) - (a * 0.25));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (a * b) <= -4e+63: tmp = (x * y) + ((a * b) * -0.25) elif (a * b) <= 2e+173: tmp = c + ((x * y) + (0.0625 * (z * t))) else: tmp = b * (((x * y) / b) - (a * 0.25)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(a * b) <= -4e+63) tmp = Float64(Float64(x * y) + Float64(Float64(a * b) * -0.25)); elseif (Float64(a * b) <= 2e+173) tmp = Float64(c + Float64(Float64(x * y) + Float64(0.0625 * Float64(z * t)))); else tmp = Float64(b * Float64(Float64(Float64(x * y) / b) - Float64(a * 0.25))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((a * b) <= -4e+63) tmp = (x * y) + ((a * b) * -0.25); elseif ((a * b) <= 2e+173) tmp = c + ((x * y) + (0.0625 * (z * t))); else tmp = b * (((x * y) / b) - (a * 0.25)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(a * b), $MachinePrecision], -4e+63], N[(N[(x * y), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] * -0.25), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+173], N[(c + N[(N[(x * y), $MachinePrecision] + N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - N[(a * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -4 \cdot 10^{+63}:\\
\;\;\;\;x \cdot y + \left(a \cdot b\right) \cdot -0.25\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+173}:\\
\;\;\;\;c + \left(x \cdot y + 0.0625 \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\frac{x \cdot y}{b} - a \cdot 0.25\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -4.00000000000000023e63Initial program 95.3%
Taylor expanded in z around 0 90.7%
Taylor expanded in b around inf 88.7%
Taylor expanded in c around 0 88.8%
Taylor expanded in b around 0 90.9%
if -4.00000000000000023e63 < (*.f64 a b) < 2e173Initial program 98.9%
Taylor expanded in a around 0 92.8%
if 2e173 < (*.f64 a b) Initial program 97.0%
Taylor expanded in z around 0 88.1%
Taylor expanded in b around inf 91.1%
Taylor expanded in c around 0 85.5%
Final simplification91.5%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= z -1.4e+38) (not (<= z 7.2e-53))) (+ c (* 0.0625 (* z t))) (+ c (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1.4e+38) || !(z <= 7.2e-53)) {
tmp = c + (0.0625 * (z * t));
} else {
tmp = c + (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((z <= (-1.4d+38)) .or. (.not. (z <= 7.2d-53))) then
tmp = c + (0.0625d0 * (z * t))
else
tmp = c + (x * y)
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 tmp;
if ((z <= -1.4e+38) || !(z <= 7.2e-53)) {
tmp = c + (0.0625 * (z * t));
} else {
tmp = c + (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -1.4e+38) or not (z <= 7.2e-53): tmp = c + (0.0625 * (z * t)) else: tmp = c + (x * y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -1.4e+38) || !(z <= 7.2e-53)) tmp = Float64(c + Float64(0.0625 * Float64(z * t))); else tmp = Float64(c + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -1.4e+38) || ~((z <= 7.2e-53))) tmp = c + (0.0625 * (z * t)); else tmp = c + (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.4e+38], N[Not[LessEqual[z, 7.2e-53]], $MachinePrecision]], N[(c + N[(0.0625 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+38} \lor \neg \left(z \leq 7.2 \cdot 10^{-53}\right):\\
\;\;\;\;c + 0.0625 \cdot \left(z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c + x \cdot y\\
\end{array}
\end{array}
if z < -1.4e38 or 7.1999999999999998e-53 < z Initial program 97.0%
Taylor expanded in z around inf 62.5%
if -1.4e38 < z < 7.1999999999999998e-53Initial program 99.1%
Taylor expanded in x around inf 66.8%
Final simplification64.5%
(FPCore (x y z t a b c) :precision binary64 (+ c (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return c + (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0));
}
real(8) function code(x, y, z, t, a, b, c)
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
code = c + (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return c + (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0));
}
def code(x, y, z, t, a, b, c): return c + (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0))
function code(x, y, z, t, a, b, c) return Float64(c + Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0))) end
function tmp = code(x, y, z, t, a, b, c) tmp = c + (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(c + N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c + \left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right)
\end{array}
Initial program 98.0%
Final simplification98.0%
(FPCore (x y z t a b c) :precision binary64 (+ c (* x y)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return c + (x * y);
}
real(8) function code(x, y, z, t, a, b, c)
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
code = c + (x * y)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return c + (x * y);
}
def code(x, y, z, t, a, b, c): return c + (x * y)
function code(x, y, z, t, a, b, c) return Float64(c + Float64(x * y)) end
function tmp = code(x, y, z, t, a, b, c) tmp = c + (x * y); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c + x \cdot y
\end{array}
Initial program 98.0%
Taylor expanded in x around inf 51.2%
Final simplification51.2%
(FPCore (x y z t a b c) :precision binary64 c)
double code(double x, double y, double z, double t, double a, double b, double c) {
return c;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return c;
}
def code(x, y, z, t, a, b, c): return c
function code(x, y, z, t, a, b, c) return c end
function tmp = code(x, y, z, t, a, b, c) tmp = c; end
code[x_, y_, z_, t_, a_, b_, c_] := c
\begin{array}{l}
\\
c
\end{array}
Initial program 98.0%
Taylor expanded in x around inf 51.2%
Taylor expanded in x around 0 24.1%
Final simplification24.1%
herbie shell --seed 2024059
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, C"
:precision binary64
(+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))