Advanced Math in C#.NET

Like C language library #include "math.h", C# also having System.Math static class. You no need to call this class, if you include System namespace i.e enough. In C# all the Math functions will start by capital letters. Please check below list of Math functions in C#.


System.Math
1Acos
2Asin
3Atan
4Ceiling
5Cos
6Cosh
7Exp
8Abs
9Floor
10IEEERemainder
11Log
12Log10
13Pow
14Sin
15Sinh
16Sqrt
17Tan
18Tanh


Advanced Math functions are not included in this library like asinh, acosh like that.

Examples:


double mathValue=45.00;
mathValue= Math.Exp(-mathValue-mathValue*mathValue);


mathValue=5.00;
 mathValue=Math.Pow(mathValue,-0.9) * Math.Log(1/mathValue)


mathValue=3.00;
mathValue=mathValue*mathValue*mathValue * Math.Log(Math.Abs((mathValue*mathValue-1) * (mathValue*mathValue - 2)))


Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar