uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

combinations.h (614B)


      1 #ifndef COMBINATIONS_H
      2 #define COMBINATIONS_H
      3 
      4 #include <stdio.h>
      5 #include <stdlib.h>
      6 #include <stdbool.h>
      7 
      8 #include "arrhandler.h"
      9 #include "ccolors.h"
     10 
     11 #define COMBSN 6
     12 
     13 void x_pair(int *, int *);
     14 void y_pair(int *, int *);
     15 
     16 void print_combs(int *, int, int, int, int, int);
     17 void combinations(int *, int *, int *, int, int, int, int *, int *, int *, int, int, int, int, int);
     18 
     19 bool even_calc(int *, int, int);
     20 bool sum_comb_calc(int *, int, int);
     21 
     22 void frequency(int *, int *, int *, int);
     23 long int combinations_count(int);
     24 long double factorial(int);
     25 void print_other(int, int, int, int, int *, int *);
     26 
     27 #endif