testing input3 and input1, the result is around 0.71