Task

Show how to use the following math constants and functions in your language   (if not available, note it):

   e   (base of the natural logarithm)
   



π


{\displaystyle \pi }


   square root
   logarithm   (any base allowed)
   exponential   (ex )
   absolute value   (a.k.a. "magnitude")
   floor   (largest integer less than or equal to this number--not the same as truncate or int)
   ceiling   (smallest integer not less than this number--not the same as round up)
   power   (xy )


Related task

   Trigonometric Functions


open System
 
let main _ =
    Console.WriteLine(Math.E);             // e
    Console.WriteLine(Math.PI);            // Pi
    Console.WriteLine(Math.Sqrt(10.0));    // Square Root
    Console.WriteLine(Math.Log(10.0));     // Logarithm
    Console.WriteLine(Math.Log10(10.0));   // Base 10 Logarithm
    Console.WriteLine(Math.Exp(10.0));     // 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.0, 5.0)); // Exponentiation
 
    0