Blame doc/specfunc-elementary.rst

Packit 67cb25
.. index:: elementary operations
Packit 67cb25
.. index:: multiplication
Packit 67cb25
Packit 67cb25
The following functions allow for the propagation of errors when
Packit 67cb25
combining quantities by multiplication.  The functions are declared in
Packit 67cb25
the header file :file:`gsl_sf_elementary.h`.
Packit 67cb25
Packit 67cb25
.. function:: double gsl_sf_multiply (double x, double y)
Packit 67cb25
              int gsl_sf_multiply_e (double x, double y, gsl_sf_result * result)
Packit 67cb25
Packit 67cb25
   This function multiplies :data:`x` and :data:`y` storing the product and its
Packit 67cb25
   associated error in :data:`result`.
Packit 67cb25
.. Exceptional Return Values: GSL_EOVRFLW, GSL_EUNDRFLW
Packit 67cb25
Packit 67cb25
.. function:: int gsl_sf_multiply_err_e (double x, double dx, double y, double dy, gsl_sf_result * result)
Packit 67cb25
Packit 67cb25
   This function multiplies :data:`x` and :data:`y` with associated absolute
Packit 67cb25
   errors :data:`dx` and :data:`dy`.  The product 
Packit 67cb25
   :math:`xy \pm xy \sqrt{(dx/x)^2 +(dy/y)^2}`
Packit 67cb25
   is stored in :data:`result`.
Packit 67cb25
.. Exceptional Return Values: GSL_EOVRFLW, GSL_EUNDRFLW