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 "exp:";chr$(9);   EXP(1)
print "PI:";chr$(9);    22/7
print "Sqr2:";chr$(9);  SQR(2)
print "Log2:";chr$(9);  LOG(2) : REM Base 10
print "Exp2:";chr$(9);  EXP(2)
print "Abs2:";chr$(9);  ABS(-2)
print "Floor:";chr$(9); INT(1.534)
print "ceil:";chr$(9);  val(using("###",1.534))
print "Power:";chr$(9); 1.23^4