forked from BaseMax/TinyCalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.hpp
38 lines (33 loc) · 850 Bytes
/
main.hpp
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
/**
*
* @Name : TinyCalculator/main.hpp
* @Version : 1.0
* @Programmer : Max
* @Date : 2019-05-17
* @Released under : https://github.com/BaseMax/TinyCalculator/blob/master/LICENSE
* @Repository : https://github.com/BaseMax/TinyCalculator
*
**/
#ifndef MAIN_H
#define MAIN_H
#include <iostream>
#include <cmath>
#include <inttypes.h>
using namespace std;
void parseAddition();
void parseSubtraction();
void parseDivision();
void parseMultiplication();
void parseExponentiation();
void parseSquareRoot();
void parseSine();
void parseCosine();
void parseTangent();
void help();
void error();
float degree2Radian(float degree);
float implementationPower(float base, int power);
int64_t implementationFactorial(int number);
float implementationSine(float degree);
float implementationCosine(float degree);
#endif