diff options
Diffstat (limited to '3648/CH15/EX15.3/Ex15_3.sce')
-rw-r--r-- | 3648/CH15/EX15.3/Ex15_3.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/3648/CH15/EX15.3/Ex15_3.sce b/3648/CH15/EX15.3/Ex15_3.sce new file mode 100644 index 000000000..198f244b7 --- /dev/null +++ b/3648/CH15/EX15.3/Ex15_3.sce @@ -0,0 +1,10 @@ +//Example 15_3
+clc();
+clear;
+//To find the resultant force
+f1=6 //Units in N
+f2=18 //Units in N
+f=sqrt(f1^2+f2^2) //Units in N
+theta=atan(f2/f1)*180/%pi //Units in degrees
+printf("The resultant force is f=%d N \n The resultant angle is theta=%.1f degrees",f,theta)
+//In text book answer printed wrong as f=19 N correct answer is f=18N
|