davidrpugh / assortative-matching-large-firms

Code for solving Eeckhout and Kircher model of assortative matching between heterogenous firms and workers.
MIT License
3 stars 8 forks source link

Using SymPy to solve for the roots of your cubic #11

Open davidrpugh opened 10 years ago

davidrpugh commented 10 years ago

@crisla

Apparently you can use SymPy to solve for the roots of the cubic polynomial in terms of the trigonometric functions! This might simplify your code a bit.

crisla commented 9 years ago

It looks just what I needed! I knew that there should be a function somewhere on SymPy.