Compute Single Order Integral value of a Function in R Programming - integrate() Function Last Updated : 15 Jul, 2025 Comments Improve Suggest changes Like Article Like Report integrate() function in R Language is used to compute single order integral of the function provided. Syntax: integrate(f, lower, upper) Parameters: f: represents a function lower: represents lower limit of integration upper: represents upper limit of integration To know about more option parameters, use below command: help("integrate") Example 1: r # Create function f<-function(x) x^3 + 2*x # Integrate from 0 to 1 integrate(f, 0, 1) Output: 1.25 with absolute error < 1.4e-14 Example 2: r # Create function f <- function(x) {1/((x+1)*sqrt(x))} # Integrate from 0 to 5 integrate(f, lower = 0, upper = 5) Output: 2.300524 with absolute error < 0.00011 Comment More infoAdvertise with us Next Article Compute the Value of Negative Binomial Quantile Function in R Programming - qnbinom() Function U utkarsh_kumar Follow Improve Article Tags : R Language R Math-Function Similar Reads Compute value of Log Normal Quantile Function in R Programming - qlnorm() Function qlnorm() function in R Language is used to compute the value of log normal quantile function. It also creates a plot of the quantile function of log normal distribution. Syntax: qlnorm(vec) Parameters: vec: x-values for normal density Example 1: Python3 1== # R program to compute value of # log norm 1 min read Compute value of Logistic Quantile Function in R Programming - qlogis() Function qlogis() function in R Language is used to compute the value of logistic quantile function. It also creates a plot of the quantile function of logistic density distribution. Syntax: qlogis(vec) Parameters: vec: x-values for normal density Example 1: Python3 1== # R program to compute value of # logi 1 min read Compute the Value of Negative Binomial Quantile Function in R Programming - qnbinom() Function qnbinom() function in R Language is used to compute the value of negative binomial quantile function. It also creates a density plot of the negative binomial quantile function. Syntax: qnbinom(vec, size, prob) Parameters: vec: x-values for binomial density size: Number of trials prob: Probability Ex 1 min read Sort elements of an Object by its Index Values in R Programming - order() function order() function in R Language is used to sort an object by its index value. These objects can be vector, matrix or data frames. This function accepts boolean value as argument to sort in ascending or descending order. Syntax: order(x, decreasing, na.last) Parameters: x: Vector to be sorted decreasi 1 min read Compute the value of Quantile Function over F Distribution in R Programming - qf() Function qf() function in R Language is used to compute the value of quantile function over F distribution for a sequence of numeric values. It also creates a density plot of quantile function over F Distribution. Syntax: qf(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: Python3 1 min read Compute the Value of Poisson Quantile Function in R Programming - qpois() Function qpois() function in R Language is used to compute the value of Poisson Quantile Function. It creates a quantile density plot for poisson distribution. Syntax: qpois(vec, lambda) Parameters: vec: Sequence of integer values lambda: Average number of events per interval Example 1: Python3 1== # R progr 2 min read Like