\[\frac{x}{y} + \frac{2 + \left(z \cdot 2\right) \cdot \left(1 - t\right)}{t \cdot z}
\]
↓
\[\frac{x}{y} + \left(-2 + \frac{2 + \frac{2}{z}}{t}\right)
\]
(FPCore (x y z t)
:precision binary64
(+ (/ x y) (/ (+ 2.0 (* (* z 2.0) (- 1.0 t))) (* t z))))
↓
(FPCore (x y z t)
:precision binary64
(+ (/ x y) (+ -2.0 (/ (+ 2.0 (/ 2.0 z)) t))))
double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
}
↓
double code(double x, double y, double z, double t) {
return (x / y) + (-2.0 + ((2.0 + (2.0 / z)) / 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) + ((2.0d0 + ((z * 2.0d0) * (1.0d0 - t))) / (t * z))
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) + ((-2.0d0) + ((2.0d0 + (2.0d0 / z)) / t))
end function
public static double code(double x, double y, double z, double t) {
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
}
↓
public static double code(double x, double y, double z, double t) {
return (x / y) + (-2.0 + ((2.0 + (2.0 / z)) / t));
}
def code(x, y, z, t):
return (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z))
↓
def code(x, y, z, t):
return (x / y) + (-2.0 + ((2.0 + (2.0 / z)) / t))
function code(x, y, z, t)
return Float64(Float64(x / y) + Float64(Float64(2.0 + Float64(Float64(z * 2.0) * Float64(1.0 - t))) / Float64(t * z)))
end
↓
function code(x, y, z, t)
return Float64(Float64(x / y) + Float64(-2.0 + Float64(Float64(2.0 + Float64(2.0 / z)) / t)))
end
function tmp = code(x, y, z, t)
tmp = (x / y) + ((2.0 + ((z * 2.0) * (1.0 - t))) / (t * z));
end
↓
function tmp = code(x, y, z, t)
tmp = (x / y) + (-2.0 + ((2.0 + (2.0 / z)) / t));
end
code[x_, y_, z_, t_] := N[(N[(x / y), $MachinePrecision] + N[(N[(2.0 + N[(N[(z * 2.0), $MachinePrecision] * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := N[(N[(x / y), $MachinePrecision] + N[(-2.0 + N[(N[(2.0 + N[(2.0 / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x}{y} + \frac{2 + \left(z \cdot 2\right) \cdot \left(1 - t\right)}{t \cdot z}
↓
\frac{x}{y} + \left(-2 + \frac{2 + \frac{2}{z}}{t}\right)
Alternatives
| Alternative 1 |
|---|
| Error | 0.7 |
|---|
| Cost | 969 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -95 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{z \cdot t}\right)\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 19.8 |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -8.5 \cdot 10^{+14} \lor \neg \left(\frac{x}{y} \leq 4.7 \cdot 10^{+26}\right):\\
\;\;\;\;\frac{x}{y} + -2\\
\mathbf{else}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 12.3 |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+36} \lor \neg \left(t \leq 13500000\right):\\
\;\;\;\;\frac{x}{y} + -2\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{z + 1}{z \cdot t}\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 12.2 |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+36} \lor \neg \left(t \leq 1500000\right):\\
\;\;\;\;\frac{x}{y} + -2\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t} \cdot \frac{z + 1}{z}\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 12.8 |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{-263} \lor \neg \left(z \leq 1.25 \cdot 10^{-25}\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{z + 1}{z \cdot t}\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 6.9 |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{-119} \lor \neg \left(z \leq 0.18\right):\\
\;\;\;\;\frac{x}{y} + \left(-2 + \frac{2}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} + \frac{2}{z \cdot t}\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 19.7 |
|---|
| Cost | 840 |
|---|
\[\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -85000000000000:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 7 \cdot 10^{+26}:\\
\;\;\;\;-2 + \frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 35.0 |
|---|
| Cost | 712 |
|---|
\[\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1.6 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{elif}\;\frac{x}{y} \leq 1.9 \cdot 10^{+27}:\\
\;\;\;\;\frac{2}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 48.9 |
|---|
| Cost | 192 |
|---|
\[\frac{2}{t}
\]