diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3035/CH13/EX13.7 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3035/CH13/EX13.7')
-rwxr-xr-x | 3035/CH13/EX13.7/Ex13_7.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3035/CH13/EX13.7/Ex13_7.sce b/3035/CH13/EX13.7/Ex13_7.sce new file mode 100755 index 000000000..766191140 --- /dev/null +++ b/3035/CH13/EX13.7/Ex13_7.sce @@ -0,0 +1,16 @@ + +// Variable Declaration +I_a = 10.0*exp(%i*90*%pi/180) //Line current(A) +I_b = 10.0*exp(%i*-90*%pi/180) //Line current(A) +I_c = 10.0*exp(%i*0*%pi/180) //Line current(A) + +// Calculation Section +a = 1.0*exp(%i*120*%pi/180) //Operator +I_a0 = 1.0/3*(I_a+I_b+I_c) //Zero-sequence component(A) +I_a1 = 1.0/3*(I_a+a*I_b+a**2*I_c) //Positive-sequence component(A) +I_a2 = 1.0/3*(I_a+a**2*I_b+a*I_c) //Negative-sequence component(A) + +// Result Section +printf('Zero-sequence component , I_a0 = %.2f∠%.f° A' ,abs(I_a0),phasemag(I_a0)) +printf('Positive-sequence component , I_a1 = %.3f∠%.f° A' ,abs(I_a1),phasemag(I_a1)) +printf('Negative-sequence component , I_a2 = %.1f∠%.f° A' ,abs(I_a2),phasemag(I_a2)) |