Demonstrate Math.Sin(), Math.Cos(), and Math.Tan(). : Math « Development Class « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Design Patterns
8.Development Class
9.Event
10.File Stream
11.Generics
12.GUI Windows Form
13.Language Basics
14.LINQ
15.Network
16.Office
17.Reflection
18.Regular Expressions
19.Security
20.Services Event
21.Thread
22.Web Services
23.Windows
24.Windows Presentation Foundation
25.XML
26.XML LINQ
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source
C# / C Sharp » Development Class » MathScreenshots 
Demonstrate Math.Sin(), Math.Cos(), and Math.Tan().
Demonstrate Math.Sin(), Math.Cos(), and Math.Tan().
 
/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/
//  Demonstrate Math.Sin(), Math.Cos(), and Math.Tan(). 
 
using System; 
 
public class Trigonometry {    
  public static void Main() {    
    Double theta; // angle in radians 
     
    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.Find the radius of a circle given its area. Find the radius of a circle given its area.
2.Math operators
3.Use Math.Round
4.Math.Sign
5.Math.Abs
6.Math.Min
7.Converts a degrees angle into a radians angle.
8.Converts a radians angle into a degrees angle.
9.Converts degrees to radians.
10.Gets the mean value from a list
11.Gets the median from the list
12.Gets the standard deviation
13.Statistical functions: Mean
14.Statistical functions: Standard Deviation
15.Statistical functions: Standard Deviation
16.The Method converts the temperature in Fahrenheit to Celcius
17.The Method converts the temperature in Celcius to Fahrenheit
18.Returns the maximum value of three numbers
19.Returns the minimum value of three numbers
20.rounds val to the nearest fractional value
21.Combines two input numbers in some proportion.
22.Normalise Angle
23.wraps the mod result to avoid negative results.
24.Method that calculates the Greatest Common Divisor (GCD) of two positive integer numbers.
25.Calculates the floor of the log, base 2, of 'x'.
26.Calculates the Least Common Multiple (LCM) of two strictly positive integer numbers.
27.Get Prime, Is prime
28.Same as System.Math.Acos but if angle is out of range, the result is clamped.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.