summaryrefslogtreecommitdiff
path: root/858/CH1/EX1.11/example_11.sce
blob: 997b5093511b5f36464d616582b824f4565ce12a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc
clear
printf("example 1.11 page number 35\n\n")

//to find the average velocity

u = [2;1.92;1.68;1.28;0.72;0];
r = [0;1;2;3;4;5];

z = u.*r;
plot(r,z)
title("variation of ur with r")
xlabel("r")
ylabel("ur")

//by graphical integration, we get
u_avg = (2/25)*12.4
printf("average velocity = %f cm/s\n",u_avg)