exsp4e/exercice_269d42ee422ebmaster
exsp4e/exercice_2
69d42ee422ebmaster
exercice_2
exercice_2
README.md
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
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 A, B beeng respectively (A: serie_type -- 1 is compute_arithmetic -- 2 is compute_pi, B: maxiter):
$ ./src/main A B
c4science · Help