Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{\left(x + y\right) - z}{t \cdot 2}
\]
↓
\[\frac{\left(x + y\right) - z}{t \cdot 2}
\]
(FPCore (x y z t) :precision binary64 (/ (- (+ x y) z) (* t 2.0))) ↓
(FPCore (x y z t) :precision binary64 (/ (- (+ x y) z) (* t 2.0))) double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
↓
double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x + y) - z) / (t * 2.0d0)
end function
↓
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x + y) - z) / (t * 2.0d0)
end function
public static double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
↓
public static double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
def code(x, y, z, t):
return ((x + y) - z) / (t * 2.0)
↓
def code(x, y, z, t):
return ((x + y) - z) / (t * 2.0)
function code(x, y, z, t)
return Float64(Float64(Float64(x + y) - z) / Float64(t * 2.0))
end
↓
function code(x, y, z, t)
return Float64(Float64(Float64(x + y) - z) / Float64(t * 2.0))
end
function tmp = code(x, y, z, t)
tmp = ((x + y) - z) / (t * 2.0);
end
↓
function tmp = code(x, y, z, t)
tmp = ((x + y) - z) / (t * 2.0);
end
code[x_, y_, z_, t_] := N[(N[(N[(x + y), $MachinePrecision] - z), $MachinePrecision] / N[(t * 2.0), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := N[(N[(N[(x + y), $MachinePrecision] - z), $MachinePrecision] / N[(t * 2.0), $MachinePrecision]), $MachinePrecision]
\frac{\left(x + y\right) - z}{t \cdot 2}
↓
\frac{\left(x + y\right) - z}{t \cdot 2}
Alternatives Alternative 1 Accuracy 44.6% Cost 1112
\[\begin{array}{l}
t_1 := \frac{x}{\frac{t}{0.5}}\\
t_2 := z \cdot \frac{-0.5}{t}\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{-39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.26 \cdot 10^{-243}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{y}{t}\\
\end{array}
\]
Alternative 2 Accuracy 44.7% Cost 1112
\[\begin{array}{l}
t_1 := \frac{x}{\frac{t}{0.5}}\\
t_2 := \frac{z \cdot -0.5}{t}\\
\mathbf{if}\;x \leq -3.5 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-236}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{y}{t}\\
\end{array}
\]
Alternative 3 Accuracy 78.8% Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -6.6 \cdot 10^{+109} \lor \neg \left(z \leq 2.9 \cdot 10^{+42}\right):\\
\;\;\;\;\frac{z \cdot -0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x + y}{t}\\
\end{array}
\]
Alternative 4 Accuracy 84.8% Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.95 \cdot 10^{+61} \lor \neg \left(z \leq 2.3 \cdot 10^{+14}\right):\\
\;\;\;\;\frac{-0.5}{t} \cdot \left(z - x\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x + y}{t}\\
\end{array}
\]
Alternative 5 Accuracy 53.1% Cost 585
\[\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+61} \lor \neg \left(z \leq 1.65 \cdot 10^{+17}\right):\\
\;\;\;\;z \cdot \frac{-0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{y}{t}\\
\end{array}
\]
Alternative 6 Accuracy 77.0% Cost 580
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.26 \cdot 10^{-48}:\\
\;\;\;\;\frac{-0.5}{t} \cdot \left(z - x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.5}{\frac{t}{z - y}}\\
\end{array}
\]
Alternative 7 Accuracy 99.6% Cost 576
\[\left(z - \left(x + y\right)\right) \cdot \frac{-0.5}{t}
\]
Alternative 8 Accuracy 35.7% Cost 320
\[0.5 \cdot \frac{y}{t}
\]