diff options
Diffstat (limited to '800/CH2/EX2.6')
-rwxr-xr-x | 800/CH2/EX2.6/2_6.sci | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/800/CH2/EX2.6/2_6.sci b/800/CH2/EX2.6/2_6.sci new file mode 100755 index 000000000..ce7937dc1 --- /dev/null +++ b/800/CH2/EX2.6/2_6.sci @@ -0,0 +1,22 @@ +//clear//
+clc
+clear all
+exec("2.6data.sci");
+
+
+X1 = X(1:5);
+p1 = p(1:5);
+V1 = FA0*inttrap(X1,p1)
+X2 = X(5:9);
+p2 = p(5:9);
+V2 = FA0*inttrap(X2,p2)
+V=V1+V2;
+disp("V1 =")
+disp(V1)
+disp("dm^3")
+disp("V2 =")
+disp(V2)
+disp ("dm^3")
+disp("V =")
+disp(V)
+disp ("dm^3")
|