summaryrefslogtreecommitdiff
path: root/620/CH25/EX25.16
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /620/CH25/EX25.16
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '620/CH25/EX25.16')
-rw-r--r--620/CH25/EX25.16/example25_16.sce16
-rw-r--r--620/CH25/EX25.16/example25_16.txtbin0 -> 278 bytes
2 files changed, 16 insertions, 0 deletions
diff --git a/620/CH25/EX25.16/example25_16.sce b/620/CH25/EX25.16/example25_16.sce
new file mode 100644
index 000000000..1e49a9557
--- /dev/null
+++ b/620/CH25/EX25.16/example25_16.sce
@@ -0,0 +1,16 @@
+m_v1=50;
+m_v2=30;
+m_v3=75;
+deg_v1=20*%pi/180;
+deg_v2=50*%pi/180;
+deg_v3=-80*%pi/180;
+v1=m_v1*(cos(deg_v1)+%i*sin(deg_v1));
+v2=m_v2*(cos(deg_v2)+%i*sin(deg_v2));
+v3=m_v3*(cos(deg_v3)+%i*sin(deg_v3));
+v=v1+v2+v3;
+a=real(v);
+b=imag(v);
+m_v=sqrt(a^2+b^2);
+deg_v=atan(b/a)*180/%pi;
+disp("the the supply voltage (in V) has a magnitude of"); disp(m_v);
+disp("with a phase angle (in degrees) of"); disp(deg_v); \ No newline at end of file
diff --git a/620/CH25/EX25.16/example25_16.txt b/620/CH25/EX25.16/example25_16.txt
new file mode 100644
index 000000000..ab3839b6c
--- /dev/null
+++ b/620/CH25/EX25.16/example25_16.txt
Binary files differ