Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{x - y}{z - y}
\]
↓
\[\frac{y}{y - z} - \frac{x}{y - z}
\]
(FPCore (x y z) :precision binary64 (/ (- x y) (- z y))) ↓
(FPCore (x y z) :precision binary64 (- (/ y (- y z)) (/ x (- y z)))) double code(double x, double y, double z) {
return (x - y) / (z - y);
}
↓
double code(double x, double y, double z) {
return (y / (y - z)) - (x / (y - 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) / (z - y)
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 = (y / (y - z)) - (x / (y - z))
end function
public static double code(double x, double y, double z) {
return (x - y) / (z - y);
}
↓
public static double code(double x, double y, double z) {
return (y / (y - z)) - (x / (y - z));
}
def code(x, y, z):
return (x - y) / (z - y)
↓
def code(x, y, z):
return (y / (y - z)) - (x / (y - z))
function code(x, y, z)
return Float64(Float64(x - y) / Float64(z - y))
end
↓
function code(x, y, z)
return Float64(Float64(y / Float64(y - z)) - Float64(x / Float64(y - z)))
end
function tmp = code(x, y, z)
tmp = (x - y) / (z - y);
end
↓
function tmp = code(x, y, z)
tmp = (y / (y - z)) - (x / (y - z));
end
code[x_, y_, z_] := N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := N[(N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision] - N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x - y}{z - y}
↓
\frac{y}{y - z} - \frac{x}{y - z}
Alternatives Alternative 1 Error 16.0 Cost 1113
\[\begin{array}{l}
t_0 := \frac{x}{z - y}\\
t_1 := \frac{y}{y - z}\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-33}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.75 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-43}:\\
\;\;\;\;\frac{x - y}{z}\\
\mathbf{elif}\;x \leq 1.95 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+70} \lor \neg \left(x \leq 5.6 \cdot 10^{+160}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{x}{y}\\
\end{array}
\]
Alternative 2 Error 16.0 Cost 1113
\[\begin{array}{l}
t_0 := \frac{x}{z - y}\\
t_1 := \frac{y}{y - z}\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{-33}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-43}:\\
\;\;\;\;\frac{x}{z} - \frac{y}{z}\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{+72} \lor \neg \left(x \leq 5.4 \cdot 10^{+160}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{x}{y}\\
\end{array}
\]
Alternative 3 Error 19.6 Cost 850
\[\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{-17} \lor \neg \left(y \leq 3.2 \cdot 10^{-124}\right) \land \left(y \leq 1.65 \cdot 10^{-87} \lor \neg \left(y \leq 4 \cdot 10^{-47}\right)\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z}\\
\end{array}
\]
Alternative 4 Error 16.4 Cost 849
\[\begin{array}{l}
t_0 := \frac{x}{z - y}\\
\mathbf{if}\;x \leq -1.45 \cdot 10^{-33}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-61}:\\
\;\;\;\;\frac{y}{y - z}\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+67} \lor \neg \left(x \leq 5.1 \cdot 10^{+160}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{x}{y}\\
\end{array}
\]
Alternative 5 Error 15.8 Cost 585
\[\begin{array}{l}
\mathbf{if}\;y \leq -5.6 \cdot 10^{+28} \lor \neg \left(y \leq 2.4 \cdot 10^{-28}\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z - y}\\
\end{array}
\]
Alternative 6 Error 25.4 Cost 456
\[\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+32}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{-28}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 7 Error 0.0 Cost 448
\[\frac{x - y}{z - y}
\]
Alternative 8 Error 41.2 Cost 64
\[1
\]