Question: Complete experiment 2 using python and numpy. Introduction Suppose we want to find the integral to I-(t)dt. (2.2) We compute this integral in Python by
Complete experiment 2 using python and numpy.



Introduction Suppose we want to find the integral to I-(t)dt. (2.2) We compute this integral in Python by discretizing the time in the function z(t) and replacing integration by summation. Let T, be the sampling period used for discretization, then 12-1 (2.3) where ni = t/T, and n2 = t2/T,. Note that r(iT,) is not equivalent to z x i x T,, but is the value i T, substituted for t in the function (t). For example, if (t)sin(t), then iT)-sinT (iT)2). A more accurate method of computing an integral is to use the trapezoidal rule which is given by the following relation: (2.4) i=n 1 + 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
