summaryrefslogtreecommitdiff
path: root/1616/CH2/EX2.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1616/CH2/EX2.4
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 '1616/CH2/EX2.4')
-rw-r--r--1616/CH2/EX2.4/ex2_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1616/CH2/EX2.4/ex2_4.sce b/1616/CH2/EX2.4/ex2_4.sce
new file mode 100644
index 000000000..07c70ec1a
--- /dev/null
+++ b/1616/CH2/EX2.4/ex2_4.sce
@@ -0,0 +1,20 @@
+//ex2.4 from the previous ex.calculate attenuation const. and peak voltage
+y=complex(2.23,28.2);
+a=real(y);
+x1=0;
+t1=0;
+vt=8.66;
+o=%pi/6;
+disp('At x=0 and t=0, it is given that vt = 8.66 V.');
+V=vt/cosd(30);
+
+x2=1;
+t=100e-9;
+f=1e9;
+w=2*%pi*f;
+B=imag(y);
+vt1=10*exp(-a*x2)*cos(o+w*t-B*x);
+disp('The instantaneous voltage at x= 1m and t =100nsec is = '+string(vt1)+' V');
+pv=V*exp(-a*x2);
+disp('the peak voltage at x = 1m is = '+string(pv)+' V');
+