diff options
Diffstat (limited to '3809/CH7/EX7.2/EX7_2.sce')
-rw-r--r-- | 3809/CH7/EX7.2/EX7_2.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3809/CH7/EX7.2/EX7_2.sce b/3809/CH7/EX7.2/EX7_2.sce new file mode 100644 index 000000000..10601776e --- /dev/null +++ b/3809/CH7/EX7.2/EX7_2.sce @@ -0,0 +1,20 @@ +//Chapter 7, Example 7.2 + +clc +//Initialisation +s=2000 //apparent power +p=0.75 //power factor +v=240 //voltage +//Calculation + +ap=s*p //active power +phi=sqrt(1-(p**2)) //phase angle in radians +q=s*phi //reactive power in var +i=s/v //current in ampere + + +//Results +printf("(a) Apparent Power, S = %d VA\n",s) +printf("(b) Active Power, P = %d W\n",ap) +printf("(c) Reactive Power, Q = %d var\n",q) +printf("(d) Current, I = %.2f A\n",i) |