SP4EHW/HW2ec0552b9b6f1master
SP4EHW/HW2
ec0552b9b6f1master
README.md
README.md
- Work division among the group members:
- The work is divided into four parts:
- (1) Writing the code for the Series class
- (2) Writing the code for the Dumper class
- (3) Writing the code for the ostream manipulation
- (4) Decreasing the complexity of the whole code
- The first is done ensemble during the excersice session.
- The second part is divided among the group members to write the PrintSeries and the WriteSeries classes.
- The third and the fourth parts are done ensemble.
Following is the commands to compile the source codes:
cmake . make
To run the compiled file:
./homework2/build/main method_name iteration precision displaying_method displaying_method_argument
method_names :
arth pi
iteration : the maximum iteration number
precision : output precision
displayin_method :
print write
displaying_method_argument for "print":
frequency delimiter
- frequency : frequency of the output display
- delimiter : delimiter symbol ((,),(\|),(\t),...)
displaying_method)argument for "write":
delimiter
- delimiter : delimiter symbol ((,),(\|),(\t),...)
example:
./homework2/build/main arth 500 8 print 50 , ./homework2/build/main pi 500 8 write \|
To draw the diagrams (python code):
python homework2/src/plotresult.py
c4science · Help