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


Ada.Numerics.e  -- Euler's number
Ada.Numerics.pi -- pi
sqrt(x)         -- square root
log(x, base)    -- logarithm to any specified base
exp(x)          -- exponential
abs(x)          -- absolute value
S'floor(x)      -- Produces the floor of an instance of subtype S
S'ceiling(x)    -- Produces the ceiling of an instance of subtype S
x**y            -- x raised to the y power