-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
56 lines (49 loc) · 793 Bytes
/
README.txt
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
# Project-Cal
TechSoc'26 task-1. Calculator.
# Instructions!!
This Calculator console application.
This application performs basic arithmetic like
addition, subtration, multiplication and division on TWO
rational numbers.
>> 3+2
5
>> 4.5^3
91.125
>> 5/4
1.25
>> 4.35 - 5.34
-0.99
(Don't worry about the whitespace!!)
It also does factorial functions.
>> 4!
24
>> 6!
720
>> 5!
120
And, it also does basic trignometric functions (sin, cos, tan, cot, sec, csc)
>>sin(3)
0.14112
>>cot(2)
-0.457658
You can also write fractions of pi directly in the calculator
>>Sin(pi)
0
>>cos(pi)
-1
>> tan(7pi/4)
-1
>>cot(pi)
NOT DEFINED
1
>>Tan(pi)
0
>>sin(pi/3)
0.866025
(It is not case sensitive!!)
And also, it calculates the natural powers of e
>>e^1
2.71828
>>e^4
54.5982
To quit write (q or Q)!