Skip to content

Akhilesh456/Project-Cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

# 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)!

About

TechSoc'26 task-1. Calculator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages