Reference 〉 Function

Utility.mrs(good1str, q1num, good2str, q2num)

Calculates the marginal rate of substitution between two goods. Subclasses are required to implement this method.

Parameters

  • good1 str, required

    The name of the first good.

  • q1 num, required

    The current quantity of the first good.

  • good2 str, required

    The name of the second good.

  • q2 num, required

    The current quantity of the second good.

Return Value num

The marginal rate of substitution between good1 and good2.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.