integrate()
Returns the integral of data
Syntax
y = integrate(data, start, stop, incr)
Arguments
| Name | Description | Range | Type | Default | Required |
|---|---|---|---|---|---|
| data | data to be intergated | (-∞, ∞) | integer, real | yes | |
| start | starting value of the integration | (-∞, ∞) | integer, real | first point in the data | no |
| stop | stop value of the integration | (-∞, ∞) | integer, real † | last point in the data | no |
| incr | increment | [0, ∞) | integer, real | (stop - start)/(# data points - 1) | no |
| † stop can be an array | |||||
Examples
x = [0::0.01::1.0]
y = vs(2*exp(-x*x) / sqrt(pi), x)
z = integrate(y, 0.1, 0.6, 0.001)
returns 0.491
xx = [1::0.1::2]
yy = vs(sin(xx),xx)
Stop = [1.9,2.0]
intgYY=integrate(yy,1,Stop,0.1)
returns [0.767, 0.958]
Defined in
$HPEESOF_DIR/expressions/ael/circuit_fun.ael
See Also
Notes/Equations
Returns the integral of data from start to stop with increment incr using the composite trapezoidal rule on uniform subintervals. The Stop limit can be an array of values. In this case, the function returns integration for limits [start, stop[0]], [start, stop[1]], etc.
If no incr parameter is given, then no increment (or no interpolation) will be performed.
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()