|
@ -39,6 +39,7 @@ double tangentFunction(double angle) { |
|
|
return tan(angle * M_PI / 180.0); |
|
|
return tan(angle * M_PI / 180.0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//.. |
|
|
// Logarithmic functions |
|
|
// Logarithmic functions |
|
|
double logarithmFunction(double x) { |
|
|
double logarithmFunction(double x) { |
|
|
// Logarithm with base 10 |
|
|
// Logarithm with base 10 |
|
@ -49,8 +50,11 @@ double naturalLogarithmFunction(double x) { |
|
|
// Natural logarithm (ln) |
|
|
// Natural logarithm (ln) |
|
|
return log(x); |
|
|
return log(x); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double logarithmBase2Function(double x) { |
|
|
|
|
|
// Logarithm with base 2 |
|
|
|
|
|
return log2(x); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// scientificmode |
|
|
// scientificmode |
|
|
int scientificMode(){ |
|
|
int scientificMode(){ |
|
|