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 Error 35.0 Cost 848
\[\begin{array}{l}
t_1 := \frac{-0.5}{\frac{t}{z}}\\
t_2 := x \cdot \frac{0.5}{t}\\
\mathbf{if}\;y \leq 7.2 \cdot 10^{-226}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-102}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{0.5}{t}\\
\end{array}
\]
Alternative 2 Error 35.0 Cost 848
\[\begin{array}{l}
t_1 := \frac{-0.5}{\frac{t}{z}}\\
t_2 := \frac{x}{\frac{t}{0.5}}\\
\mathbf{if}\;y \leq 7.2 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-79}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{0.5}{t}\\
\end{array}
\]
Alternative 3 Error 35.0 Cost 848
\[\begin{array}{l}
t_1 := \frac{-0.5}{\frac{t}{z}}\\
t_2 := \frac{x}{\frac{t}{0.5}}\\
\mathbf{if}\;y \leq 1.1 \cdot 10^{-228}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-102}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-79}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{t}{0.5}}\\
\end{array}
\]
Alternative 4 Error 35.0 Cost 848
\[\begin{array}{l}
t_1 := \frac{z \cdot -0.5}{t}\\
t_2 := \frac{x}{\frac{t}{0.5}}\\
\mathbf{if}\;y \leq 1.5 \cdot 10^{-226}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+43}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{t}{0.5}}\\
\end{array}
\]
Alternative 5 Error 15.7 Cost 844
\[\begin{array}{l}
t_1 := \frac{-0.5}{t} \cdot \left(z - x\right)\\
\mathbf{if}\;x \leq -2.45 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2 \cdot 10^{+19}:\\
\;\;\;\;0.5 \cdot \frac{x + y}{t}\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.5}{\frac{t}{z - y}}\\
\end{array}
\]
Alternative 6 Error 15.5 Cost 844
\[\begin{array}{l}
t_1 := \frac{-0.5 \cdot \left(z - x\right)}{t}\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+19}:\\
\;\;\;\;0.5 \cdot \frac{x + y}{t}\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.5}{\frac{t}{z - y}}\\
\end{array}
\]
Alternative 7 Error 13.4 Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{+74} \lor \neg \left(z \leq 1.62 \cdot 10^{+156}\right):\\
\;\;\;\;\frac{z \cdot -0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x + y}{t}\\
\end{array}
\]
Alternative 8 Error 14.8 Cost 580
\[\begin{array}{l}
\mathbf{if}\;y \leq 8.5 \cdot 10^{+42}:\\
\;\;\;\;\frac{-0.5}{t} \cdot \left(z - x\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x + y}{t}\\
\end{array}
\]
Alternative 9 Error 0.3 Cost 576
\[\left(z - \left(x + y\right)\right) \cdot \frac{-0.5}{t}
\]
Alternative 10 Error 35.3 Cost 452
\[\begin{array}{l}
\mathbf{if}\;y \leq 7.2 \cdot 10^{-32}:\\
\;\;\;\;x \cdot \frac{0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{0.5}{t}\\
\end{array}
\]
Alternative 11 Error 41.0 Cost 320
\[x \cdot \frac{0.5}{t}
\]