summaryrefslogtreecommitdiff
path: root/2915/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2915/CH2/EX2.4/Ex2_4.sce')
-rwxr-xr-x2915/CH2/EX2.4/Ex2_4.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2915/CH2/EX2.4/Ex2_4.sce b/2915/CH2/EX2.4/Ex2_4.sce
new file mode 100755
index 000000000..bf69fe635
--- /dev/null
+++ b/2915/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,14 @@
+//Example 2.4
+//To solve the triangle when 2 sides and angle between them is given
+clc,clear
+
+c=5 //side oposite to vertex C
+A=30 //angle at vertex A
+b=4 //side opposite to vertex B
+
+printf('By law of sines:\n')
+printf('a/sin(30) = 4/sin(B) = 5 / sin(C)\n')
+printf('\nEach of the equations has 2 unknowns.')
+printf('\nFor eg: To obtain a , we can use 4/sin(B)=5/sin(C). Next we obtain B interms of C and put back.\n')
+printf('Now we have a in terms of C which is unknown\n')
+printf('Hence it is IMPOSSIBLE to solve this by law of sines')