##// END OF EJS Templates
Fix small typo - thanks to J. Grout for the notice
Fernando Perez -
Show More
@@ -53,12 +53,12 b''
53 "outputs": [
53 "outputs": [
54 {
54 {
55 "output_type": "stream",
55 "output_type": "stream",
56 "text": "The ingtegral is: 680.0 +/- 7.54951656745e-12\nThe trapezoid approximation with 6 points is: 621.286411141"
56 "text": "The integral is: 680.0 +/- 7.54951656745e-12\nThe trapezoid approximation with 6 points is: 621.286411141"
57 }
57 }
58 ],
58 ],
59 "collapsed": false,
59 "collapsed": false,
60 "prompt_number": 4,
60 "prompt_number": 4,
61 "input": "from scipy.integrate import quad, trapz\nintegral, error = quad(f, 1, 9)\nprint \"The ingtegral is:\", integral, \"+/-\", error\nprint \"The trapezoid approximation with\", len(xint), \"points is:\", trapz(yint, xint)"
61 "input": "from scipy.integrate import quad, trapz\nintegral, error = quad(f, 1, 9)\nprint \"The integral is:\", integral, \"+/-\", error\nprint \"The trapezoid approximation with\", len(xint), \"points is:\", trapz(yint, xint)"
62 },
62 },
63 {
63 {
64 "input": "",
64 "input": "",
@@ -71,7 +71,7 b''
71 }
71 }
72 ],
72 ],
73 "metadata": {
73 "metadata": {
74 "name": "trapezoid rule integration"
74 "name": "trapezoid_rule"
75 },
75 },
76 "nbformat": 2
76 "nbformat": 2
77 } No newline at end of file
77 }
General Comments 0
You need to be logged in to leave comments. Login now