Real constants and functions: Difference between revisions
Content deleted Content added
No edit summary |
added c# |
||
Line 70:
ceil(x); /* ceiling */
pow(x,y); /* power */</lang>
=={{header|C sharp|C#}}==
<lang csharp>using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(Math.E); //E
Console.WriteLine(Math.PI); //PI
Console.WriteLine(Math.Sqrt(10)); //Square Root
Console.WriteLine(Math.Log(10)); // Logarithm
Console.WriteLine(Math.Log10(10)); // Base 10 Logarithm
Console.WriteLine(Math.Exp(10)); // Exponential
Console.WriteLine(Math.Abs(10)); //Absolute value
Console.WriteLine(Math.Floor(10.0)); //Floor
Console.WriteLine(Math.Ceiling(10.0)); //Ceiling
Console.WriteLine(Math.Pow(2, 5)); // Exponentiation
}
}</lang>
=={{header|Common Lisp}}==
|