Question on Solow class (Python Essentials - Object Oriented Programming)


#1

In the definition of the Solow class a function h is defined as follows:

 def h(self,x):
        "Evaluate the h function"
        temp = self.s * self.z * self.k**self.alpha + self.k * (1 - self.d)
        return temp / (1 + self.n)

I think it makes more sense to replace self.k by x in the function body or otherwise drop the x formal argument altogether.

Chris


#2

Thanks Chris!

Good catch.

Fixed as follows:

https://github.com/QuantEcon/QuantEcon.applications/commit/6f9b287f7aab175cf25b93c0445a524b3f9095c8

The site will reflect the update after the next rebuild, in a few days.

Regards, John.