|
@ -22,6 +22,13 @@ int divide(int a, int b) { |
|
|
return a / b; |
|
|
return a / b; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Square root function |
|
|
|
|
|
double squareRootFunction(double x) { |
|
|
|
|
|
// Using the sqrt function from math.h |
|
|
|
|
|
return sqrt(x); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//.. |
|
|
// Trigonometric functions |
|
|
// Trigonometric functions |
|
|
double sineFunction(double angle) { |
|
|
double sineFunction(double angle) { |
|
|
// Convert degrees to radians for trigonometric functions |
|
|
// Convert degrees to radians for trigonometric functions |
|
|