exsp4e/exercice_2fe6ba0ec5e1emaster
exercice_2
README.md
code created by Marti Bosch (marti.bosch@epfl.ch) and Marc Schwaerzel (marc.schwaerzel@epfl.ch)
- Exercise 1
- Exercise 2
exercice 2.1: a good strategy to work both of us on different parts at the same is to define edit the "class Series" together and then do exercice 2 and 3 separately by using the mother/daughter classes as seen in the lecture. We thought about this strategy but it was not really conclusive as I (Marc Schwaerzel) started to implement series as in the exercices of week 5. Finally we simplified things and came back to out initial strategy.
- Exercise 3
- Exercise 4
- Exercise 5
Last commit is factorizing the code but code does not work. In theory I (Marc Schwaerzel)tried to do it nicely but there is something that I don't get =S Factorizing the code (putting all repeated code in the mother class) should lower the complexity of the code. To see a code that is running: please refere to the commit before the laste one. (I know we should't do that but I have not (yet) the competence doing better....)
Run the code
To run the code follow the instructions:
- create a new directory in the exercice_2 directory and go into that folder:
$ mkdir build $ cd build
- compile the code:
$ cmake ../ $ make
- run the code with following arguments: --frequency --maxiter --serie_type (pi or arithmetic) --dump_type (print or write):
$ ./src/main frequency maxiter serie_type dump_type