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 + \frac{y - x}{\frac{-0.16666666666666666}{-0.6666666666666666 + z}}
\]
(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) (/ -0.16666666666666666 (+ -0.6666666666666666 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) / (-0.16666666666666666 / (-0.6666666666666666 + 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) / ((-0.16666666666666666d0) / ((-0.6666666666666666d0) + 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) / (-0.16666666666666666 / (-0.6666666666666666 + 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) / (-0.16666666666666666 / (-0.6666666666666666 + 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(-0.16666666666666666 / Float64(-0.6666666666666666 + 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) / (-0.16666666666666666 / (-0.6666666666666666 + 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[(-0.16666666666666666 / N[(-0.6666666666666666 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(\frac{2}{3} - z\right)
↓
x + \frac{y - x}{\frac{-0.16666666666666666}{-0.6666666666666666 + z}}
Alternatives Alternative 1 Error 33.0 Cost 849
\[\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{+58}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{+26}:\\
\;\;\;\;6 \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -0.66 \lor \neg \left(z \leq 0.66\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;y \cdot 4\\
\end{array}
\]
Alternative 2 Error 33.0 Cost 849
\[\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{+58}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -3 \cdot 10^{+24}:\\
\;\;\;\;x \cdot \left(z \cdot 6\right)\\
\mathbf{elif}\;z \leq -0.66 \lor \neg \left(z \leq 0.66\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;y \cdot 4\\
\end{array}
\]
Alternative 3 Error 33.0 Cost 849
\[\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+58}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{+28}:\\
\;\;\;\;z \cdot \left(x \cdot 6\right)\\
\mathbf{elif}\;z \leq -0.66 \lor \neg \left(z \leq 0.66\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;y \cdot 4\\
\end{array}
\]
Alternative 4 Error 33.0 Cost 848
\[\begin{array}{l}
t_0 := z \cdot \left(y \cdot -6\right)\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{+58}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{+26}:\\
\;\;\;\;z \cdot \left(x \cdot 6\right)\\
\mathbf{elif}\;z \leq -0.66:\\
\;\;\;\;-6 \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 0.66:\\
\;\;\;\;y \cdot 4\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 5 Error 21.3 Cost 844
\[\begin{array}{l}
t_0 := -6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{if}\;z \leq -700:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-287}:\\
\;\;\;\;x \cdot \left(-3 + z \cdot 6\right)\\
\mathbf{elif}\;z \leq 0.65:\\
\;\;\;\;y \cdot 4\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 6 Error 21.3 Cost 844
\[\begin{array}{l}
\mathbf{if}\;z \leq -700:\\
\;\;\;\;z \cdot \left(\left(y - x\right) \cdot -6\right)\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{-286}:\\
\;\;\;\;x \cdot \left(-3 + z \cdot 6\right)\\
\mathbf{elif}\;z \leq 0.62:\\
\;\;\;\;y \cdot 4\\
\mathbf{else}:\\
\;\;\;\;-6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\end{array}
\]
Alternative 7 Error 21.5 Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.19 \lor \neg \left(z \leq 0.66\right):\\
\;\;\;\;-6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot 4\\
\end{array}
\]
Alternative 8 Error 17.1 Cost 713
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.45 \cdot 10^{+15} \lor \neg \left(x \leq 2.9 \cdot 10^{-28}\right):\\
\;\;\;\;x \cdot \left(-3 + z \cdot 6\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(4 + z \cdot -6\right)\\
\end{array}
\]
Alternative 9 Error 1.9 Cost 712
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.52:\\
\;\;\;\;z \cdot \left(\left(y - x\right) \cdot -6\right)\\
\mathbf{elif}\;z \leq 0.55:\\
\;\;\;\;x \cdot -3 + y \cdot 4\\
\mathbf{else}:\\
\;\;\;\;-6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\end{array}
\]
Alternative 10 Error 0.4 Cost 704
\[x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(0.6666666666666666 - z\right)
\]
Alternative 11 Error 0.3 Cost 704
\[x + \left(-0.6666666666666666 + z\right) \cdot \frac{y - x}{-0.16666666666666666}
\]
Alternative 12 Error 32.8 Cost 585
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.66 \lor \neg \left(z \leq 0.66\right):\\
\;\;\;\;-6 \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot 4\\
\end{array}
\]
Alternative 13 Error 34.2 Cost 456
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{+127}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{-20}:\\
\;\;\;\;y \cdot 4\\
\mathbf{else}:\\
\;\;\;\;x \cdot -3\\
\end{array}
\]
Alternative 14 Error 43.2 Cost 192
\[y \cdot 4
\]