Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
|
||||
namespace RosettaCode {
|
||||
class Program {
|
||||
static void Main(string[] args) {
|
||||
Console.WriteLine("=== 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.WriteLine("");
|
||||
Console.WriteLine("=== degrees ===");
|
||||
Console.WriteLine("sin (60) = {0}", Math.Sin(60 * Math.PI / 180));
|
||||
Console.WriteLine("cos (60) = {0}", Math.Cos(60 * Math.PI / 180));
|
||||
Console.WriteLine("tan (60) = {0}", Math.Tan(60 * Math.PI / 180));
|
||||
Console.WriteLine("arcsin (1/2) = {0}", Math.Asin(0.5) * 180/ Math.PI);
|
||||
Console.WriteLine("arccos (1/2) = {0}", Math.Acos(0.5) * 180 / Math.PI);
|
||||
Console.WriteLine("arctan (1/2) = {0}", Math.Atan(0.5) * 180 / Math.PI);
|
||||
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue