Calculates the area under the curve of the argument.
This function returns a single value that can be used for measurements. The integ function may be used to obtain a vector of the area. area(arg) is equivalent to the value of (integ(arg))[length(arg)-1]
Number | Type | Compulsory | Default | Description |
---|---|---|---|---|
1 |
real array |
Yes |
|
Vector |
2 |
real |
No |
0.0 |
Start x value |
3 |
real |
No |
Final x value in data |
End x value |
Vector to process. Must have a reference - e.g. x-values
Value on x-axis where the start of the curve area is located
Value on x-axis where the end of the curve area is located
Return type: real
Area under curve
|