diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /24/CH6/EX6.2/Example6_2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '24/CH6/EX6.2/Example6_2.sce')
-rwxr-xr-x | 24/CH6/EX6.2/Example6_2.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/24/CH6/EX6.2/Example6_2.sce b/24/CH6/EX6.2/Example6_2.sce new file mode 100755 index 000000000..6640c9ece --- /dev/null +++ b/24/CH6/EX6.2/Example6_2.sce @@ -0,0 +1,20 @@ +exec("degree_rad.sci",-1)
+
+//GIven that
+g = 9.8 //in /s^2
+mass = 75 //in kg
+mu_k = 0.10
+phi = dtor(42)
+
+//Sample Problem 6-2a
+printf("**Sample Problem 6-2a**\n")
+//T * cos(phi)- mu_k * N = 0
+//T * sin(phi) + N = mass * g
+mat_A = [cos(phi),-mu_k;sin(phi),1]
+mat_B = [0 ;mass * g]
+F = inv(mat_A) * mat_B
+printf("The Tension in the string is %f N\n", F(1))
+
+//Sample Problem 6-2b
+printf("\n**Sample Problem 6-2b**\n")
+printf("The force of friction will not change")
\ No newline at end of file |