20 mean =
add(mean,
divide(delta, (
double)n, err));
25 cout <<
"Error: not enough data" << endl;
30 double stddev =
root(variance, 2, err);
32 cout << stddev << endl;
Mathematical library for calculator project.
double root(double base, int n, MathError &err)
Implementation of function root.
double add(double a, double b)
Implementation of function add.
double multiply(double a, double b)
Implementation of function multiply.
double divide(double a, double b, MathError &err)
Implementation of function divide.
double subtract(double a, double b)
Implementation of function subtract.