Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
\]
↓
\[x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
\]
(FPCore (x y z) :precision binary64 (+ (* x 0.5) (* y (+ (- 1.0 z) (log z))))) ↓
(FPCore (x y z) :precision binary64 (+ (* x 0.5) (* y (+ (- 1.0 z) (log z))))) double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + log(z)));
}
↓
double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + log(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 * 0.5d0) + (y * ((1.0d0 - z) + log(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 * 0.5d0) + (y * ((1.0d0 - z) + log(z)))
end function
public static double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + Math.log(z)));
}
↓
public static double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + Math.log(z)));
}
def code(x, y, z):
return (x * 0.5) + (y * ((1.0 - z) + math.log(z)))
↓
def code(x, y, z):
return (x * 0.5) + (y * ((1.0 - z) + math.log(z)))
function code(x, y, z)
return Float64(Float64(x * 0.5) + Float64(y * Float64(Float64(1.0 - z) + log(z))))
end
↓
function code(x, y, z)
return Float64(Float64(x * 0.5) + Float64(y * Float64(Float64(1.0 - z) + log(z))))
end
function tmp = code(x, y, z)
tmp = (x * 0.5) + (y * ((1.0 - z) + log(z)));
end
↓
function tmp = code(x, y, z)
tmp = (x * 0.5) + (y * ((1.0 - z) + log(z)));
end
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] + N[(y * N[(N[(1.0 - z), $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] + N[(y * N[(N[(1.0 - z), $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
↓
x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
Alternatives Alternative 1 Error 10.4 Cost 7113
\[\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+79} \lor \neg \left(y \leq 4.6 \cdot 10^{+50}\right):\\
\;\;\;\;y \cdot \left(\left(1 + \log z\right) - z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\end{array}
\]
Alternative 2 Error 10.5 Cost 7112
\[\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+82}:\\
\;\;\;\;y + y \cdot \left(\log z - z\right)\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+51}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + \log z\right) - z\right)\\
\end{array}
\]
Alternative 3 Error 1.1 Cost 7108
\[\begin{array}{l}
\mathbf{if}\;z \leq 5 \cdot 10^{-8}:\\
\;\;\;\;x \cdot 0.5 + y \cdot \left(1 + \log z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\end{array}
\]
Alternative 4 Error 14.3 Cost 6985
\[\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+126} \lor \neg \left(y \leq 6 \cdot 10^{+122}\right):\\
\;\;\;\;y \cdot \left(1 + \log z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\end{array}
\]
Alternative 5 Error 14.3 Cost 6984
\[\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+126}:\\
\;\;\;\;y + y \cdot \log z\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+122}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(1 + \log z\right)\\
\end{array}
\]
Alternative 6 Error 29.7 Cost 653
\[\begin{array}{l}
\mathbf{if}\;z \leq 4.3 \cdot 10^{+21} \lor \neg \left(z \leq 2.9 \cdot 10^{+48}\right) \land z \leq 4 \cdot 10^{+101}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\end{array}
\]
Alternative 7 Error 18.5 Cost 448
\[x \cdot 0.5 - y \cdot z
\]
Alternative 8 Error 35.0 Cost 192
\[x \cdot 0.5
\]
Alternative 9 Error 62.7 Cost 64
\[y
\]