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


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.



Thanks Chris!

Good catch.

Fixed as follows:

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

Regards, John.