summaryrefslogtreecommitdiff
path: root/testing_by_test
diff options
context:
space:
mode:
authorTrupti Kini2016-05-11 23:30:24 +0600
committerTrupti Kini2016-05-11 23:30:24 +0600
commit1d4690b561f56442e13217c8715e58fcb5ff29e5 (patch)
treef5038d168258224dafb128bbb0d892abfc13fc1b /testing_by_test
parent84efc3c811c1cfbb888e53daaaecf64faf477c52 (diff)
downloadPython-Textbook-Companions-1d4690b561f56442e13217c8715e58fcb5ff29e5.tar.gz
Python-Textbook-Companions-1d4690b561f56442e13217c8715e58fcb5ff29e5.tar.bz2
Python-Textbook-Companions-1d4690b561f56442e13217c8715e58fcb5ff29e5.zip
Added(A)/Deleted(D) following books
A Electrical_Engineering_Fundamentals_by__Del_Toro_Vincent_/README.txt A Electronic_Devices_And_Circuits_by_B._Kumar_And_S._B._Jain/README.txt A Fiber_Optics_and_Optoelectronics_by_R._P._Khare/README.txt A testing_by_test/README.txt A testing_by_test/muktesh.ipynb A testing_by_test/screenshots/screenshot6.png A testing_by_test/screenshots/screenshot6_1.png A testing_by_test/screenshots/screenshot6_2.png
Diffstat (limited to 'testing_by_test')
-rw-r--r--testing_by_test/README.txt10
-rw-r--r--testing_by_test/muktesh.ipynb146
-rw-r--r--testing_by_test/screenshots/screenshot6.pngbin0 -> 86681 bytes
-rw-r--r--testing_by_test/screenshots/screenshot6_1.pngbin0 -> 86681 bytes
-rw-r--r--testing_by_test/screenshots/screenshot6_2.pngbin0 -> 86681 bytes
5 files changed, 156 insertions, 0 deletions
diff --git a/testing_by_test/README.txt b/testing_by_test/README.txt
new file mode 100644
index 00000000..fdceeb95
--- /dev/null
+++ b/testing_by_test/README.txt
@@ -0,0 +1,10 @@
+Contributed By: asmita asmita
+Course: mtech
+College/Institute/Organization: sd
+Department/Designation: sd
+Book Title: testing
+Author: test
+Publisher: sdf
+Year of publication: 3
+Isbn: 3
+Edition: 3 \ No newline at end of file
diff --git a/testing_by_test/muktesh.ipynb b/testing_by_test/muktesh.ipynb
new file mode 100644
index 00000000..1b9503fc
--- /dev/null
+++ b/testing_by_test/muktesh.ipynb
@@ -0,0 +1,146 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 5: Sequential Circuits, Flip flops & Multivibrators"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 1, Page 183"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Required time=1.1 milli-seconds\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Variable declaration\n",
+ "R=10*10**3;#external resistance ohm#\n",
+ "C=0.1*10**-6;#timing capacitor Farad#\n",
+ "\n",
+ "#Calculations\n",
+ "T=1.1*R*C;#time for which output remains high in monostable multivibrator using IC 555 timer#\n",
+ "\n",
+ "#Result\n",
+ "print \"Required time=%.1f milli-seconds\"%(T*10**3)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 2, Page 183"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "frequency=48.10 KH\n",
+ "duty cycle=33.33 percent\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Variable declaration\n",
+ "Ra=10*10**3 #ohms\n",
+ "Rb=10*10**3 #ohms\n",
+ "C=.001*10**-6 #F\n",
+ "\n",
+ "#Calculations&Results\n",
+ "T1=.693*(Ra+Rb)*C;#charging time constant#\n",
+ "T2=.693*Rb*C;#discharging time constant#\n",
+ "T=T1+T2;#total time#\n",
+ "f=1./T;#frequency#\n",
+ "print 'frequency=%.2f KH'%(f*10**-3);\n",
+ "D=T2/T;#duty cycle#\n",
+ "D=D*100\n",
+ "print 'duty cycle=%.2f percent'%D\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 3, Page 184"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "frequency=1.077 KH\n",
+ "duty cycle=24.63 percent\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Variable declaration\n",
+ "Ra=6.8*10**3 #ohms\n",
+ "Rb=3.3*10**3 #ohms\n",
+ "C=.1*10**-6 #F\n",
+ "\n",
+ "#Calculations&Results\n",
+ "T1=.693*(Ra+Rb)*C;#charging time constant#\n",
+ "T2= .693*Rb*C;#discharging time constant#\n",
+ "T=T1+T2;#total time#\n",
+ "f=1/T#frequency#\n",
+ "print 'frequency=%.3f KH'%(f*10**-3)\n",
+ "D=T2/T;#duty cycle#\n",
+ "D=D*100\n",
+ "print 'duty cycle=%.2f percent'%D"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/testing_by_test/screenshots/screenshot6.png b/testing_by_test/screenshots/screenshot6.png
new file mode 100644
index 00000000..ae7ed518
--- /dev/null
+++ b/testing_by_test/screenshots/screenshot6.png
Binary files differ
diff --git a/testing_by_test/screenshots/screenshot6_1.png b/testing_by_test/screenshots/screenshot6_1.png
new file mode 100644
index 00000000..ae7ed518
--- /dev/null
+++ b/testing_by_test/screenshots/screenshot6_1.png
Binary files differ
diff --git a/testing_by_test/screenshots/screenshot6_2.png b/testing_by_test/screenshots/screenshot6_2.png
new file mode 100644
index 00000000..ae7ed518
--- /dev/null
+++ b/testing_by_test/screenshots/screenshot6_2.png
Binary files differ