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


var e = 1.exp
 
System.print("e         = %(e)")
System.print("pi        = %(Num.pi)")
System.print("sqrt(2)   = %(2.sqrt)")
System.print("ln(3)     = %(3.log)")    // log base e
System.print("exp(2)    = %(2.exp)")
System.print("abs(-e)   = %((-e).abs)")
System.print("floor(e)  = %(e.floor)")
System.print("ceil(e)   = %(e.ceil)")
System.print("pow(e, 2) = %(e.pow(2))")