@@ -39,10 +39,21 @@ Since this homework requires two base classes, we decide that each person implem
Problem 2.2-2.5 are implemented as described in Exercise 5.2. Problem 2.6 is implemented in `main.cc` and used in Dumper class.
## Exercise 3
## Exercise 3
Only the option for printing or writing to a file is passed as an argument to the main.
Here is an example for calculating the arithmetic series and writing it to a file:
```
~/sp4e_hw1/hw2/build$ ./main Arithmetic write
```
The parameters maxiter and frequency have to be specified in the file `main.cc`. The same applies to output file and to the chosen separator.
## Exercise 4
The precision has to be set in the `main.cc` file.
Output results are written into a file by default, no matter what is the choice expressed in the command line. However the instructions above for running the main ar still valid.
## Exercise 5
Consider the dumper with frequency 1, maxiter N, the complexity is $O(\frac{N(N+1)}{2})=O(N^2)$.