summaryrefslogtreecommitdiff
path: root/1922/CH9/EX9.6.b/9_6b.sce
blob: 568da78e8384362db2ebe8d206770267bf3208af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
clear
//Initialization of variables
C=3
phi=1
R=1
Sc=1
function V=fun(C,phi,R,Sc)
    V=2+C-phi-R-Sc
endfunction
//calculations
V=fun(C,phi,R,Sc)
//results
printf("Degrees of freedom = %d ",V)