Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\left(\frac{x}{2} + y \cdot x\right) + z
\]
↓
\[\left(\frac{x}{2} + x \cdot y\right) + z
\]
(FPCore (x y z) :precision binary64 (+ (+ (/ x 2.0) (* y x)) z)) ↓
(FPCore (x y z) :precision binary64 (+ (+ (/ x 2.0) (* x y)) z)) double code(double x, double y, double z) {
return ((x / 2.0) + (y * x)) + z;
}
↓
double code(double x, double y, double z) {
return ((x / 2.0) + (x * y)) + 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 / 2.0d0) + (y * x)) + 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 / 2.0d0) + (x * y)) + z
end function
public static double code(double x, double y, double z) {
return ((x / 2.0) + (y * x)) + z;
}
↓
public static double code(double x, double y, double z) {
return ((x / 2.0) + (x * y)) + z;
}
def code(x, y, z):
return ((x / 2.0) + (y * x)) + z
↓
def code(x, y, z):
return ((x / 2.0) + (x * y)) + z
function code(x, y, z)
return Float64(Float64(Float64(x / 2.0) + Float64(y * x)) + z)
end
↓
function code(x, y, z)
return Float64(Float64(Float64(x / 2.0) + Float64(x * y)) + z)
end
function tmp = code(x, y, z)
tmp = ((x / 2.0) + (y * x)) + z;
end
↓
function tmp = code(x, y, z)
tmp = ((x / 2.0) + (x * y)) + z;
end
code[x_, y_, z_] := N[(N[(N[(x / 2.0), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]
↓
code[x_, y_, z_] := N[(N[(N[(x / 2.0), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]
\left(\frac{x}{2} + y \cdot x\right) + z
↓
\left(\frac{x}{2} + x \cdot y\right) + z
Alternatives Alternative 1 Error 28.2 Cost 984
\[\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+24}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq -2.85 \cdot 10^{-307}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-250}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-107}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-27}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 1.26 \cdot 10^{+18}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\]
Alternative 2 Error 14.8 Cost 584
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+99}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+55}:\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\]
Alternative 3 Error 10.3 Cost 584
\[\begin{array}{l}
t_0 := x \cdot \left(y + 0.5\right)\\
\mathbf{if}\;x \leq -1.42 \cdot 10^{+16}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+115}:\\
\;\;\;\;x \cdot y + z\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 4 Error 0.7 Cost 584
\[\begin{array}{l}
t_0 := x \cdot y + z\\
\mathbf{if}\;y \leq -0.5:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-13}:\\
\;\;\;\;\frac{x}{2} + z\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 5 Error 26.7 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.6 \cdot 10^{+47}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+102}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5\\
\end{array}
\]
Alternative 6 Error 0.0 Cost 448
\[z + x \cdot \left(y + 0.5\right)
\]
Alternative 7 Error 34.6 Cost 64
\[z
\]