summaryrefslogtreecommitdiff
path: root/3785/CH3/EX3.9/Ex3_9.sce
blob: 2a6ddc4675c5147a8904f195aaa66b808fd09453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Example 3_9
clc;funcprot(0);
// Given data
v=10;// The volume of the tank in m^3
rho_s0=3.0;// The initial salt density in kg/m^3
t=0;// Time in s
Q=0.01;// The volume flow rate in m^3/s

// Calculation 
// (b)
// V=Q*t;
V=v*log(2);//
printf("\nThe volume of fresh water,V=%0.3f m^3",V);