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


// version 1.0.6
 
fun main(args: Array<String>) {
    println(Math.E)                // e
    println(Math.PI)               // pi
    println(Math.sqrt(2.0))        // square root
    println(Math.log(Math.E))      // log to base e
    println(Math.log10(10.0))      // log to base 10
    println(Math.exp(1.0))         // exponential
    println(Math.abs(-1))          // absolute value
    println(Math.floor(-2.5))      // floor 
    println(Math.ceil(-2.5))       // ceiling 
    println(Math.pow(2.5, 3.5))    // power
}