This preview shows page 1. Sign up to view the full content.
Unformatted text preview: G=pi/N; Ab=((0.5*W)^2)/(tan(G))*N; As=W*N*H; V=Ab*H; SA=2*Ab+As; >> [SA,V]=POLY_PRISM(6,1,3) SA = 23.1962 V = 7.7942 >> [SA,V]=POLY_PRISM(3,1,3) SA = 9.8660 V = 1.2990 >> [SA,V]=POLY_PRISM(8,0.5,10) SA = 42.4142 V = 12.0711 START INPUT N,W,H Ab=((W/2)^2/tan(G/N))N As=N*W*H Vt=Ab*H At=2*Ab+As OUTPUT Vt, AT STOP...
View Full Document
This note was uploaded on 03/19/2008 for the course ENGE 1114 taught by Professor Twknott during the Fall '06 term at Virginia Tech.
- Fall '06