Print All Trigonometric Ratios: C Program

preview_player
Показать описание

If value of an angle is input through the keyboard, write a c program to print all its Trigonometric Ratios.

Formula To Convert Degree To Radian
radian = degree * (PI / 180.0);
where PI = 3.14159; (constant value)

we include math.h header file and use methods present in it to get:
sin()
cos()
tan()

To get cosec() = 1 / sin();
To get sec() = 1 / cos();
To get cot() = 1 / tan();

tan() value can also be obtained using sin() / cos();
cot() value can also be obtained using cos() / sin();

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Hi satish... i am following your c videos which is actually helping to me to understand c program... Can you put some videos on pointers as well as on the tables using the pointers....

srsvv
Автор

CAN U PLEASE EXPLAIN ME:program that prints the sine function for an input x between (0, 1)

sameerazsashachannel
Автор

Thank you so much, this was very helpful (Y)

haziqh
Автор

Hi! I want to calculate a function's result in C programming. All trigonometric elements in my functions are in degrees. And I want my results to be in degrees, too. Could you please tell me how I can make this happen in C language?

Summary: I don't want any radians, at all. I don't want to convert any radians to degrees as well. I will only work on degrees stuff.

Looking forward to your answer...

bilimdunyas
Автор

You said in between that dividing a real constant by integer will give integer value only. But what I read is that diving real by integer or vice versa, gives real value.
Please reply im getting confused

mohitpal
Автор

Cos 90 does not give accurate 0 value, what is solution for this?

CyberrBoss
Автор

what about Tan 90 it gives random value

umairrana
Автор

Not getting output it only ask about degree

prathmeshsaikhedkar
Автор

What the name of the software that you using for coding??

anujsharma