summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.2/2.sce
blob: 437ec2e6f18dec357d525dd87572bff3ee453c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//input
v=0 //car stops => final velocity=0
u=29 //initial velocity
t=11 //time 
//calculation of acceleration
a=(v-u)/t//eqn of uniformly accelerated body
//calculating distance travelled during this period
d=(v+u)*t*0.5//eqn of uniformly accelerated body
//output
printf("the accleration is %3.3f ms^-2 ",a)
printf("\nthe distance travelled is %3.3f m",d)