QuantEcon / lecture-source-py

Source files for "Lectures in Quantitative Economics" -- Python version
BSD 3-Clause "New" or "Revised" License
191 stars 77 forks source link

functions_issue #932

Closed sayaikegawa closed 4 years ago

sayaikegawa commented 4 years ago

Hi @jstac , I found that count in exercise 3 cannot calculate correctly because if U>=0.5, "count" become 0, not "count + 0". It means once U>=0.5, "count" restart to count from 0. So I put bracket in this.

jstac commented 4 years ago

Hi @sayaikegawa, I think the original code is correct. Are you sure that it's wrong?

jstac commented 4 years ago

I discussed this with @Harveyt47 and we're confident the existing code is correct. I'm closing this PR.