And another approach, using a fairly general Approximate Ratio subroutine, at:
Approximate Ratio
For more information, see the wiki Searching the Forum for Answers section.