diff options
author | kinitrupti | 2017-05-12 18:40:35 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:40:35 +0530 |
commit | d36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch) | |
tree | 9806b0d68a708d2cfc4efc8ae3751423c56b7721 /backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter10.ipynb | |
parent | 1b1bb67e9ea912be5c8591523c8b328766e3680f (diff) | |
download | Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2 Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip |
Revised list of TBCs
Diffstat (limited to 'backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter10.ipynb')
-rwxr-xr-x | backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter10.ipynb | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter10.ipynb b/backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter10.ipynb new file mode 100755 index 00000000..66963b37 --- /dev/null +++ b/backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter10.ipynb @@ -0,0 +1,94 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c81ea1dd6c9cc1e2e41ac05c3336a82a69ef851ca3e89f18fcee6fcbfb433811" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter10 - Special Oscilloscopes" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 10.11.1 - page10-18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# sampling rate\n", + "#Given data :\n", + "N=10.0 #number of cycles\n", + "f1=1*10**3 #in Hz\n", + "f2=100*10**3 # in Hz\n", + "sampling_period1=N/f1 # in seconds\n", + "sampling_frequency1=1/sampling_period1 # in Hz\n", + "print \"sampling frequency of 1 kHz signal is \", sampling_frequency1, \" samples/second\"\n", + "sampling_period2=N/f2 # in seconds\n", + "sampling_frequency2=1/sampling_period2 # in Hz\n", + "print \"sampling frequency of 100 kHz signal is \", sampling_frequency2,\" samples/second\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sampling frequency of 1 kHz signal is 100.0 samples/second\n", + "sampling frequency of 100 kHz signal is 10000.0 samples/second\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example10.13.1 - page10-22" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# sampling rate\n", + "#Given data :\n", + "N=10.0 #number of cycles\n", + "f=1*10**3 #in Hz\n", + "sampling_period=N/f # in seconds\n", + "sampling_rate=1/sampling_period # in Hz\n", + "print \"sampling rate is \",sampling_rate,\" samples/second\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sampling rate is 100.0 samples/second\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |