-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.h
More file actions
92 lines (61 loc) · 1.67 KB
/
Copy pathhelp.h
File metadata and controls
92 lines (61 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef HELP_H
#define HELP_H
// enum to represent operators
enum operators {
ADD=1,
SUB,
MUL,
DIV,
MOD,
POW,
SQRT,
SIN,
COS,
TAN,
ARCSIN,
ARCCOS,
ARCTAN,
LOG,
FACT
};
// show introductory function
void intro();
// function for showing menu
void showMenu() ;
// taking inpuut
void takeinput1(double *number1);
void takeinput2(double *number2);
void inputangle(double *angle);
void Single_value(double *value);
// value conversion
void radianTodegree(double *angle);
void degreeToradian(double *angle);
// addition function declaration
double addition(double a, double b) ;
// subtraction function declaration
double subtraction(double a, double b) ;
// multiplication function declaration
double multiplication(double a, double b);
// division function declaration
void division(double a, double b);
// modulo function declaration
void modulo(int a, int b) ;
// power function declaration
double power(double base, double exponent) ;
// square root function declaration
void square_root(double num) ;
// factorial function declaration - using unsigned long long to handle larger factorials, but keep in mind it can still overflow for n > 20
void factorial(int n) ;
// logarithm function declaration
void logarithm(double num);
// trigonometric functions declaration
void sine(double angle);
void cosine(double angle) ;
void tangent(double angle) ;
// inverse trigonometric functions declaration
void arcsine(double value) ;
void arccosine(double value) ;
void arctangent(double value) ;
// result display function
void printResult(double num1, double num2, double result, char symbol);
#endif