# Compute the value of Cauchy Quantile Function in R Programming – qcauchy() Function

`qcauchy()` function in R Language is used to calculate the value of cauchy quantile function. It also creates a density plot of cauchy quantile function.

Syntax: qcauchy(vec, scale)

Parameters:
vec: x-values for cauchy function
scale: Scale for plotting

Example 1:

 `# R Program to compute value of ` `# cauchy quantile function ` ` `  `# Creating vector for x-values ` `x <``-` `seq(``0``, ``1``, by ``=` `0.2``) ` ` `  `# Apply qcauchy() Function ` `y <``-` `qcauchy(x, scale ``=` `4``) ` `y `

Output:

```[1]      -Inf -5.505528 -1.299679  1.299679  5.505528       Inf
```

Example 2:

 `# R Program to compute value of ` `# cauchy quantile function ` ` `  `# Creating vector for x-values ` `x <``-` `seq(``0``, ``1``, by ``=` `0.02``) ` ` `  `# Apply qcauchy() Function ` `y <``-` `qcauchy(x, scale ``=` `1``) ` ` `  `# Plotting the graph ` `plot(y) `

Output:

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Previous
Next