blob: bb2415261775ce520ee206c96652a772b3a0bd66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//chapter-6,Example6_3,pg 178
phi=(%pi/180)*30//conversion into radian
bplus=3//ellipse cutting +ve minor axis
bminus=-3//ellipse cutting -ve minor axis
theta=atan(2/1)//angle of major axis of ellipse(Vy/Vh=2:1)
y1=(bplus/sin(phi))//length of vertical axis
printf("length of vertical axis \n")
printf("y1=%.2f cm",y1)
|