Obtaining the actual Vi curve instead of samples

Tried this out, but the answer that these are giving is deviating a lot from the expected answer.