summaryrefslogtreecommitdiff
path: root/2870/CH2/EX2.9/Ex2_9.sce
blob: b92a6e92573d3a63178e8057f43b8e1c5f8aabfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;clear;
//Example 2.9

//given values
m=900;
v1=0;
v2=80/3.6;//converting km/h into m/s
t=20;

//calculation
Wa=m*(v2^2-v1^2)/2/1000;
Wavg=Wa/t;
disp(Wavg,'the average power in kW')