summaryrefslogtreecommitdiff
path: root/1553/CH34/EX34.1/34Ex1.sce
blob: fcf4dc6bdd1c7e968aa7f4686e864936e9303271 (plain)
1
2
3
4
5
6
7
8
9
//Chapter 34 Ex 1

clc;
clear;
close;
d1=2*sqrt(3); d2=2;
x=d1/d2;
theta=atan(x);
mprintf("The angle of elevation is %.2f degree",((theta*180)/%pi));