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