Question on making a calculator in c++ language.

Asked By 20 points N/A Posted on -
qa-featured

Which formula do we use for a program that will calculate sine, tangent, and cosecant functions and their inverses ?

SHARE
Answered By 0 points N/A #115531

Question on making a calculator in c++ language.

qa-featured

Hi Buttercup Mines,

First step is you need to incude #include "cmath.h" where all the library functions are saved.

Now to compute angles use following functions in your code

For all the function angle is in radian (if you want to calculate in degree than use (angle * (PI / 180)) where PI = 3.14159265

1. sine: sin(angle)  

2. cosine : cos(angle) 

3. Tangent : tan(angle)

4. cosec : asin(angle)

5. sec   : acos(angle)

6. cot    : atan(angle)

Thanks,

Sophia Taj

Related Questions