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


 
math.pi         % Pi.
math.e          % Euler's number.
math.sqrt(X)    % Square root of X.
math.ln(X)      % Natural logarithm of X.
math.log10(X)   % Logarithm to the base 10 of X.
math.log2(X)    % Logarithm to the base 2 of X.
math.log(B, X)  % Logarithm to the base B of X.
math.exp(X)     % e raised to the power of X.
float.abs(X)    % Absolute value of X.
math.floor(X)   % Floor of X.
math.ceiling(X) % Ceiling of X.
math.pow(X, Y)  % X raised to the power of Y.