From dc33cc90de882a74d470cd7fae13e4f3ca77e650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= Date: Mon, 28 Mar 2016 21:50:06 +0200 Subject: [PATCH] Saved notebook again with basic NumPy --- Basic Python Packages for Science.ipynb | 108 +++++++++++++----------- 1 file changed, 58 insertions(+), 50 deletions(-) diff --git a/Basic Python Packages for Science.ipynb b/Basic Python Packages for Science.ipynb index ebe820e..a58eb60 100644 --- a/Basic Python Packages for Science.ipynb +++ b/Basic Python Packages for Science.ipynb @@ -69,7 +69,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": { "collapsed": false }, @@ -83,7 +83,7 @@ "" ] }, - "execution_count": 2, + "execution_count": 1, "metadata": {}, "output_type": "execute_result" } @@ -173,7 +173,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "metadata": { "collapsed": true }, @@ -184,7 +184,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 3, "metadata": { "collapsed": false }, @@ -193,7 +193,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "1000 loops, best of 3: 1.54 ms per loop\n" + "1000 loops, best of 3: 1.62 ms per loop\n" ] } ], @@ -204,7 +204,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 4, "metadata": { "collapsed": false }, @@ -213,8 +213,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "The slowest run took 6.73 times longer than the fastest. This could mean that an intermediate result is being cached.\n", - "10000 loops, best of 3: 95.7 µs per loop\n" + "10000 loops, best of 3: 98.6 µs per loop\n" ] } ], @@ -232,7 +231,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 5, "metadata": { "collapsed": false }, @@ -243,7 +242,7 @@ "array([1, 2, 3, 4])" ] }, - "execution_count": 11, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -255,7 +254,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 6, "metadata": { "collapsed": false }, @@ -268,7 +267,7 @@ " [7, 8, 9]])" ] }, - "execution_count": 10, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -282,7 +281,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 7, "metadata": { "collapsed": false }, @@ -293,7 +292,7 @@ "9" ] }, - "execution_count": 12, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -304,7 +303,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 8, "metadata": { "collapsed": false }, @@ -315,7 +314,7 @@ "(3, 3)" ] }, - "execution_count": 13, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -326,7 +325,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 9, "metadata": { "collapsed": false }, @@ -337,7 +336,7 @@ "dtype('int64')" ] }, - "execution_count": 14, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -348,7 +347,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 10, "metadata": { "collapsed": false }, @@ -361,7 +360,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 11, "metadata": { "collapsed": false }, @@ -372,7 +371,7 @@ "array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14])" ] }, - "execution_count": 19, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -384,7 +383,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 12, "metadata": { "collapsed": false }, @@ -397,7 +396,7 @@ " [10, 11, 12, 13, 14]])" ] }, - "execution_count": 20, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -408,7 +407,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 13, "metadata": { "collapsed": false }, @@ -421,7 +420,7 @@ " 9. , 9.5, 10. ])" ] }, - "execution_count": 21, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -439,7 +438,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 14, "metadata": { "collapsed": false }, @@ -447,10 +446,10 @@ { "data": { "text/plain": [ - "2.5" + "1" ] }, - "execution_count": 37, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -461,7 +460,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 15, "metadata": { "collapsed": false }, @@ -469,10 +468,10 @@ { "data": { "text/plain": [ - "91" + "9" ] }, - "execution_count": 38, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -490,7 +489,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 16, "metadata": { "collapsed": false }, @@ -503,7 +502,7 @@ " 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98])" ] }, - "execution_count": 40, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -515,7 +514,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 17, "metadata": { "collapsed": false }, @@ -533,7 +532,7 @@ " [1, 0, 1, 0, 1, 0, 1, 0]])" ] }, - "execution_count": 36, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -556,7 +555,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 18, "metadata": { "collapsed": false }, @@ -568,7 +567,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 19, "metadata": { "collapsed": false }, @@ -588,7 +587,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 20, "metadata": { "collapsed": false }, @@ -601,7 +600,7 @@ " [33, 16, 91]])" ] }, - "execution_count": 29, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -616,7 +615,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 21, "metadata": { "collapsed": false }, @@ -629,7 +628,7 @@ " [10497, 9813, 11910]])" ] }, - "execution_count": 34, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -640,7 +639,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 22, "metadata": { "collapsed": false }, @@ -651,7 +650,7 @@ "array([ 240.4, 250.8, 783.1])" ] }, - "execution_count": 35, + "execution_count": 22, "metadata": {}, "output_type": "execute_result" } @@ -664,7 +663,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 23, "metadata": { "collapsed": false }, @@ -677,7 +676,7 @@ " [-0.03598099, -0.05634759, 0.03394433]])" ] }, - "execution_count": 27, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" } @@ -688,7 +687,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 24, "metadata": { "collapsed": false }, @@ -702,7 +701,7 @@ " [-0.92335283, 0.1138173 , 0.60198985]]))" ] }, - "execution_count": 28, + "execution_count": 24, "metadata": {}, "output_type": "execute_result" } @@ -727,7 +726,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 25, "metadata": { "collapsed": true }, @@ -871,7 +870,16 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 26, "metadata": { "collapsed": false }, @@ -1026,7 +1034,7 @@ "" ] }, - "execution_count": 1, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" }