Showing posts with label length of the hypotenuse. Show all posts
Showing posts with label length of the hypotenuse. Show all posts

C Language | Trigonometric Function SINE

Wednesday, 19 December 2012

Trigonometry is the study of any triangles. In this, trigonometric functions are present to help us calculate anything from missing areas to missing sides to elevations. There are six (6) Trigonometric Functions namely sine, cosine, tangent, cotangent, secant and cosecant.

In connection to trigonometric functions I made a program that shows you how it works. This program shows you how to calculate for the sine function equivalent of any triangle. This program is used with the header file math.h to allow mathematical commands inside the program. Check out the sample codes below.


     1: #include <stdio.h>
   2:  #include <conio.h>
   3:  #include <math.h>
   4:  # define pi 3.14159265
   5:   
   6:   
   7:  int main()
   8:  {
   9:            int angleA;
  10:            
  11:            printf ("Enter angle: ");
  12:            scanf("%d", &angleA);
Related Posts Plugin for WordPress, Blogger...