summaryrefslogtreecommitdiff
path: root/3014/CH4/EX4.18/Ex4_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '3014/CH4/EX4.18/Ex4_18.sce')
-rwxr-xr-x3014/CH4/EX4.18/Ex4_18.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3014/CH4/EX4.18/Ex4_18.sce b/3014/CH4/EX4.18/Ex4_18.sce
new file mode 100755
index 000000000..a894f4969
--- /dev/null
+++ b/3014/CH4/EX4.18/Ex4_18.sce
@@ -0,0 +1,13 @@
+
+clc
+//Given that
+t = 1.8e-5 // Relaxation time in second
+epsilon_r = 1 // let
+printf("Example 4.18")
+f = 1/(2*%pi*t) // Calculation of frequency
+delta = atan(epsilon_r/epsilon_r)
+phi = 90 - delta*180/%pi // Calculation of phase difference
+printf("\n Frequency is %f KHz\n",f/1e3)
+printf(" Phase difference between current and voltage is %d degree.",phi)
+
+