summaryrefslogtreecommitdiff
path: root/2915/CH2/EX2.14/Ex2_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '2915/CH2/EX2.14/Ex2_14.sce')
-rwxr-xr-x2915/CH2/EX2.14/Ex2_14.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2915/CH2/EX2.14/Ex2_14.sce b/2915/CH2/EX2.14/Ex2_14.sce
new file mode 100755
index 000000000..e82ffe556
--- /dev/null
+++ b/2915/CH2/EX2.14/Ex2_14.sce
@@ -0,0 +1,11 @@
+//Example 2.14
+//To determine area of triangle when 3 angles and a side is given
+clc,clear
+
+A=115 //angle at vertex A
+a=12 //side opposite to vertex A
+B=25 //angle at vertex B
+C=40 //angle at vertex C
+
+area_K = a^2*sind(B)*sind(C)/(2*sind(A))
+printf('Area of triangle ABC = %.2f square units',area_K)