summaryrefslogtreecommitdiff
path: root/1958/CH1/EX1.7/Chapter1_example7.sce
blob: 18a52e474b6f574142aa380233a9ebf4cea80d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//Input data
a=30//Angle of inclination in degrees
t=3//Time in s

//Calculations
a=(9.8*sind(a))//Acceleration in m/s^2
v=(0+a*t)//Velocity in m/s

//Output
printf('Speed of the block after %i s is %3.1f m/s',t,v)