\[\left(\left(x \cdot y + z \cdot z\right) + z \cdot z\right) + z \cdot z
\]
↓
\[y \cdot x + z \cdot \left(z \cdot 3\right)
\]
(FPCore (x y z)
:precision binary64
(+ (+ (+ (* x y) (* z z)) (* z z)) (* z z)))
↓
(FPCore (x y z) :precision binary64 (+ (* y x) (* z (* z 3.0))))
double code(double x, double y, double z) {
return (((x * y) + (z * z)) + (z * z)) + (z * z);
}
↓
double code(double x, double y, double z) {
return (y * x) + (z * (z * 3.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) + (z * z)) + (z * z)) + (z * z)
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 * x) + (z * (z * 3.0d0))
end function
public static double code(double x, double y, double z) {
return (((x * y) + (z * z)) + (z * z)) + (z * z);
}
↓
public static double code(double x, double y, double z) {
return (y * x) + (z * (z * 3.0));
}
def code(x, y, z):
return (((x * y) + (z * z)) + (z * z)) + (z * z)
↓
def code(x, y, z):
return (y * x) + (z * (z * 3.0))
function code(x, y, z)
return Float64(Float64(Float64(Float64(x * y) + Float64(z * z)) + Float64(z * z)) + Float64(z * z))
end
↓
function code(x, y, z)
return Float64(Float64(y * x) + Float64(z * Float64(z * 3.0)))
end
function tmp = code(x, y, z)
tmp = (((x * y) + (z * z)) + (z * z)) + (z * z);
end
↓
function tmp = code(x, y, z)
tmp = (y * x) + (z * (z * 3.0));
end