\[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\]
↓
\[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\]
(FPCore (x y z t a b c i)
:precision binary64
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
↓
(FPCore (x y z t a b c i)
:precision binary64
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * i);
}
↓
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * 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 * t)) + (a * b)) + (c * i)
end function
↓
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 * t)) + (a * b)) + (c * 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 * t)) + (a * b)) + (c * i);
}
↓
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i):
return (((x * y) + (z * t)) + (a * b)) + (c * i)
↓
def code(x, y, z, t, a, b, c, i):
return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i)
return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i))
end
↓
function code(x, y, z, t, a, b, c, i)
return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i))
end
function tmp = code(x, y, z, t, a, b, c, i)
tmp = (((x * y) + (z * t)) + (a * b)) + (c * i);
end
↓
function tmp = code(x, y, z, t, a, b, c, i)
tmp = (((x * y) + (z * t)) + (a * b)) + (c * i);
end
\[\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -6.2 \cdot 10^{+15}:\\
\;\;\;\;c \cdot i + a \cdot b\\
\mathbf{elif}\;c \cdot i \leq 7.5 \cdot 10^{+61}:\\
\;\;\;\;a \cdot b + \left(y \cdot x + t \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot z + c \cdot i\\
\end{array}
\]
Alternative 10
Error
6.4
Cost
1224
\[\begin{array}{l}
t_1 := y \cdot x + t \cdot z\\
t_2 := c \cdot i + t_1\\
\mathbf{if}\;c \cdot i \leq -2100000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \cdot i \leq 4.5 \cdot 10^{-32}:\\
\;\;\;\;a \cdot b + t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 11
Error
6.7
Cost
1224
\[\begin{array}{l}
t_1 := y \cdot x + t \cdot z\\
\mathbf{if}\;c \cdot i \leq -5.5 \cdot 10^{+14}:\\
\;\;\;\;\left(a \cdot b + y \cdot x\right) + c \cdot i\\
\mathbf{elif}\;c \cdot i \leq 1.05 \cdot 10^{-31}:\\
\;\;\;\;a \cdot b + t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + t_1\\
\end{array}
\]
herbie shell --seed 2023077
(FPCore (x y z t a b c i)
:name "Linear.V4:$cdot from linear-1.19.1.3, C"
:precision binary64
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))