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 * log(y)) + (z * log((1.0d0 - y)))) - t
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 * log(y)) + (z * (-y + ((-0.5d0) * (y ** 2.0d0))))) - t
end function
public static double code(double x, double y, double z, double t) {
return ((x * Math.log(y)) + (z * Math.log((1.0 - y)))) - t;
}
↓
public static double code(double x, double y, double z, double t) {
return ((x * Math.log(y)) + (z * (-y + (-0.5 * Math.pow(y, 2.0))))) - t;
}
def code(x, y, z, t):
return ((x * math.log(y)) + (z * math.log((1.0 - y)))) - t
↓
def code(x, y, z, t):
return ((x * math.log(y)) + (z * (-y + (-0.5 * math.pow(y, 2.0))))) - t
function code(x, y, z, t)
return Float64(Float64(Float64(x * log(y)) + Float64(z * log(Float64(1.0 - y)))) - t)
end
↓
function code(x, y, z, t)
return Float64(Float64(Float64(x * log(y)) + Float64(z * Float64(Float64(-y) + Float64(-0.5 * (y ^ 2.0))))) - t)
end
function tmp = code(x, y, z, t)
tmp = ((x * log(y)) + (z * log((1.0 - y)))) - t;
end
↓
function tmp = code(x, y, z, t)
tmp = ((x * log(y)) + (z * (-y + (-0.5 * (y ^ 2.0))))) - t;
end