From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3159/CH7/EX7.1/Ex7_1.sce | 9 +++++++++ 3159/CH7/EX7.1/Ex7_1.txt | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 3159/CH7/EX7.1/Ex7_1.sce create mode 100755 3159/CH7/EX7.1/Ex7_1.txt (limited to '3159/CH7/EX7.1') diff --git a/3159/CH7/EX7.1/Ex7_1.sce b/3159/CH7/EX7.1/Ex7_1.sce new file mode 100755 index 000000000..03a44b98e --- /dev/null +++ b/3159/CH7/EX7.1/Ex7_1.sce @@ -0,0 +1,9 @@ +// Find degrees of freedom of a system of two components +clc +c = 2 // number of components +printf("\n Example 7.1") +for n = 1:4 + p = (c-1) +2 // Total variables + f = c-n+2 // degree of freedom + printf("\n\n Degree of freedom for two components when \n number of phases is %d is %d",n,f) +end diff --git a/3159/CH7/EX7.1/Ex7_1.txt b/3159/CH7/EX7.1/Ex7_1.txt new file mode 100755 index 000000000..97d15f7f3 --- /dev/null +++ b/3159/CH7/EX7.1/Ex7_1.txt @@ -0,0 +1,14 @@ + + Example 7.1 + + Degree of freedom for two components when + number of phases is 1 is 3 + + Degree of freedom for two components when + number of phases is 2 is 2 + + Degree of freedom for two components when + number of phases is 3 is 1 + + Degree of freedom for two components when + number of phases is 4 is 0 \ No newline at end of file -- cgit