summaryrefslogtreecommitdiff
path: root/1205/CH2/EX2.7.1/E2_7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1205/CH2/EX2.7.1/E2_7_1.sce')
-rw-r--r--1205/CH2/EX2.7.1/E2_7_1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1205/CH2/EX2.7.1/E2_7_1.sce b/1205/CH2/EX2.7.1/E2_7_1.sce
new file mode 100644
index 000000000..00e14d563
--- /dev/null
+++ b/1205/CH2/EX2.7.1/E2_7_1.sce
@@ -0,0 +1,11 @@
+F=800 // N , given force
+theta=145 // Degrees , angle with posiyive X axis
+
+theta=theta*%pi/180;// Conversion into radian
+
+Fx=F*sin(theta);//N, Horizontal component
+Fy=F*cos(theta);// N, Vertical Component
+
+printf("Horizontal component of F is %.2f N\n",Fx);
+printf("Vertial component of F is %.2f N\n",Fy);
+printf("We may write F as \n F = %.2f i + %.2f j",Fx,Fy);