Popular recipes tagged "calculation"http://code.activestate.com/recipes/tags/calculation/popular/2015-01-14T11:14:06-08:00ActiveState Code RecipesBader-Offer Method (Hagenbach-Bischoff) (JavaScript)
2015-01-14T11:14:06-08:00elazarhttp://code.activestate.com/recipes/users/4187847/http://code.activestate.com/recipes/579002-bader-offer-method-hagenbach-bischoff/
<p style="color: grey">
JavaScript
recipe 579002
by <a href="/recipes/users/4187847/">elazar</a>
(<a href="/recipes/tags/calculation/">calculation</a>).
</p>
<p>A recipe for calculating the seats allocated to each party in the Knesset.</p>
<p>More information:</p>
<ul>
<li><a href="http://www.knesset.gov.il/lexicon/eng/seats_eng.htm" rel="nofollow">http://www.knesset.gov.il/lexicon/eng/seats_eng.htm</a></li>
<li><a href="https://en.wikipedia.org/wiki/Hagenbach-Bischoff_system" rel="nofollow">https://en.wikipedia.org/wiki/Hagenbach-Bischoff_system</a></li>
<li>(Hebrew) <a href="http://bechirot.gov.il/election/about/Pages/CalculatingSeatsMethod.aspx" rel="nofollow">http://bechirot.gov.il/election/about/Pages/CalculatingSeatsMethod.aspx</a></li>
<li>(Hebrew) <a href="http://main.knesset.gov.il/About/Lexicon/Pages/seats.aspx" rel="nofollow">http://main.knesset.gov.il/About/Lexicon/Pages/seats.aspx</a></li>
</ul>
Bader-Offer Method (Hagenbach-Bischoff) (Python)
2014-02-13T04:33:19-08:00elazarhttp://code.activestate.com/recipes/users/4187847/http://code.activestate.com/recipes/578831-bader-offer-method-hagenbach-bischoff/
<p style="color: grey">
Python
recipe 578831
by <a href="/recipes/users/4187847/">elazar</a>
(<a href="/recipes/tags/calculation/">calculation</a>).
Revision 3.
</p>
<p>A recipe for calculating the seats allocated to each party in the Knesset.</p>
<p>More information:</p>
<ul>
<li><a href="http://www.knesset.gov.il/lexicon/eng/seats_eng.htm" rel="nofollow">http://www.knesset.gov.il/lexicon/eng/seats_eng.htm</a></li>
<li><a href="https://en.wikipedia.org/wiki/Hagenbach-Bischoff_system" rel="nofollow">https://en.wikipedia.org/wiki/Hagenbach-Bischoff_system</a></li>
<li>(Hebrew) <a href="http://www.bechirot.gov.il/elections19/heb/about/MandatesSystem.aspx" rel="nofollow">http://www.bechirot.gov.il/elections19/heb/about/MandatesSystem.aspx</a></li>
</ul>
Calculate Trailing Zeroes in a Factorial (Python)
2011-08-15T17:23:03-07:00Stijn de Graafhttp://code.activestate.com/recipes/users/4178055/http://code.activestate.com/recipes/577844-calculate-trailing-zeroes-in-a-factorial/
<p style="color: grey">
Python
recipe 577844
by <a href="/recipes/users/4178055/">Stijn de Graaf</a>
(<a href="/recipes/tags/calculate/">calculate</a>, <a href="/recipes/tags/calculation/">calculation</a>, <a href="/recipes/tags/factorial/">factorial</a>, <a href="/recipes/tags/trailing/">trailing</a>, <a href="/recipes/tags/zero/">zero</a>, <a href="/recipes/tags/zeroes/">zeroes</a>).
</p>
<p>Calculates the number of trailing zeroes on the end of x! when the user inputs x.</p>