Math.Cos() : Math « System « C# / C Sharp by API






Math.Cos()

  
using System; 
 
public class Trigonometry {    
  public static void Main() {    
    Double theta;
     
    for(theta = 0.1; theta <= 1.0; theta = theta + 0.1) { 
      Console.WriteLine("Sine of " + theta + "  is " + 
                        Math.Sin(theta)); 
      Console.WriteLine("Cosine of " + theta + "  is " + 
                        Math.Cos(theta)); 
      Console.WriteLine("Tangent of " + theta + "  is " + 
                        Math.Tan(theta)); 
      Console.WriteLine(); 
    } 
 
  }    
}

   
    
  








Related examples in the same category

1.Math.Abs
2.Math.Min
3.Math.PI
4.Math.Round
5.Math.Sign
6.Math.Sin()
7.Math.Sqrt
8.Math.Tan()