diff options
author | Trupti Kini | 2016-09-26 23:32:22 +0600 |
---|---|---|
committer | Trupti Kini | 2016-09-26 23:32:22 +0600 |
commit | 39c9bc3ad786fc6057e0011070ee2afd6f16c1c5 (patch) | |
tree | 9e24127eeb164639e8134129acea4fdac77e7f75 /sample_notebooks/asmitaasmita | |
parent | c0bcf4055a0cfaae9b91349b7fe5f3e7e96ca87d (diff) | |
download | Python-Textbook-Companions-39c9bc3ad786fc6057e0011070ee2afd6f16c1c5.tar.gz Python-Textbook-Companions-39c9bc3ad786fc6057e0011070ee2afd6f16c1c5.tar.bz2 Python-Textbook-Companions-39c9bc3ad786fc6057e0011070ee2afd6f16c1c5.zip |
Added(A)/Deleted(D) following books
M Basic_Electronics_Electronics_Engineering_by_J_B_Gupta/README.txt
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter10_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter11_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter12_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter13_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter14_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter15_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter16_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter2_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter3_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter4_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter5_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter6_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter7_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/Chapter8_1.ipynb
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/screenshots/2correlationCoeff_1.png
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/screenshots/2expansionofSignal_1.png
M Modern_Digital_And_Analog_Communication_System_by_B._P._Lathi/screenshots/2timeInvertedsignal_1.png
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter10_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter11_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter15_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter1_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter2_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter3_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter5_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter6_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter7_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter8_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/Chapter9_1.ipynb
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/screenshots/ctftch1.png
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/screenshots/fourierTransch1.png
M Principle_of_Communication_Engineering_by_A._Singh_and_A._K._Chhabra/screenshots/modulatedWaveChap3_1.png
M Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/README.txt
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter10_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter11_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter12_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter1_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter2_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter3_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter4_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter5_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter6_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter7_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter8_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/Chapter9_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/chapter13_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/chapter14_1.ipynb
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/screenshots/Chapter10.png
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/screenshots/Chapter1_1.png
M Solid_State_Electronic_Devices_by_D.K_Bhattacharya_,_Rajnish_Sharma/screenshots/Chapter5.png
M Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/README.txt
M Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/README.txt
M Thermodynamics_by_Gaggioli_and_Obert/Ch18.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/Ch8.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch1.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch10.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch11.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch12.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch13.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch14.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch15.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch16.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch17.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch2.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch3.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch5.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch7.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/ch9.ipynb
M Thermodynamics_by_Gaggioli_and_Obert/screenshots/changeInMoisture14.png
M Thermodynamics_by_Gaggioli_and_Obert/screenshots/degreeOfSaturation14.png
M Thermodynamics_by_Gaggioli_and_Obert/screenshots/humidityratio14.png
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter1.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter10.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter11.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter12.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter14.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter15.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter16.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter2.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter3.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter4.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter5.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter6.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter7.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/Chapter9.ipynb
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/screenshots/1.png
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/screenshots/2.png
A Unified_Physics_by_S.L._Gupta,_Sanjeev_Gupta/screenshots/3.png
M f_by_134/1_An_overview_of_C++.ipynb
A f_by_134/1_An_overview_of_C++_1.ipynb
A f_by_134/screenshots/anshul.png
A f_by_134/screenshots/anshul_1.png
A f_by_134/screenshots/anshul_2.png
M f_by_134/screenshots/chapter14_eg3.png
M f_by_134/screenshots/chapter14_eg6.png
M f_by_134/screenshots/chapter14_eg6_1.png
M f_by_df/ashvani.ipynb
M f_by_df/chapter03_16.ipynb
M f_by_df/chapter03_16_1.ipynb
M f_by_df/screenshots/1.png
M f_by_df/screenshots/2.png
M f_by_df/screenshots/3.png
M f_by_df/screenshots/chapter14_eg10.png
M f_by_df/screenshots/chapter14_eg3.png
M f_by_df/screenshots/chapter14_eg6.png
M f_by_df/screenshots/image.png
M f_by_df/screenshots/image_1.png
M f_by_df/screenshots/image_2.png
M sample_notebooks/AditiMalik/Chapter6.ipynb
M sample_notebooks/IshitaGupta/Chapter12.ipynb
M sample_notebooks/MeenaChandrupatla/Chapter2_Gases_2.ipynb
M sample_notebooks/RONAKBANSAL/chapter_1.ipynb
M sample_notebooks/SufiyanSiddique/Chapter2.ipynb
M sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb
M sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb
A sample_notebooks/asmitaasmita/1_An_overview_of_C++_2.ipynb
M sample_notebooks/chayas/DimensionsSystemUnits.ipynb
Diffstat (limited to 'sample_notebooks/asmitaasmita')
-rwxr-xr-x[-rw-r--r--] | sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb | 0 | ||||
-rw-r--r-- | sample_notebooks/asmitaasmita/1_An_overview_of_C++_2.ipynb | 254 |
3 files changed, 254 insertions, 0 deletions
diff --git a/sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb b/sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb index ecf52ddd..ecf52ddd 100644..100755 --- a/sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb +++ b/sample_notebooks/asmitaasmita/1_An_overview_of_C++.ipynb diff --git a/sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb b/sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb index ecf52ddd..ecf52ddd 100644..100755 --- a/sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb +++ b/sample_notebooks/asmitaasmita/1_An_overview_of_C++_1.ipynb diff --git a/sample_notebooks/asmitaasmita/1_An_overview_of_C++_2.ipynb b/sample_notebooks/asmitaasmita/1_An_overview_of_C++_2.ipynb new file mode 100644 index 00000000..ecf52ddd --- /dev/null +++ b/sample_notebooks/asmitaasmita/1_An_overview_of_C++_2.ipynb @@ -0,0 +1,254 @@ +{ + "metadata": { + "name": "1 An overview of C++" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 1 , Page Number: 14#\\n#This program outputs a string, two integer values, and a double floating-point value. #\ni=10\nj=20\nd=99.101\nprint ('Here are some values : %d %d %2.3f'%(i,j,d))\n ", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Here are some values : 10 20 99.101\n" + } + ], + "prompt_number": 1 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 3 , Page Number: 16#\n\n#Variable declaration\ni=100\n\n#Result\nprint('Enter a value: 100')\nprint 'Here\\'s your number: ',i\n\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter a value: 100\nHere's your number: 100\n" + } + ], + "prompt_number": 2 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 4 , Page Number 16#\n\n#Variable declaration\ni=10\nf=100.12\ns='Hello World'\n\n#Result\nprint 'Enter an integer,float and string: ',i,f,s\nprint 'Here\\'s your data: ',i,f,s \n ", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": " Enter an integer,float and string: 10 100.12 Hello World\nHere's your data: 10 100.12 Hello World\n" + } + ], + "prompt_number": 2 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 5 , Page Number 17#\n\n#Variable declaration\nch='X'\n\n#Result\nprint 'Enter keys,X to stop.'\n\n#while loop\nwhile ch!='X':\n if(ch!='X'): \n print ': ',ch\n else:\n break", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter keys,X to stop.\n" + } + ], + "prompt_number": 4 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 1 , Page Number 19#\n\n#Variable declaration\na=199\n\nprint 'Enter number to be tested: ',a\n#if loop\nif a % 2 == 0:\n#Result\n print 'Number is even'\nelse:\n print 'Number is odd'\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter number to be tested: 199\nNumber is odd\n" + } + ], + "prompt_number": 5 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 3 ,Page Number 25#\n\n#class declaration\nclass Myclass():\n def __init__(self,c,d):\n self.a = c\n self.b = d\nobj = Myclass(10,99)\nobj.a,obj.b\n\n#Result\nprint obj.a\nprint obj.b", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "10\n99\n" + } + ], + "prompt_number": 6 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 2 , Page Number 30#\n\n#DefiningFunction\ndef sum(a,b):\n return a+b\na=10\nb=40\n\n#Result\nprint 'Enter two numbers: ',a,b\nprint 'Sum is: ',sum(a,b)", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter two numbers: 10 40\nSum is: 50\n" + } + ], + "prompt_number": 7 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 3 , Page Number 31#\n\n#Variable declaration\ni=5\nprint 'Enter number: ',i\nfact=1\nfor j in range(i):\n fact = fact * (j+1)\n \n#Result\nprint 'Factorial is ',fact\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter number: 5\nFactorial is 120\n" + } + ], + "prompt_number": 8 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 4 ,Page Number 32#\n\noutcome = 'false'\n\n#if loop\nif(outcome):\n print 'true'\nelse:\n print 'false'", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "true\n" + } + ], + "prompt_number": 9 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 2 ,Page Number 36#\n\n#Defining function\ndef get_date(day=None, month=None, year=None, as_string=None):\n\tif as_string:\n\t\tprint 'Date:', as_string\n\telse:\n\t\tif not (day and month and year):\n\t\t\traise Exception(\"Invalid Date arguments\")\n\t\tprint \"Date : %d/%d/%d\" % (month, day, year)\n\n\nif __name__ == '__main__':\n\tget_date(as_string=\"3/12/2013\")\n\tget_date(day=12, month=3, year=2013)\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Date: 3/12/2013\nDate : 3/12/2013\n" + } + ], + "prompt_number": 10 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Exercise 1.3 Q3 , Page Number 18#\n\n#Variable declaration\na=4\nb=8\nd=2\nprint 'Enter two numbers: ',a,b\nif a>b:\n min=b\nelse:\n min=a\nfor d in range(d,min):\n if a % d == 0 and b % d == 0: \n break\nif d == min:\n print 'No common denominators ' \nelse:\n print 'The lowest common denominator is ',d\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter two numbers: 4 8\nThe lowest common denominator is 2\n" + } + ], + "prompt_number": 11 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Ex 1 , Page Number 34#\n\nprint 'Absolute value of -10: ',abs(-10)\nprint 'Absolute value of -10L: ',abs(-10L)\nprint 'Absolute value of -10.01: ',abs(-10.01)\n\n#Defining function\ndef abs(n):\n print 'In integer abs() '\n \n\ndef abs(n):\n print 'In longs abs() '\n\ndef abs(n):\n print 'In double abs() '\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Absolute value of -10: 10\nAbsolute value of -10L: 10\nAbsolute value of -10.01: 10.01\n" + } + ], + "prompt_number": 12 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Excercise 1 , Page Number 18#\n\n#Variable declaration\nhours=3\nwage=2000\n\n#Result\nprint 'Enter hours worked: ',hours\n\nprint 'Enter wage per hour: ',wage\nprint 'Pay is: $',wage*hours", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter hours worked: 3\nEnter wage per hour: 2000\nPay is: $ 6000\n" + } + ], + "prompt_number": 13 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Exercise 2 , Page Number 18#\n\n#Variable declaration\nfeet = 5.0\n\n#If loop\nif(feet == 0.0):\n print 'Wrong inpt.'\nelse:\n print 'Enter feet :',feet\n #Result\n print feet*12,'inches'\n ", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Enter feet : 5.0\n60.0 inches\n" + } + ], + "prompt_number": 14 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Exercise 1.7 Q1 , Page Number 38#\n\nimport math\n\n#Result\nprint 'Square root of 90.34 is : ',math.sqrt(90.34)\nprint 'Square root of 90L is: ',math.sqrt(90L)\nprint 'Square root of 90 is: ',math.sqrt(90)\n\n#Defining functions\ndef sqrt(n):\n print 'computing integer root '\n \n\ndef sqrt(n):\n print 'computing long root '\n\ndef sqrt(n):\n print 'computing double root '", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Square root of 90.34 is : 9.50473566176\nSquare root of 90L is: 9.48683298051\nSquare root of 90 is: 9.48683298051\n" + } + ], + "prompt_number": 15 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#Example 3 , Page Number 36#\n\n#Defining functions\ndef f1(a=None,b=None,c=None):\n if a:\n print 'In f1',(a)\n else:\n if not (b and c):\n raise Exception(\"Invalid arguments\")\n print 'In f1',(b,c)\nif __name__ == '__main__':\n\tf1(a=10)\n\tf1(b=10, c=20)", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "In f1 10\nIn f1 (10, 20)\n" + } + ], + "prompt_number": 16 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |