summaryrefslogtreecommitdiff
path: root/3648/CH3/EX3.8/Ex3_8.sce
blob: fd939ab8df753a8b5117a82188211730c0598281 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 3_8
clc();
clear;
//To calculate the acceleration
vf=30  //units in meters/sec
v0=0  //units in meters/sec
t=9  //units in sec
a=(vf-v0)/t  //units in meters/sec^2
a=a*(1/1000)*(3600/1)*(3600/1)  //units in km/h^2
printf("Acceleration a=%d km/h^2",a)