summaryrefslogtreecommitdiff
path: root/3862/CH2/EX2.6/Ex2_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3862/CH2/EX2.6/Ex2_6.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3862/CH2/EX2.6/Ex2_6.sce')
-rw-r--r--3862/CH2/EX2.6/Ex2_6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3862/CH2/EX2.6/Ex2_6.sce b/3862/CH2/EX2.6/Ex2_6.sce
new file mode 100644
index 000000000..45a634e53
--- /dev/null
+++ b/3862/CH2/EX2.6/Ex2_6.sce
@@ -0,0 +1,14 @@
+clear
+//
+R=1000.0 //Resultant force
+F1=500.0 //Force
+F2=1000.0 //force
+o=45.0*3.14/180.0 //angle resultant makes with x axis
+o1=30.0*3.14/180.0 //angle F1 makes with x axis
+o2=60.0*3.14/180.0 //angle F2 makes with x axis
+//F3coso3=Rcoso-F1coso1-F2sino2
+//F3sino=Rsino-F1sino1-F2coso2
+F3=((R*cos(o)-F1*cos(o1)-F2*cos(o2))**2+(R*sin(o)-F1*sin(o1)-F2*sin(o2))**2)**0.5
+printf("\n Force %0.3f N",F3)
+o3=180/3.14*atan((R*sin(o)-F1*sin(o1)-F2*sin(o2))/(R*cos(o)-F1*cos(o1)-F2*cos(o2)))
+printf("\n At an angle %0.3f degrees",o3)