blob: 5b8d4b5ae2eee02e9e21ad6abf3ca780f6bdebf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
clear
//Initialization of variables
C=6
phi=1
R=3
Sc=0
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)
|