# WEIBULL

Calculates values for a Weibull distribution.

### Syntax:

WEIBULL(x, k, λ, mode)

The Weibull distribution is a continuous probability distribution, with parameters k > 0 (shape) and λ > 0 (scale).
If mode is 0, WEIBULL calculates the probability density function of the Weibull distribution:

If mode is 1, WEIBULL calculates the cumulative distribution function of the Weibull distribution:

### Example:

WEIBULL(2.5, 3, 4, 1)
returns approximately 0.2166, the value of the probability density function with k = 3 and λ = 4 at x = 2.5.
WEIBULL(2.5, 3, 4, 0)
returns approximately 0.2295, the value of the cumulative distribution function with k = 3 and λ = 4 at x = 2.5.