summaryrefslogtreecommitdiff
path: root/3648/CH3/EX3.9/Ex3_9.sce
blob: 7b480d8a157b192fe18ecf1a2f6462a0d7dc4e09 (plain)
1
2
3
4
5
6
7
8
9
//Example 3_9
clc();
clear;
//To find how above the water is the bridge
v0=0  //units in meters/sec
t=3  //units in sec
a=-9.8   //units in meters/sec^2
y=(v0*t)+(0.5*a*t^2)  //units in meters
printf("The bridge is y=%d meters above the water",y)