Integration (AUC)
This software estimates the area under curve (AUC) of function f(x) by the trapezoidal rule
picture from wikipedia
Manual :
1- install R programming language
2- download the software
3- edit the integration_0-01.r file you will see this part at the begining of the file :
# is a comment
# Edit a and b
a <- 1
b <- 5
# Edit the accuracy n = number of trapezes
n <- 5000
my_function <-function(x) {
# edit your function here y=f(x)
y <- -3*x^2 + 2*x+5
return(y)
}
4- modify the values for a and b and n.
5- modify the line y <- -3*x^2 + 2*x+5 to match you equation
6- start R program.
7- load the equation software using the command <source("path to the programme file")>
for example : source("integration_0-01.r")
the program will calculate the AUC automatically :)