Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x
\]
↓
\[\left(z + x \cdot 3\right) - y \cdot -2
\]
(FPCore (x y z) :precision binary64 (+ (+ (+ (+ (+ x y) y) x) z) x)) ↓
(FPCore (x y z) :precision binary64 (- (+ z (* x 3.0)) (* y -2.0))) double code(double x, double y, double z) {
return ((((x + y) + y) + x) + z) + x;
}
↓
double code(double x, double y, double z) {
return (z + (x * 3.0)) - (y * -2.0);
}
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) + y) + x) + z) + x
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 = (z + (x * 3.0d0)) - (y * (-2.0d0))
end function
public static double code(double x, double y, double z) {
return ((((x + y) + y) + x) + z) + x;
}
↓
public static double code(double x, double y, double z) {
return (z + (x * 3.0)) - (y * -2.0);
}
def code(x, y, z):
return ((((x + y) + y) + x) + z) + x
↓
def code(x, y, z):
return (z + (x * 3.0)) - (y * -2.0)
function code(x, y, z)
return Float64(Float64(Float64(Float64(Float64(x + y) + y) + x) + z) + x)
end
↓
function code(x, y, z)
return Float64(Float64(z + Float64(x * 3.0)) - Float64(y * -2.0))
end
function tmp = code(x, y, z)
tmp = ((((x + y) + y) + x) + z) + x;
end
↓
function tmp = code(x, y, z)
tmp = (z + (x * 3.0)) - (y * -2.0);
end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] + y), $MachinePrecision] + x), $MachinePrecision] + z), $MachinePrecision] + x), $MachinePrecision]
↓
code[x_, y_, z_] := N[(N[(z + N[(x * 3.0), $MachinePrecision]), $MachinePrecision] - N[(y * -2.0), $MachinePrecision]), $MachinePrecision]
\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x
↓
\left(z + x \cdot 3\right) - y \cdot -2