blob: 7f351de451799082bcd6075b7df26f7f32420082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Eg-11.12
//pg-494
clear
clc
//From the composite trapezoidal rule, the average voltage is
h = 10;
V = (1/40)*(h/2)*(189 + 2*213 + 2*205 + 2*213 + 196);
printf('The average voltage is %f volts',V)
|