summaryrefslogtreecommitdiff
path: root/3792/CH3/EX3.3/Ex3_3.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3792/CH3/EX3.3/Ex3_3.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3792/CH3/EX3.3/Ex3_3.sce')
-rw-r--r--3792/CH3/EX3.3/Ex3_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3792/CH3/EX3.3/Ex3_3.sce b/3792/CH3/EX3.3/Ex3_3.sce
new file mode 100644
index 000000000..793f50e52
--- /dev/null
+++ b/3792/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,26 @@
+// SAMPLE PROBLEM 3/3
+clc;clear;funcprot(0);
+// Given data
+m_A=250;// The mass of concrete block A in lb
+m=400;// lb
+theta=30;// degree
+mu_k=0.5;// The coefficient of kinetic friction between the log and the ramp
+x=20;// ft
+g=32.2;// The acceleration due to gravity in ft/sec^2
+
+// Calculation
+// SigmaF_y=0;
+N=m*cosd(theta);// lb
+// SigmaF_x=ma_x;
+function[X]=acceleration(y)
+ X(1)=0-((2*y(2))+y(3));
+ X(2)=((mu_k*N)-(2*y(1))+(m*sind(theta)))-((m/g)*y(2));
+ X(3)=(m_A-y(1))-((m_A/g)*y(3));
+endfunction
+y=[100,1,1];
+z=fsolve(y,acceleration);
+T=z(1);// lb
+a_A=z(3);// ft/sec^2
+a_C=z(2);// ft/sec^2
+v_A=sqrt(2*a_A*x);// ft/sec
+printf("\nThe velocity of the block as it hits the ground at B,v_A=%2.2f ft/sec",v_A);