Skip to content
Snippets Groups Projects
Commit 5501c5b2 authored by Luca Righetti's avatar Luca Righetti
Browse files

modified readme

parent 57e927c3
No related branches found
No related tags found
No related merge requests found
......@@ -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)$.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment