Browse Source

Added exponentialFunction for exponential calculations

remotes/origin/feature
fdai7782 11 months ago
parent
commit
440d7f5c25
  1. 7
      src/main/c/main_taschenrechner.c
  2. 4
      src/main/c/taschenrechner.h

7
src/main/c/main_taschenrechner.c

@ -55,6 +55,13 @@ double logarithmBase2Function(double x) {
// Logarithm with base 2
return log2(x);
}
//..
// Exponential function
double exponentialFunction(double x) {
// Exponential function (e^x)
return exp(x);
}
// scientificmode
int scientificMode(){

4
src/main/c/taschenrechner.h

@ -24,6 +24,10 @@ double naturalLogarithmFunction(double x);
double logarithmBase2Function(double x);
//..
// Exponential function
double exponentialFunction(double x);
int mode(int userChoice);
int displayMenu();

Loading…
Cancel
Save