summaryrefslogtreecommitdiff
path: root/2915/CH1/EX1.4/Ex1_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2915/CH1/EX1.4/Ex1_4.sce')
-rwxr-xr-x2915/CH1/EX1.4/Ex1_4.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/2915/CH1/EX1.4/Ex1_4.sce b/2915/CH1/EX1.4/Ex1_4.sce
new file mode 100755
index 000000000..3501070d6
--- /dev/null
+++ b/2915/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,9 @@
+clc,clear
+//example 1.4
+//To determine height of the top of ladder touching the wall
+
+ladder = 17 //length of ladder or hypotenuse in feet
+base = 8 //distance between lower tip of ladder and wall in feet
+//Using pythagoras theorem
+h=sqrt(ladder^2 - base^2) //required height
+printf('Required height of top of ladder in contact with wall = %.0f ft',h)