Browse Source

refactoring: case(for cosine and tangent)

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
1e5c21b444
  1. 7
      src/main/c/Calculator/calculator.c

7
src/main/c/Calculator/calculator.c

@ -101,7 +101,12 @@ double combination(int n, int r);
case 14:
return pow(num1, num2);
case 15:
return sin(num1 * M_PI / 180.0);
return sin(num1 * M_PI / 180.0);
case 16:
return cos(num1 * M_PI / 180.0);
case 17:
return tan(num1 * M_PI / 180.0);

Loading…
Cancel
Save