Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(\frac{2}{3} - z\right)
\]
↓
\[x + \left(y - x\right) \cdot \left(4 + -6 \cdot z\right)
\]
(FPCore (x y z)
:precision binary64
(+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z)))) ↓
(FPCore (x y z) :precision binary64 (+ x (* (- y x) (+ 4.0 (* -6.0 z))))) double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
↓
double code(double x, double y, double z) {
return x + ((y - x) * (4.0 + (-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) * ((2.0d0 / 3.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) * (4.0d0 + ((-6.0d0) * z)))
end function
public static double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
↓
public static double code(double x, double y, double z) {
return x + ((y - x) * (4.0 + (-6.0 * z)));
}
def code(x, y, z):
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z))
↓
def code(x, y, z):
return x + ((y - x) * (4.0 + (-6.0 * z)))
function code(x, y, z)
return Float64(x + Float64(Float64(Float64(y - x) * 6.0) * Float64(Float64(2.0 / 3.0) - z)))
end
↓
function code(x, y, z)
return Float64(x + Float64(Float64(y - x) * Float64(4.0 + Float64(-6.0 * z))))
end
function tmp = code(x, y, z)
tmp = x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
end
↓
function tmp = code(x, y, z)
tmp = x + ((y - x) * (4.0 + (-6.0 * z)));
end
code[x_, y_, z_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision] * N[(N[(2.0 / 3.0), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(4.0 + N[(-6.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(\frac{2}{3} - z\right)
↓
x + \left(y - x\right) \cdot \left(4 + -6 \cdot z\right)
Alternatives Alternative 1 Error 32.0 Cost 1508
\[\begin{array}{l}
t_0 := 6 \cdot \left(z \cdot x\right)\\
\mathbf{if}\;z \leq -0.98:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-68}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-207}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-280}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-235}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-227}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-167}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-101}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 0.68:\\
\;\;\;\;4 \cdot y\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 2 Error 32.0 Cost 1508
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.98:\\
\;\;\;\;x \cdot \left(z \cdot 6\right)\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-68}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-207}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-279}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-236}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-227}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-164}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-100}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 0.68:\\
\;\;\;\;4 \cdot y\\
\mathbf{else}:\\
\;\;\;\;6 \cdot \left(z \cdot x\right)\\
\end{array}
\]
Alternative 3 Error 32.0 Cost 1504
\[\begin{array}{l}
t_0 := x \cdot \left(-3 + 6 \cdot z\right)\\
t_1 := x + y \cdot \left(z \cdot -6\right)\\
\mathbf{if}\;z \leq -4.7 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-68}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-207}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-280}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-236}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-225}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-165}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+90}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 32.0 Cost 1504
\[\begin{array}{l}
t_0 := x \cdot \left(-3 + 6 \cdot z\right)\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{+22}:\\
\;\;\;\;x + \left(y \cdot z\right) \cdot -6\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-68}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-207}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-280}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-238}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-228}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-165}:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+89}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(z \cdot -6\right)\\
\end{array}
\]
Alternative 5 Error 13.0 Cost 844
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.96:\\
\;\;\;\;x + \left(y \cdot z\right) \cdot -6\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-9}:\\
\;\;\;\;4 \cdot y + x \cdot -3\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+86}:\\
\;\;\;\;x \cdot \left(-3 + 6 \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(z \cdot -6\right)\\
\end{array}
\]
Alternative 6 Error 1.7 Cost 840
\[\begin{array}{l}
t_0 := x + -6 \cdot \left(z \cdot \left(y - x\right)\right)\\
\mathbf{if}\;z \leq -0.66:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 0.65:\\
\;\;\;\;4 \cdot y + x \cdot -3\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 7 Error 1.8 Cost 840
\[\begin{array}{l}
t_0 := \frac{\left(y - x\right) \cdot \left(z \cdot -12\right)}{2}\\
\mathbf{if}\;z \leq -0.58:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 0.64:\\
\;\;\;\;4 \cdot y + x \cdot -3\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 8 Error 22.6 Cost 712
\[\begin{array}{l}
\mathbf{if}\;y \leq -61000:\\
\;\;\;\;4 \cdot y\\
\mathbf{elif}\;y \leq 2100000000000:\\
\;\;\;\;x \cdot \left(-3 + 6 \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;4 \cdot y\\
\end{array}
\]
Alternative 9 Error 0.4 Cost 704
\[x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(0.6666666666666666 - z\right)
\]
Alternative 10 Error 33.9 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{+64}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{-20}:\\
\;\;\;\;4 \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot -3\\
\end{array}
\]
Alternative 11 Error 43.2 Cost 192
\[4 \cdot y
\]
Alternative 12 Error 62.4 Cost 64
\[x
\]