summaryrefslogtreecommitdiff
path: root/1720
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1720
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1720')
-rwxr-xr-x1720/CH1/EX1.5/1_5.sce28
-rwxr-xr-x1720/CH1/EX1.9/1_9.sce13
2 files changed, 41 insertions, 0 deletions
diff --git a/1720/CH1/EX1.5/1_5.sce b/1720/CH1/EX1.5/1_5.sce
new file mode 100755
index 000000000..3a467d2ed
--- /dev/null
+++ b/1720/CH1/EX1.5/1_5.sce
@@ -0,0 +1,28 @@
+// Example 1.5
+clc;
+//Given
+A = [3 5 -7];
+B = [2 7 1];
+
+//Solution
+
+C = A+B;
+D = A-B;
+E = (A(1,1)^2 + A(1,2)^2 + A(1,3)^2)^0.5;
+F = (B(1,1)^2 + B(1,2)^2 + B(1,3)^2)^0.5;
+G = (A(1,1)*B(1,1) + A(1,2)*B(1,2) + A(1,3)*B(1,3));
+H = G/(E*F);
+// where C=A+B and D=A-B and E =|A| and F = |B| and G = A.B and H =cos(A,B)
+
+disp("A+B =");
+disp(C);
+disp("A-B =");
+disp(D);
+disp("|A|=");
+disp(E);
+disp("|B|=");
+disp(F);
+disp("A.B=");
+disp(G);
+disp("cos(A,B)=");
+disp(H); \ No newline at end of file
diff --git a/1720/CH1/EX1.9/1_9.sce b/1720/CH1/EX1.9/1_9.sce
new file mode 100755
index 000000000..e8af138ea
--- /dev/null
+++ b/1720/CH1/EX1.9/1_9.sce
@@ -0,0 +1,13 @@
+//Example 1.9
+clc;
+//Given
+vo = [0 5 -3];
+a = [0 0 -2];
+t = 5;
+//Solution
+vx = vo(1,1) + integrate('a(1,1)','t',0,t); // velocity in x direction
+vy = vo(1,2) + integrate('a(1,2)','t',0,t); // velocity in y direction
+vz = vo(1,3) + integrate('a(1,3)','t',0,t); // velocity in z direction
+disp(vx,"vx=");
+disp(vy,"vy=");
+disp(vz,"vz="); \ No newline at end of file