Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{x}{y} \cdot \left(z - t\right) + t
\]
↓
\[\frac{z - t}{\frac{y}{x}} + t
\]
(FPCore (x y z t) :precision binary64 (+ (* (/ x y) (- z t)) t)) ↓
(FPCore (x y z t) :precision binary64 (+ (/ (- z t) (/ y x)) t)) double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
↓
double code(double x, double y, double z, double t) {
return ((z - t) / (y / x)) + t;
}
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)) + t
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 = ((z - t) / (y / x)) + t
end function
public static double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
↓
public static double code(double x, double y, double z, double t) {
return ((z - t) / (y / x)) + t;
}
def code(x, y, z, t):
return ((x / y) * (z - t)) + t
↓
def code(x, y, z, t):
return ((z - t) / (y / x)) + t
function code(x, y, z, t)
return Float64(Float64(Float64(x / y) * Float64(z - t)) + t)
end
↓
function code(x, y, z, t)
return Float64(Float64(Float64(z - t) / Float64(y / x)) + t)
end
function tmp = code(x, y, z, t)
tmp = ((x / y) * (z - t)) + t;
end
↓
function tmp = code(x, y, z, t)
tmp = ((z - t) / (y / x)) + t;
end
code[x_, y_, z_, t_] := N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]
↓
code[x_, y_, z_, t_] := N[(N[(N[(z - t), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]
\frac{x}{y} \cdot \left(z - t\right) + t
↓
\frac{z - t}{\frac{y}{x}} + t
Alternatives Alternative 1 Error 23.0 Cost 1944
\[\begin{array}{l}
t_1 := t \cdot \left(-\frac{x}{y}\right)\\
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+96}:\\
\;\;\;\;\frac{z \cdot x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -2 \cdot 10^{+41}:\\
\;\;\;\;-\frac{t \cdot x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -4 \cdot 10^{-6}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.04:\\
\;\;\;\;t\\
\mathbf{elif}\;\frac{x}{y} \leq 2 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{x}{y} \leq 5 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 22.8 Cost 1684
\[\begin{array}{l}
t_1 := t \cdot \left(-\frac{x}{y}\right)\\
\mathbf{if}\;\frac{x}{y} \leq -4 \cdot 10^{+163}:\\
\;\;\;\;x \cdot \frac{-t}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -4 \cdot 10^{-6}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.04:\\
\;\;\;\;t\\
\mathbf{elif}\;\frac{x}{y} \leq 2 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{x}{y} \leq 5 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 22.8 Cost 1684
\[\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -4 \cdot 10^{+163}:\\
\;\;\;\;x \cdot \frac{-t}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -4 \cdot 10^{-6}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 0.04:\\
\;\;\;\;t\\
\mathbf{elif}\;\frac{x}{y} \leq 2 \cdot 10^{+32}:\\
\;\;\;\;t \cdot \left(-\frac{x}{y}\right)\\
\mathbf{elif}\;\frac{x}{y} \leq 5 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{-t}{\frac{y}{x}}\\
\end{array}
\]
Alternative 4 Error 13.8 Cost 1684
\[\begin{array}{l}
t_1 := x \cdot \frac{z}{y}\\
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+96}:\\
\;\;\;\;\frac{z \cdot x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -1 \cdot 10^{+36}:\\
\;\;\;\;t \cdot \left(-\frac{x}{y}\right)\\
\mathbf{elif}\;\frac{x}{y} \leq 4 \cdot 10^{-5}:\\
\;\;\;\;t_1 + t\\
\mathbf{elif}\;\frac{x}{y} \leq 2 \cdot 10^{+32}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\mathbf{elif}\;\frac{x}{y} \leq 5 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{-t}{\frac{y}{x}}\\
\end{array}
\]
Alternative 5 Error 23.2 Cost 1424
\[\begin{array}{l}
t_1 := -\frac{t \cdot x}{y}\\
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+96}:\\
\;\;\;\;\frac{z \cdot x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq -2 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{x}{y} \leq -4 \cdot 10^{-6}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 2:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 22.1 Cost 840
\[\begin{array}{l}
t_1 := z \cdot \frac{x}{y}\\
\mathbf{if}\;\frac{x}{y} \leq -4 \cdot 10^{-6}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\frac{x}{y} \leq 10^{-37}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 22.0 Cost 840
\[\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -4 \cdot 10^{-6}:\\
\;\;\;\;\frac{z}{\frac{y}{x}}\\
\mathbf{elif}\;\frac{x}{y} \leq 10^{-37}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\end{array}
\]
Alternative 8 Error 18.3 Cost 712
\[\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{x}{y}\right)\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{-207}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.28 \cdot 10^{-191}:\\
\;\;\;\;z \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 9 Error 8.8 Cost 712
\[\begin{array}{l}
t_1 := z \cdot \frac{x}{y} + t\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-89}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 10 Error 27.1 Cost 584
\[\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{-207}:\\
\;\;\;\;t\\
\mathbf{elif}\;t \leq 10^{-150}:\\
\;\;\;\;x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\]
Alternative 11 Error 2.1 Cost 576
\[\frac{x}{y} \cdot \left(z - t\right) + t
\]
Alternative 12 Error 31.6 Cost 64
\[t
\]