uni

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

fcombinations.h (670B)


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