Mathematical Methods of Math Functions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MATHMETHODS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Math.Sqrt(69));
Console.WriteLine(Math.Pow(2,3));
Console.WriteLine(Math.Pow(49,
.5));
Console.WriteLine(Math.Pow(27,
1/3.0));
Console.WriteLine(Math.Ceiling(23.000001));
Console.WriteLine(Math.Floor(23.9999999));
Console.WriteLine(Math.Round(23456.897,0));
Console.WriteLine(Math.Abs(87));
Console.WriteLine(Math.Sign(23)+ " "+Math.Sign(0)+" "+Math.Sign(-34)
);
Console.WriteLine(Math.Log(Math.E));
Console.WriteLine(Math.Log10(10));
Console.WriteLine(Math.E);
Console.WriteLine(Math.PI
+"
"+(22/7.0));
Console.WriteLine(Math.Exp(3));
Console.WriteLine(Math.Tan(45
* (3.14 / 180)) + " "
+ Math.Tan(45 *
(Math.PI / 180)));
Console.WriteLine(Math.Atan(1)*(180/Math.PI));
}
}
}
No comments:
Post a Comment