R7571/work/week6/series/homework28758e462f479master
R7571/work/week6/series/homework2
8758e462f479master
README.md
README.md
- How to run the main.exe
- Syntax:
In folder "SP4E-Final/work/week6/series/homework2/src" run the executable: ./main SERIE NUMBER_OF_ITERATIONS ./main SERIE NUMBER_OF_ITERATIONS DUMB_METHOD ./main SERIE NUMBER_OF_ITERATIONS DUMB_METHOD FREQUENCY/SEPARATION ./main SERIE NUMBER_OF_ITERATIONS DUMB_METHOD FREQUENCY/SEPARATION PRECISION
- Description:
./main SERIE NUMBER_OF_ITERATIONS:
SERIE can be "pi" or "ar" to compute pi serie or arithmetic serie respectively NUMBER_OF_ITERATIONS is a number > 0 that expresses the numebr of iterations in the selected serie It display the result of the selected serie on the terminal
./main SERIE NUMBER_OF_ITERATIONS DUMB_METHOD:
DUMB_METHOD can be "print" or "write" to either print or write on a file the result of the dumb method
./main SERIE NUMBER_OF_ITERATIONS DUMB_METHOD FREQUENCY/SEPARATION:
FREQUENCY is chosen for the DUMB_METHOD=="print". It defines the step in the serie computation from 1:FREQUENCY:NUMBER_OF_ITERATIONS. Default FREQUENCY = 1 SEPARATION is chosen for the DUMB_METHOD=="write". It defines type of file to be written: "," for .csv file, "|" for a .psv file, and "" or "\t" for a .txt file. Default SEPARATION = "\t"
./main SERIE NUMBER_OF_ITERATIONS DUMB_METHOD FREQUENCY/SEPARATION PRECISION:
PRECISION sets the decimal precision to be used to format floating-point values on output operations. Default PRECISION = 10
Work division strategy (3 people)
- Definition of top-level code interface:
- Tristan: Series class (series.hh)
- Théo: define DumperSeries class (dumper.hh)
- Definition and implementation of Series subclasses:
- Tristan: ComputePi class (pi.hh and pi.cc)
- Théo: ComputeArithmetic class (arithmetic.hh and arithmetic.cc)
- Théo: modification of main to execute series (main.cc)
- Definition and implementation of DumperSeries subclasses:
- Tristan: PrintSeries class (print.hh and print.cc)
- Théo: WriteSeries class (write.hh and write.cc)
- Re-definition of printing methods in DumperSeries:
- Tristan: modify DumperSeries and PrintSeries classes
- Evluation of complexity:
- Flavio: modify Series, ComputePi and ComputeArithmetic classes to optimize computation
- "Bonus":
- Flavio: Implementation of exhaustive, robust testing and options in main file
c4science · Help