summaryrefslogtreecommitdiff
path: root/557/CH4/EX4.3/3.sce
blob: 71b0a81faf2799851da3650c1a518c38a38616a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc;funcprot(0);
//Example 4.3

//Initializing the variables 
vx= -poly(3,'x');
vy = 2*poly(-2,'x');
vz = -poly(2,'x'); 

//Calculations
delVx = derivat(vx); 
delVy = derivat(vy);
delVz = derivat(vz); 

result = derivat(vx)+derivat(vy)+derivat(vz); //requirement of continuity equation (result = 0)
disp("Satisfy requirement of continuity ");