This is a C# Program to illustrate trigonometry angles in radians.

Problem Description

This C# Program Illustrates Trignometry Angles in Radians.

Problem Solution

Here the trigonometric values are calculated in terms of radians and are displayed.

Program/Source Code

Here is source code of the C# Program to Illustrate Trignometry Angles in Radians. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.

/* * C# Program to Illustrate Trignometry Angles in Radians */ using System; namespace trig { class Program { static void Main(string[] args) { Console.WriteLine("Trignometric Values in Radians : "); Console.WriteLine("sin (pi/3) = {0}", Math.Sin(Math.PI / 3)); Console.WriteLine("cos (pi/3) = {0}", Math.Cos(Math.PI / 3)); Console.WriteLine("tan (pi/3) = {0}", Math.Tan(Math.PI / 3)); Console.WriteLine("arcsin (1/2) = {0}", Math.Asin(0.5)); Console.WriteLine("arccos (1/2) = {0}", Math.Acos(0.5)); Console.WriteLine("arctan (1/2) = {0}", Math.Atan(0.5)); Console.ReadLine(); } } }

Program Explanation

This C# program is used to illustrate trigonometry angles in radians. Here the trigonometric values are calculated in terms of radians using Sin() , Cos(), Tan(), Asin(), Acos(), Atan() functions and print the values.

advertisement

advertisement

Runtime Test Cases

Trignometric Values in Radians : sin (pi/3) = 0.866025403784439 cos (pi/3) = 0.5 tan (pi/3) = 1.73205080756888 arcsin (1/2) = 0.523598775598299 arccos (1/2) = 1.0471975511966 arctan (1/2) = 0.463647609000806

**Sanfoundry Global Education & Learning Series – 1000 C# Programs.**

If you wish to look at all C# Programming examples, go to 1000 C# Programs.

**Next Steps:**

- Get Free Certificate of Merit in C# Programming
- Participate in C# Programming Certification Contest
- Become a Top Ranker in C# Programming
- Take C# Programming Tests
- Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

**Related Posts:**

- Buy Computer Science Books
- Apply for Computer Science Internship
- Practice MCA MCQs
- Buy MCA Books
- Apply for C# Internship