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


real e = exp(1);                 // e  not available
write("e     = ", e);
write("pi    = ", pi);
 
real x = 12.345;
real y = 1.23;
 
write("sqrt  = ", sqrt(2));      // square root
write("ln    = ", log(e));       // natural logarithm base e
write("log   = ", log10(x));     // base 10 logarithm
write("log1p = ", log1p(x));     // log (1+x)
write("exp   = ", exp(e));       // exponential
write("abs   = ", abs(-1));      // absolute value
write("fabs  = ", fabs(-1));     // absolute value
write("floor = ", floor(-e));    // floor
write("ceil  = ", ceil(-e));     // ceiling
write("power = ", x ^ y);        // power
write("power = ", x ** y);       // power