summaryrefslogtreecommitdiff
path: root/165/CH5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /165/CH5
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 '165/CH5')
-rw-r--r--165/CH5/EX5.1/ex5_1.sce9
-rw-r--r--165/CH5/EX5.2/ex5_2.sce8
-rw-r--r--165/CH5/EX5.3/ex5_3.sce9
-rw-r--r--165/CH5/EX5.4/ex5_4.sce8
-rw-r--r--165/CH5/EX5.5/ex5_5.sce14
-rw-r--r--165/CH5/EX5.6/ex5_6.sce14
6 files changed, 62 insertions, 0 deletions
diff --git a/165/CH5/EX5.1/ex5_1.sce b/165/CH5/EX5.1/ex5_1.sce
new file mode 100644
index 000000000..338da18e6
--- /dev/null
+++ b/165/CH5/EX5.1/ex5_1.sce
@@ -0,0 +1,9 @@
+//Example 5.1
+clc;
+
+R=100*10^3; //Given value of resistence
+C=1*10^-6; //Given value of Capacitor
+Vin=1; //Input Voltage
+t=1; //Given time
+Vo=Vin*t/(R*C); //Output Voltage after time t
+disp(Vo,'Output Voltage') \ No newline at end of file
diff --git a/165/CH5/EX5.2/ex5_2.sce b/165/CH5/EX5.2/ex5_2.sce
new file mode 100644
index 000000000..f22b9580b
--- /dev/null
+++ b/165/CH5/EX5.2/ex5_2.sce
@@ -0,0 +1,8 @@
+//Example 5.2
+clc;
+
+Vin=1; //Input Voltage
+Vr=5; //Reference Voltage
+t1=1; //given time
+t2=Vin*t1/Vr;
+disp(t2,'Time Interval t2 is') \ No newline at end of file
diff --git a/165/CH5/EX5.3/ex5_3.sce b/165/CH5/EX5.3/ex5_3.sce
new file mode 100644
index 000000000..5cfb2e926
--- /dev/null
+++ b/165/CH5/EX5.3/ex5_3.sce
@@ -0,0 +1,9 @@
+//Example 5.3
+clc;
+
+R=100*10^3; //Given value of resistence
+C=2*10^-6; //Given value of Capacitor
+Vin=2; //Input Voltage
+t=2; //Given time
+Vo=Vin*t/(R*C); //Output Voltage after time t
+disp(Vo,'Output Voltage') \ No newline at end of file
diff --git a/165/CH5/EX5.4/ex5_4.sce b/165/CH5/EX5.4/ex5_4.sce
new file mode 100644
index 000000000..8a67b1cc1
--- /dev/null
+++ b/165/CH5/EX5.4/ex5_4.sce
@@ -0,0 +1,8 @@
+//Example 5.4
+clc;
+
+Vin=2; //Input Voltage
+Vr=10; //Reference Voltage
+t1=2; //given time
+t2=Vin*t1/Vr;
+disp(t2,'Time Interval t2 is') \ No newline at end of file
diff --git a/165/CH5/EX5.5/ex5_5.sce b/165/CH5/EX5.5/ex5_5.sce
new file mode 100644
index 000000000..f72ac87f2
--- /dev/null
+++ b/165/CH5/EX5.5/ex5_5.sce
@@ -0,0 +1,14 @@
+//Example 5.6
+clc;
+
+//Resolution of 3 1/2 digit display on 1V & 10V
+n=3; //No. of Full Digits
+R=1/10^n; //Resolution is 1/10^n
+
+//For 1V
+R1=R*1;
+disp(R1,'Resolution for 1V is')
+
+//For 10V
+R2=R*10;
+disp(R2,'Resolution for 10V is') \ No newline at end of file
diff --git a/165/CH5/EX5.6/ex5_6.sce b/165/CH5/EX5.6/ex5_6.sce
new file mode 100644
index 000000000..81227769d
--- /dev/null
+++ b/165/CH5/EX5.6/ex5_6.sce
@@ -0,0 +1,14 @@
+//Example 5.6
+clc;
+
+//A 4 1/2 digit display
+n=4; //No. of full digits
+R=1/10^n; //Resolution
+disp(R,'Resolution')
+
+//Resolution for 10V
+R10=R*10;
+disp(R10,'Resolution for 10V range')
+printf('\n12.98 V is displayed as %2.3f',12.98)
+printf('\n0.6973 V is displayed as %.4f',0.6973)
+printf('\n0.6973 V is displayed as %.3f',0.6973) \ No newline at end of file