Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x + \left(\left(y - x\right) \cdot 6\right) \cdot z
\]
↓
\[x + \left(y - x\right) \cdot \left(6 \cdot z\right)
\]
(FPCore (x y z) :precision binary64 (+ x (* (* (- y x) 6.0) z))) ↓
(FPCore (x y z) :precision binary64 (+ x (* (- y x) (* 6.0 z)))) double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * z);
}
↓
double code(double x, double y, double z) {
return x + ((y - x) * (6.0 * z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + (((y - x) * 6.0d0) * z)
end function
↓
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((y - x) * (6.0d0 * z))
end function
public static double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * z);
}
↓
public static double code(double x, double y, double z) {
return x + ((y - x) * (6.0 * z));
}
def code(x, y, z):
return x + (((y - x) * 6.0) * z)
↓
def code(x, y, z):
return x + ((y - x) * (6.0 * z))
function code(x, y, z)
return Float64(x + Float64(Float64(Float64(y - x) * 6.0) * z))
end
↓
function code(x, y, z)
return Float64(x + Float64(Float64(y - x) * Float64(6.0 * z)))
end
function tmp = code(x, y, z)
tmp = x + (((y - x) * 6.0) * z);
end
↓
function tmp = code(x, y, z)
tmp = x + ((y - x) * (6.0 * z));
end
code[x_, y_, z_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(6.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(\left(y - x\right) \cdot 6\right) \cdot z
↓
x + \left(y - x\right) \cdot \left(6 \cdot z\right)
Alternatives Alternative 1 Error 24.4 Cost 1244
\[\begin{array}{l}
t_0 := y \cdot \left(6 \cdot z\right)\\
t_1 := x \cdot \left(z \cdot -6\right)\\
\mathbf{if}\;z \leq -14518.540134787778:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.0218201840965185 \cdot 10^{+23}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+154}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 24.4 Cost 1244
\[\begin{array}{l}
t_0 := y \cdot \left(6 \cdot z\right)\\
t_1 := x \cdot \left(z \cdot -6\right)\\
\mathbf{if}\;z \leq -14518.540134787778:\\
\;\;\;\;z \cdot \left(x \cdot -6\right)\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.0218201840965185 \cdot 10^{+23}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+154}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 24.4 Cost 1244
\[\begin{array}{l}
t_0 := x \cdot \left(z \cdot -6\right)\\
t_1 := y \cdot \left(6 \cdot z\right)\\
\mathbf{if}\;z \leq -14518.540134787778:\\
\;\;\;\;z \cdot \left(x \cdot -6\right)\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.0218201840965185 \cdot 10^{+23}:\\
\;\;\;\;6 \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+105}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 4 Error 24.4 Cost 1244
\[\begin{array}{l}
t_0 := x \cdot \left(z \cdot -6\right)\\
t_1 := y \cdot \left(6 \cdot z\right)\\
\mathbf{if}\;z \leq -14518.540134787778:\\
\;\;\;\;z \cdot \left(x \cdot -6\right)\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.0218201840965185 \cdot 10^{+23}:\\
\;\;\;\;z \cdot \left(y \cdot 6\right)\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+105}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 5 Error 12.8 Cost 976
\[\begin{array}{l}
t_0 := \left(y - x\right) \cdot \left(6 \cdot z\right)\\
\mathbf{if}\;z \leq -2.0902412021159908 \cdot 10^{-15}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 6 Error 12.9 Cost 976
\[\begin{array}{l}
t_0 := x + -6 \cdot \left(x \cdot z\right)\\
t_1 := \left(y - x\right) \cdot \left(6 \cdot z\right)\\
\mathbf{if}\;z \leq -7155596025991.485:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 12.9 Cost 976
\[\begin{array}{l}
t_0 := x + -6 \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -7155596025991.485:\\
\;\;\;\;6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \left(6 \cdot z\right)\\
\end{array}
\]
Alternative 8 Error 13.0 Cost 976
\[\begin{array}{l}
\mathbf{if}\;z \leq -7155596025991.485:\\
\;\;\;\;6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x + z \cdot \left(x \cdot -6\right)\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x + -6 \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \left(6 \cdot z\right)\\
\end{array}
\]
Alternative 9 Error 24.1 Cost 848
\[\begin{array}{l}
t_0 := y \cdot \left(6 \cdot z\right)\\
\mathbf{if}\;z \leq -7155596025991.485:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 3.8222155989673045 \cdot 10^{-176}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.715662097921712 \cdot 10^{-157}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 1.263832731022775 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 10 Error 1.2 Cost 712
\[\begin{array}{l}
\mathbf{if}\;z \leq -14518.540134787778:\\
\;\;\;\;6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{elif}\;z \leq 3.4403033977396004 \cdot 10^{-8}:\\
\;\;\;\;x + 6 \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \left(6 \cdot z\right)\\
\end{array}
\]
Alternative 11 Error 34.7 Cost 64
\[x
\]