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


object RealConstantsFunctions extends App{
  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
}