diff options
Diffstat (limited to '260/CH11/EX11.12/11_12.sce')
-rw-r--r-- | 260/CH11/EX11.12/11_12.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/260/CH11/EX11.12/11_12.sce b/260/CH11/EX11.12/11_12.sce new file mode 100644 index 000000000..7f351de45 --- /dev/null +++ b/260/CH11/EX11.12/11_12.sce @@ -0,0 +1,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)
\ No newline at end of file |