## `stats::normal` -- the normal (Gaussian) distribution

#### Introduction

`stats::normal``(x, m, v)` computes the value

    1/sqrt(2*PI*v) * int(exp(-(t-m)^2/2/v), t=-infinity..x)

of the normal distribution with mean m and variance v at the point x.

#### Call(s)

`stats::normal(x <, m> <, v>)`

#### Parameters

`x` | - | an arithmetical expression.
`m` | - | the mean of the distribution: an arithmetical expression.
`v` | - | the variance of the distribution: an arithmetical expression.

#### Returns

an arithmetical expression.

#### Side Effects

The function is sensitive to the environment variable `DIGITS`, when the argument `x` is a floating point number.

#### Related Functions

`stats::ChiSquare`, `stats::Tdist`

#### Details

- If the mean m and the variance v are not specified, then the default values m=0, v=1 are used.

#### Example 1

We compute the normal distribution with mean m=0 and variance v=1 at the point x = 3.4:

    >> stats::normal(3.4)

                                   0.9996630707

#### Example 2

We compute the normal distribution with symbolic arguments:

    >> stats::normal(x, m, v)

                                     /  1/2         \
                                     | 2    (x - m) |
                                 erfc| ------------ |
                                     |       1/2    |
                                     \    2 v       /
                             1 - --------------------
                                          2

#### Changes

- The internal representation now uses `erfc` instead of `erf`.

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000