summaryrefslogtreecommitdiff
path: root/569/CH4/EX4.11
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /569/CH4/EX4.11
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '569/CH4/EX4.11')
-rwxr-xr-x569/CH4/EX4.11/4_11.sci29
1 files changed, 29 insertions, 0 deletions
diff --git a/569/CH4/EX4.11/4_11.sci b/569/CH4/EX4.11/4_11.sci
new file mode 100755
index 000000000..06b666f5d
--- /dev/null
+++ b/569/CH4/EX4.11/4_11.sci
@@ -0,0 +1,29 @@
+// Calculate the value of resistance at different values of time
+clc;
+Gain=0.3925;
+T=75;
+p_duration=Gain*T;
+tc=5.5;
+Rin=100;
+t=1;
+Rt=p_duration*(1-exp(-t/tc))+Rin;
+disp(Rt,'Value of resistance after 1s(ohm)=')
+t=2;
+Rt=p_duration*(1-exp(-t/tc))+Rin;
+disp(Rt,'Value of resistance after 2s(ohm)=')
+t=3;
+Rt=p_duration*(1-exp(-t/tc))+Rin;
+disp(Rt,'Value of resistance after 3s(ohm)=')
+R_inc=Rt-Rin;
+t=5;
+Rt=(R_inc)*[exp(-(t-3)/(5.5))]+Rin;
+disp(Rt,'Value of resistance after 5s(ohm)=')
+t=10;
+Rt=(R_inc)*[exp(-(t-3)/(5.5))]+Rin;
+disp(Rt,'Value of resistance after 10s(ohm)=')
+t=20;
+Rt=(R_inc)*[exp(-(t-3)/(5.5))]+Rin;
+disp(Rt,'Value of resistance after 20s(ohm)=')
+t=30;
+Rt=(R_inc)*[exp(-(t-3)/(5.5))]+Rin;
+disp(Rt,'Value of resistance after 30s(ohm)=') \ No newline at end of file