diff options
Diffstat (limited to '608/CH20/EX20.01/20_01.sce')
-rwxr-xr-x | 608/CH20/EX20.01/20_01.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/608/CH20/EX20.01/20_01.sce b/608/CH20/EX20.01/20_01.sce new file mode 100755 index 000000000..66175a6ea --- /dev/null +++ b/608/CH20/EX20.01/20_01.sce @@ -0,0 +1,13 @@ +//Problem 20.01: A transformer has 500 primary turns and 3000 secondary turns. If the primary voltage is 240 V, determine the secondary voltage, assuming an ideal transformer.
+
+//initializing the variables:
+N1 = 500; // primary turns
+N2 = 3000; // secondary turns
+V1 = 240; // in Volts
+
+//calculation:
+//For an ideal transformer, voltage ratio = turns ratio
+V2 = V1*N2/N1
+
+printf("\n\n Result \n\n")
+printf("\n secondary voltage %.2E V",V2)
\ No newline at end of file |