Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x + \left(y - z\right) \cdot \left(t - x\right)
\]
↓
\[\left(x + \left(y - z\right) \cdot t\right) + \left(z - y\right) \cdot x
\]
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x)))) ↓
(FPCore (x y z t) :precision binary64 (+ (+ x (* (- y z) t)) (* (- z y) x))) double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
↓
double code(double x, double y, double z, double t) {
return (x + ((y - z) * t)) + ((z - y) * x);
}
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 - x))
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)) + ((z - y) * x)
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
↓
public static double code(double x, double y, double z, double t) {
return (x + ((y - z) * t)) + ((z - y) * x);
}
def code(x, y, z, t):
return x + ((y - z) * (t - x))
↓
def code(x, y, z, t):
return (x + ((y - z) * t)) + ((z - y) * x)
function code(x, y, z, t)
return Float64(x + Float64(Float64(y - z) * Float64(t - x)))
end
↓
function code(x, y, z, t)
return Float64(Float64(x + Float64(Float64(y - z) * t)) + Float64(Float64(z - y) * x))
end
function tmp = code(x, y, z, t)
tmp = x + ((y - z) * (t - x));
end
↓
function tmp = code(x, y, z, t)
tmp = (x + ((y - z) * t)) + ((z - y) * x);
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(N[(z - y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]
x + \left(y - z\right) \cdot \left(t - x\right)
↓
\left(x + \left(y - z\right) \cdot t\right) + \left(z - y\right) \cdot x
Alternatives Alternative 1 Error 39.8 Cost 1180
\[\begin{array}{l}
t_1 := -y \cdot x\\
\mathbf{if}\;y \leq -45000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -6 \cdot 10^{-143}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{-262}:\\
\;\;\;\;-t \cdot z\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-20}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+32}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+222}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 25.1 Cost 1112
\[\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
t_2 := \left(1 + z\right) \cdot x\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-147}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{-237}:\\
\;\;\;\;-t \cdot z\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-287}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-262}:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 20.4 Cost 1112
\[\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
t_2 := y \cdot t + x\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.45 \cdot 10^{+27}:\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{elif}\;z \leq -6 \cdot 10^{-39}:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-169}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-308}:\\
\;\;\;\;\left(1 - y\right) \cdot x\\
\mathbf{elif}\;z \leq 280:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 30.2 Cost 980
\[\begin{array}{l}
t_1 := t \cdot \left(y - z\right)\\
t_2 := -y \cdot x\\
\mathbf{if}\;x \leq -1.2 \cdot 10^{+33}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-102}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 0.00027:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+73}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 5 Error 11.8 Cost 976
\[\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
t_2 := x + t_1\\
t_3 := y \cdot \left(t - x\right)\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -7.4 \cdot 10^{+30}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+20}:\\
\;\;\;\;t_3 + x\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 6 Error 11.7 Cost 976
\[\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
t_2 := x + t_1\\
\mathbf{if}\;z \leq -1.9 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -7.4 \cdot 10^{+30}:\\
\;\;\;\;y \cdot t + \left(-y \cdot x\right)\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+18}:\\
\;\;\;\;y \cdot \left(t - x\right) + x\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 7 Error 38.6 Cost 916
\[\begin{array}{l}
t_1 := -t \cdot z\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{-38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-107}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-64}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{-9}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+185}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot x\\
\end{array}
\]
Alternative 8 Error 29.6 Cost 848
\[\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.45 \cdot 10^{-147}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-261}:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-24}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 9 Error 23.7 Cost 848
\[\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
t_2 := \left(1 + z\right) \cdot x\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-141}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-262}:\\
\;\;\;\;\left(x - t\right) \cdot z\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 10 Error 19.0 Cost 716
\[\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -9.8 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-201}:\\
\;\;\;\;x + \left(-t \cdot z\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-16}:\\
\;\;\;\;\left(1 + z\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 11 Error 10.9 Cost 712
\[\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-17}:\\
\;\;\;\;x + \left(x - t\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 12 Error 0.0 Cost 576
\[x + \left(y - z\right) \cdot \left(t - x\right)
\]
Alternative 13 Error 37.8 Cost 456
\[\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{-19}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-18}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot t\\
\end{array}
\]
Alternative 14 Error 47.5 Cost 64
\[x
\]