# Compute the Value of Weibull Density in R Programming – dweibull() Function

`dweibull()` function in R Language is used to compute the value of Weibull Density over different numeric values for Weibull Distribution.

Syntax: dweibull(x, shape)

Parameters:
x: Numeric Vector
shape: Shape Parameter

Example 1:

 `# R Program to compute ` `# Weibull Density ` ` `  `# Creating a sequence of x-values ` `x <``-` `seq(``-``10``, ``10``, by ``=` `1``) ` ` `  `# Calling dweibull() Function ` `y <``-` `dweibull(x, shape ``=` `0.2``) ` `y `

Output:

```  0.000000000 0.000000000 0.000000000 0.000000000 0.000000000 0.000000000
 0.000000000 0.000000000 0.000000000 0.000000000         Inf 0.073575888
 0.036419388 0.023895654 0.017633032 0.013888170 0.011403732 0.009638988
 0.008323206 0.007305972 0.006497101
```

Example 2:

 `# R Program to compute ` `# Weibull Density ` ` `  `# Creating a sequence of x-values ` `x <``-` `seq(``-``10``, ``10``, by ``=` `0.5``) ` ` `  `# Calling dweibull() Function ` `y <``-` `dweibull(x, shape ``=` `0.5``) ` ` `  `# Plot a graph ` `plot(y) `

Output: My Personal Notes arrow_drop_up Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.