You are on page 1of 1

>> %Q.

2 (b) To compute an approximate value of the integration by the Trapeziodal method


int (sinx) from to pi
>> x!"pi#$"pi%
>> y!sin(x)%
>> z!trap(x&y)
>> z!trapz(x&y)
z !
$.'''(
>>

You might also like