summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch1_1.sce
blob: a0e4f4d6d869570b132d993cfa16aadba8a577e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc
disp("Example 1.1")
printf("\n")
printf("Given")
disp("Acceleration is 2.0m/s^2")
disp("Mass is 10kg")
m=10;a=2;
disp("a)")
disp("F=m*a")
F=m*a
printf("Force is %dN\n",F)
disp("b)")
printf("time=4s\n")
t=4;
x=(a*t*t)/2
KE=(F*x)
P=KE/t
printf("Position is %dm\n",x)
printf("Kinetic energy =%3.1fJ\n",KE)
printf("Power =%3.1fW\n",P)