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


print "e     = ", euler
print "pi    = ", pi
 
x = 12.345
y = 1.23
 
print "sqrt  = ", sqrt(2)              // square root
print "ln    = ", log(euler)           // natural logarithm base e
print "log   = ", log(x, y)	       // arbitrary base y logarithm
print "exp   = ", exp(euler)           // exponential
print "abs   = ", abs(-1)              // absolute value
print "floor = ", floor(-euler)        // floor
print "ceil  = ", ceil(-euler)         // ceiling
print "power = ", x ^ y, "  ", x ** y  // power
end