Python_2  1.0
Classes | Functions | Variables
_05e_pascal Namespace Reference

Showing a range of rows of a Pascal triangle. More...

Classes

class  Pascal
 Class for generating and applying pascal triangles on some applications, such as probability and statistics. More...
 

Functions

def main (argv=None)
 Main function for testing. More...
 

Variables

 form = cgi.FieldStorage()
 

Detailed Description

Showing a range of rows of a Pascal triangle.

   0       1                                 C(0,0)
   1      1 1                            C(1,0)  C(1,1)
   2     1 2 1                        C(2,0)  C(2,1)  C(2,2)
   3    1 3 3 1                   C(3,0)  C(3,1)  C(3,2)  C(3,3)
   4   1 4 6 4 1              C(4,0)  C(4,1)  C(4,2)  C(4,3)  C(4,4)
   5  1 5 10 10 5 1       C(5,0)  C(5,1)  C(5,2)  C(5,3)  C(5,4)  C(5,5)
      0 1 2  3  4 5
  
Author
Paulo Roma
Since
26/08/2018
See also
http://en.wikipedia.org/wiki/Pascal_triangle

Function Documentation

◆ main()

def _05e_pascal.main (   argv = None)

Main function for testing.

Parameters
argvcommand line arguments.
  • argv[0]: script name.
  • argv[1]: first level.
  • argv[2]: last level.

Variable Documentation

◆ form

_05e_pascal.form = cgi.FieldStorage()