Popular recipes tagged "meta:score=-6"http://code.activestate.com/recipes/tags/meta:score=-6/2011-02-02T12:53:01-08:00ActiveState Code RecipesA Python Code (Python)
2009-07-21T15:01:05-07:00Neo Gaohttp://code.activestate.com/recipes/users/4171175/http://code.activestate.com/recipes/576848-a-python-code/
<p style="color: grey">
Python
recipe 576848
by <a href="/recipes/users/4171175/">Neo Gao</a>
.
Revision 4.
</p>
<p>This is a blackjack game code that I have programed first. Welcome to test it. In the game, ace will be fixed as low (value=1). Thanks.</p>
EOQ (Python)
2009-02-17T03:20:33-08:00Fouad Teniouhttp://code.activestate.com/recipes/users/4155345/http://code.activestate.com/recipes/576651-eoq/
<p style="color: grey">
Python
recipe 576651
by <a href="/recipes/users/4155345/">Fouad Teniou</a>
(<a href="/recipes/tags/financial/">financial</a>, <a href="/recipes/tags/management/">management</a>).
Revision 3.
</p>
<p>Economic order quantity (EOQ) model is used in stock control by many companies rather than other stock control systems such as the Just-in-Time model.
Though, ACCA’s students will benefit from this program while preparing their ACCA course and exam in financial management towards their ACCA professional qualification, yet financial management professionals already holding posts within companies using this system will be able to compare different sets of item quantities and rates to reduce their company’s total cost of holding and ordering such items.</p>
Factorial-Lambda (Python)
2011-01-27T12:40:22-08:00Fouad Teniouhttp://code.activestate.com/recipes/users/4155345/http://code.activestate.com/recipes/576616-factorial-lambda/
<p style="color: grey">
Python
recipe 576616
by <a href="/recipes/users/4155345/">Fouad Teniou</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>, <a href="/recipes/tags/math/">math</a>).
Revision 4.
</p>
<p>If n is a positive integer,factorial(n!) is the product of all the positive integers from 1 up to the given integer.
However, different types of functions are applied,including the anonymous lambda to generate the factorial number, because it is simple and returns a value ( a new function ), which can be assigned a name.</p>
Circle (Python)
2011-02-02T12:53:01-08:00Fouad Teniouhttp://code.activestate.com/recipes/users/4155345/http://code.activestate.com/recipes/576531-circle/
<p style="color: grey">
Python
recipe 576531
by <a href="/recipes/users/4155345/">Fouad Teniou</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
Revision 18.
</p>
<p>Circle is a program for students and tutors in higher education. Circle program provide the user with the standard form ( x –x0)^2 + (y-y0)^2 = r^2, radius and centre(x0,y0), once the user input the Constants' values of the circle Equation of the form Ax^2 + Ay^2 + Dx + Ey + F = 0. if r^2 = 0, Circle program point and display that the graph is the single point (x0,y0), and if r^2 < 0 , Circle program point that the equation has no real solutions, thus no graph. However Circle program also does compute and display the reverse method if the user input the radius and centre values, it display both forms of the circle equation </p>
Ellipse (Python)
2009-02-14T04:09:28-08:00Fouad Teniouhttp://code.activestate.com/recipes/users/4155345/http://code.activestate.com/recipes/576513-ellipse/
<p style="color: grey">
Python
recipe 576513
by <a href="/recipes/users/4155345/">Fouad Teniou</a>
(<a href="/recipes/tags/algorithm/">algorithm</a>, <a href="/recipes/tags/algorithms/">algorithms</a>).
Revision 8.
</p>
<p>In early 1600 Johannas Kepler conclude that all the planets in the solar system move in elliptical orbits with the sun at a focus, thus, the importance of ellipse in science.
Ellipse is a Python program for students and tutors at higher levels of education .
There are two equations of an ellipse : x^2/a^2 + y^2/b^2 and: x^2/b^2 + y^2/a^2 the foci are on the x axis or y axis.
From Ellipse program the student will be able to sketch the ellipse, by drawing a box with (a) and (-a) units on the major axis and ( b) and (-b) units on the minor axis.
Since Ellipse program determine the values of a and b and the position of the foci c.
c = Square-Root (a^2 – b^2)</p>