File: specfunc-elementary.rst

package info (click to toggle)
gsl-doc 2.7.1-1
  • links: PTS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 30,572 kB
  • sloc: ansic: 259,459; sh: 4,568; makefile: 1,136; python: 69
file content (21 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.. index:: elementary operations
.. index:: multiplication

The following functions allow for the propagation of errors when
combining quantities by multiplication.  The functions are declared in
the header file :file:`gsl_sf_elementary.h`.

.. function:: double gsl_sf_multiply (double x, double y)
              int gsl_sf_multiply_e (double x, double y, gsl_sf_result * result)

   This function multiplies :data:`x` and :data:`y` storing the product and its
   associated error in :data:`result`.
.. Exceptional Return Values: GSL_EOVRFLW, GSL_EUNDRFLW

.. function:: int gsl_sf_multiply_err_e (double x, double dx, double y, double dy, gsl_sf_result * result)

   This function multiplies :data:`x` and :data:`y` with associated absolute
   errors :data:`dx` and :data:`dy`.  The product 
   :math:`xy \pm xy \sqrt{(dx/x)^2 +(dy/y)^2}`
   is stored in :data:`result`.
.. Exceptional Return Values: GSL_EOVRFLW, GSL_EUNDRFLW