summaryrefslogtreecommitdiff
path: root/sample_notebooks
diff options
context:
space:
mode:
authorTrupti Kini2016-03-10 23:30:18 +0600
committerTrupti Kini2016-03-10 23:30:18 +0600
commit24dd1367c5c963b5ec424c7437e809c31186ad44 (patch)
tree96cb4bc58856cf187c573341da1ede15aa5156ba /sample_notebooks
parent4d2adc358c61de2d0381f6c1c8531454ce5a2a25 (diff)
downloadPython-Textbook-Companions-24dd1367c5c963b5ec424c7437e809c31186ad44.tar.gz
Python-Textbook-Companions-24dd1367c5c963b5ec424c7437e809c31186ad44.tar.bz2
Python-Textbook-Companions-24dd1367c5c963b5ec424c7437e809c31186ad44.zip
Added(A)/Deleted(D) following books
A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter11_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter13_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter14_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter15_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter16_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter17_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter21_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter22_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter23_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter26_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter2_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter4_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter5_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/Chapter9_1.ipynb A A_Textbook_of_Production_Engineering_by_P._C._Sharma/screenshots/21AOQCurve_1.png A A_Textbook_of_Production_Engineering_by_P._C._Sharma/screenshots/21X&RChart_1.png A A_Textbook_of_Production_Engineering_by_P._C._Sharma/screenshots/22CuttingVvsCutterDia_1.png A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_1.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_10.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_2.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_3.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_4.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_5.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_6.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_7.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_8.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/chapter_9.ipynb A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/screenshots/1.png A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/screenshots/2.png A Heat_And_Mass_Transfer_by_Vijay_K._Dwivedi/screenshots/3.png A Modern_Electronic_Instrumentation_And_Measurement_Techniques_by_A._D._Helfrick_And_W._D._Cooper/README.txt A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.10_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.1_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.2_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.3_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.4_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.5_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.6_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.7_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.8_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/chapter_no.9_1.ipynb A Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/B.M.D_1.JPG A Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/S.F.D_1.jpg A Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/S.F.D_2.jpg A "sample_notebooks/DaudIbrahir Saifi/Chapter_07_1.ipynb"
Diffstat (limited to 'sample_notebooks')
-rw-r--r--sample_notebooks/DaudIbrahir Saifi/Chapter_07_1.ipynb342
1 files changed, 342 insertions, 0 deletions
diff --git a/sample_notebooks/DaudIbrahir Saifi/Chapter_07_1.ipynb b/sample_notebooks/DaudIbrahir Saifi/Chapter_07_1.ipynb
new file mode 100644
index 00000000..aefd1c71
--- /dev/null
+++ b/sample_notebooks/DaudIbrahir Saifi/Chapter_07_1.ipynb
@@ -0,0 +1,342 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:012ab8557afdcfdae2cdc3da17271647415fc17ab95dd187f4df0903472edf45"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter - 7 : Cathode Ray Oscilloscopes"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.1 - Page No : 244"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "l=2.5 # in cm\n",
+ "l=l*10**-2 # in meter\n",
+ "d=.5 # in cm\n",
+ "d=d*10**-2 # in meter\n",
+ "S= 20 # in cm\n",
+ "S= S*10**-2 # in meter\n",
+ "Va= 2500 # in volts\n",
+ "# Formula y = OC*AB/OB = (S*d/2)/(l/2)\n",
+ "y = (S*d/2)/(l/2) # in meter\n",
+ "print \"The value of deflection = %0.f cm\" %(y*10**2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The value of deflection = 4 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.2 - Page No : 244"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " #Given data\n",
+ "R_E1= 5.6 # in kohm\n",
+ "C1= 0.2 # in micro F\n",
+ "V_B1= 6.3 # in volt\n",
+ "V_BE= 0.7 # in volt\n",
+ "TL= 2.5 # trigger level for the Schmitt trigger (UTP,LTP) in volt\n",
+ "del_V1= 2*TL # in volt\n",
+ "I_C1= (V_B1-V_BE)/R_E1 # in mA\n",
+ "print \"Charging current = %0.f mA\" %I_C1 \n",
+ "toh= del_V1*C1/I_C1 # in ms\n",
+ "print \"Time period = %0.f ms\" %toh"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Charging current = 1 mA\n",
+ "Time period = 1 ms\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.3 - Page No : 255"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from math import sqrt \n",
+ "#Given data\n",
+ "L=10 # trace length in cm\n",
+ "DS= 5 # deflection sensitivity in V/cm\n",
+ "V_peakTOpeak= L*DS # in volt\n",
+ "V_peak= V_peakTOpeak/2 # in volt\n",
+ "RMS= V_peak/sqrt(2) # RMS value of unknown as voltage in volt\n",
+ "print \"The value of AC voltage = %0.3f volts\" %RMS "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The value of AC voltage = 17.678 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.4 - Page No : 255"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division \n",
+ "#Given data\n",
+ "Y= 2+1/2 # Positive Y-peaks in pattern\n",
+ "X= 1/2+1/2 # Positive X-peaks in pattern\n",
+ "f_h= 3# frequency of horizontal voltage signal in kHz\n",
+ "f_yBYf_x= Y/X \n",
+ "# frequency of vertical voltage signal= f_yBYf_x * f_h\n",
+ "f_v= f_yBYf_x * f_h # frequency of vertical voltage signal in kHz\n",
+ "print \"frequency of vertical voltage signal = %0.1f kHz\" %f_v "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "frequency of vertical voltage signal = 7.5 kHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.5 - Page No : 256"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " #Given data\n",
+ "f_x= 1000 # in Hz\n",
+ "Y= 2 # points of tangency to vertical line\n",
+ "X= 5 # points of tangency to horizontal line\n",
+ "f_y= f_x*X/Y # in Hz\n",
+ "print \"Frequency of vertical input = %0.f Hz\" %f_y"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of vertical input = 2500 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.6 - Page No : 257"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " #Given data\n",
+ "f=2000 # in Hz\n",
+ "T=1/f # in sec\n",
+ "D=0.2 \n",
+ "PulseDuration= D*T # in sec\n",
+ "print \"The value of pulse duration = %0.1f ms\" %(PulseDuration*10**3) "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The value of pulse duration = 0.1 ms\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.7 - Page No : 258"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " #Given data\n",
+ "vertical_attenuation= 0.5 # in V/Div\n",
+ "TPD= 2 # time/Div control in micro sec\n",
+ "P= 4*vertical_attenuation # peak-to-peak amplitude of the signal in V \n",
+ "print \"Peak-to-Peak amplitude of the signal = %0.f V\" %P\n",
+ "T= 4*TPD # in micro sec\n",
+ "T=T*10**-6 # in sec\n",
+ "f=1/T # in Hz\n",
+ "print \"The value of frequency = %0.f kHz\" %(f*10**-3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Peak-to-Peak amplitude of the signal = 2 V\n",
+ "The value of frequency = 125 kHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.8 - Page No : 261"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from numpy import pi \n",
+ "#Given data\n",
+ "C_1N= 36 # in pF\n",
+ "C_2= 150 # in pF\n",
+ "R_1N= 1 # in M ohm\n",
+ "R_1= 10 # in M ohm\n",
+ "R_source= 500 # in ohm\n",
+ "# R_1/(omega*(C_2+C_1N)) = R_1N/(omega*C_1)\n",
+ "C_1= R_1N*(C_2+C_1N)/R_1 # in pF\n",
+ "C_T= 1/(1/C_1+1/(C_2+C_1N)) # in pF\n",
+ "C_T= C_T*10**-12 # in F\n",
+ "f= 1/(2*pi*C_T*R_source) \n",
+ "print \"Signal Frequency = %0.2f MHz\" %(f*10**-6)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Signal Frequency = 18.82 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example : 7.9 - Page No : 263"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " #Given data\n",
+ "f= 20 # in MHz\n",
+ "f=f*10**6 # in Hz\n",
+ "toh= 1/f # in sec\n",
+ "toh=toh*10**9 # in ns\n",
+ "# For one cycle occupying 4 horizontal divisions,\n",
+ "MTD= toh/4 # Minimum time/division in ns/division\n",
+ "# Using the 10 times magnifier to provide MTD\n",
+ "MTD_setting= 10*MTD # minimum time/division setting in ns/division\n",
+ "print \"Minimum time/division setting = %0.f ns/division\" %MTD_setting"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum time/division setting = 125 ns/division\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file