Solve spinodal and binodal curves using Julia