summaryrefslogtreecommitdiff
path: root/3532/CH1/EX1.7/Ex1_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3532/CH1/EX1.7/Ex1_7.sce
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 '3532/CH1/EX1.7/Ex1_7.sce')
-rw-r--r--3532/CH1/EX1.7/Ex1_7.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3532/CH1/EX1.7/Ex1_7.sce b/3532/CH1/EX1.7/Ex1_7.sce
new file mode 100644
index 000000000..fe16f356e
--- /dev/null
+++ b/3532/CH1/EX1.7/Ex1_7.sce
@@ -0,0 +1,26 @@
+clc
+clear
+mprintf('Mechanical vibrations by G.K.Grover\n Example 1.6.2\n')
+//given data
+//Z=r*e^(i*theta) is represented as Z=r*cos(theta) + i*r*sin(theta)= x +i*y
+//where r*cos(theta)=x and r*sin(theta)=y
+//case 1
+//V=5*e^(j*0.10)
+r1=5
+theta1=0.1
+x1=r1*cos(theta1)
+y1=r1*sin(theta1)
+v1=complex(x1,y1)
+//case 2
+//V=17*e^(-j*3.74)
+r2=17
+theta2=-3.74
+x2=r2*cos(theta2)
+y2=r2*sin(theta2)
+v2=complex(x2,y2)
+//output
+mprintf('case(i):V=5*e^(j*0.10) is represented as')
+disp(v1)
+mprintf('\ncase(ii):V=17*e^(-j*3.74) is represented as')
+disp(v2)
+mprintf('\nNOTE:complex number is represented as x+y*i in SCILAB')