summaryrefslogtreecommitdiff
path: root/3782/CH1/EX1.23
diff options
context:
space:
mode:
Diffstat (limited to '3782/CH1/EX1.23')
-rw-r--r--3782/CH1/EX1.23/Ex1_23.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/3782/CH1/EX1.23/Ex1_23.sce b/3782/CH1/EX1.23/Ex1_23.sce
new file mode 100644
index 000000000..ecf6d49d3
--- /dev/null
+++ b/3782/CH1/EX1.23/Ex1_23.sce
@@ -0,0 +1,28 @@
+
+//ch-1 page -40,41 pb-2
+
+//
+
+//
+
+
+a=257
+b=156
+c=103
+
+
+t1=acos((a*a+b*b-(c*c))/(2*a*b))
+t1=t1*(180/%pi)
+
+dg1=int(t1)
+mi1=t1-int(t1)
+mi1=(mi1*60)
+printf("\n theta1= %0.3f degrees %0.3f minutes",dg1,mi1)
+
+
+t2=acos((c*c+b*b-(a*a))/(2*c*b))
+t2=t2*(180/%pi)
+dg=int(t2)
+mi=t2-int(t2)
+mi=(mi*60)
+printf("\n theta2= %0.3f degrees %0.3f minutes",dg,mi)