Math_Combinatorics
[ class tree: Math_Combinatorics ] [ index: Math_Combinatorics ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2.  
  3. require_once 'Math/Combinatorics.php';
  4.  
  5. $combinatorics = new Math_Combinatorics;
  6. $set = array(
  7.     'one'   => 'a',
  8.     'two'   => 'b',
  9.     'three' => 'c',
  10.     'four'  => 'd',
  11.     'five'  => 'e',
  12.     'six'   => 'f',
  13.     'seven' => 'g',
  14.     'eight' => 'h',
  15.     );
  16.  
  17. $combinations $combinatorics->combinations($set3);
  18. $permutations $combinatorics->permutations($set3);
  19.  
  20. ?>

Documentation generated on Mon, 11 Mar 2019 15:11:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.