File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 {
3030 "cell_type" : " code" ,
3131 "execution_count" : null ,
32- "metadata" : {},
32+ "metadata" : {
33+ "collapsed" : true
34+ },
3335 "outputs" : [],
3436 "source" : [
3537 " x = sample.int(100, 1)\n " ,
5658 {
5759 "cell_type" : " code" ,
5860 "execution_count" : null ,
59- "metadata" : {},
61+ "metadata" : {
62+ "collapsed" : true
63+ },
6064 "outputs" : [],
6165 "source" : [
6266 " x = sample.int(100, 1)\n " ,
118122 {
119123 "cell_type" : " code" ,
120124 "execution_count" : null ,
121- "metadata" : {},
125+ "metadata" : {
126+ "collapsed" : true
127+ },
122128 "outputs" : [],
123129 "source" : [
124130 " x = sample.int(100, 1)\n " ,
151157 {
152158 "cell_type" : " code" ,
153159 "execution_count" : null ,
154- "metadata" : {},
160+ "metadata" : {
161+ "collapsed" : true
162+ },
155163 "outputs" : [],
156164 "source" : [
157165 " x = sample.int(100, 1)\n " ,
183191 {
184192 "cell_type" : " code" ,
185193 "execution_count" : null ,
186- "metadata" : {},
194+ "metadata" : {
195+ "collapsed" : true
196+ },
187197 "outputs" : [],
188198 "source" : [
189199 " x = sample.int(100, 1)\n " ,
243253 {
244254 "cell_type" : " code" ,
245255 "execution_count" : null ,
246- "metadata" : {},
256+ "metadata" : {
257+ "collapsed" : true
258+ },
247259 "outputs" : [],
248260 "source" : [
249261 " x = sample.int(100, 1)\n " ,
295307 {
296308 "cell_type" : " code" ,
297309 "execution_count" : null ,
298- "metadata" : {},
310+ "metadata" : {
311+ "collapsed" : true
312+ },
299313 "outputs" : [],
300314 "source" : [
301315 " a = sample.int(100, 1)\n " ,
302316 " b = sample.int(100, 1)\n " ,
303317 " \n " ,
304- " a^2 + b^2 + (2*a*b) == (a + b^2"
318+ " a^2 + b^2 + (2*a*b) == (a + b) ^2"
305319 ]
306320 }
307321 ],
Original file line number Diff line number Diff line change 2222 {
2323 "cell_type" : " code" ,
2424 "execution_count" : null ,
25- "metadata" : {},
25+ "metadata" : {
26+ "collapsed" : true
27+ },
2628 "outputs" : [],
2729 "source" : [
2830 " # Create a dataframe with an x column containing values to plot\n " ,
5658 {
5759 "cell_type" : " code" ,
5860 "execution_count" : null ,
59- "metadata" : {},
61+ "metadata" : {
62+ "collapsed" : true
63+ },
6064 "outputs" : [],
6165 "source" : [
6266 " # Create a dataframe with an x column containing values to plot\n " ,
99103 {
100104 "cell_type" : " code" ,
101105 "execution_count" : null ,
102- "metadata" : {},
106+ "metadata" : {
107+ "collapsed" : true
108+ },
103109 "outputs" : [],
104110 "source" : [
105111 " plot_parabola = function(a, b, c){\n " ,
184190 {
185191 "cell_type" : " code" ,
186192 "execution_count" : null ,
187- "metadata" : {},
193+ "metadata" : {
194+ "collapsed" : true
195+ },
188196 "outputs" : [],
189197 "source" : [
190198 " plot_parabola_limits = function(a, b, c){\n " ,
268276 {
269277 "cell_type" : " code" ,
270278 "execution_count" : null ,
271- "metadata" : {},
279+ "metadata" : {
280+ "collapsed" : true
281+ },
272282 "outputs" : [],
273283 "source" : [
274284 " y = 0\n " ,
363373 {
364374 "cell_type" : " code" ,
365375 "execution_count" : null ,
366- "metadata" : {},
376+ "metadata" : {
377+ "collapsed" : true
378+ },
367379 "outputs" : [],
368380 "source" : [
369381 " x1 = as.integer(-sqrt(16) - 3)\n " ,
437449 {
438450 "cell_type" : " code" ,
439451 "execution_count" : null ,
440- "metadata" : {},
452+ "metadata" : {
453+ "collapsed" : true
454+ },
441455 "outputs" : [],
442456 "source" : [
443457 " x = sample.int(100, 1)\n " ,
474488 "cell_type" : " code" ,
475489 "execution_count" : null ,
476490 "metadata" : {
491+ "collapsed" : true ,
477492 "scrolled" : false
478493 },
479494 "outputs" : [],
516531 {
517532 "cell_type" : " code" ,
518533 "execution_count" : null ,
519- "metadata" : {},
534+ "metadata" : {
535+ "collapsed" : true
536+ },
520537 "outputs" : [],
521538 "source" : [
522539 " plot_parabola_from_vertex_form(3, -1, -1)"
557574 " \n " ,
558575 " To find ***h***, we perform the following calculation:\n " ,
559576 " \n " ,
560- " \\ begin{equation}h = \\ frac{-b}{2a}\\ ;\\ ;\\ ;\\ ;=\\ ;\\ ;\\ ;\\ ;\\ frac{-1 \\ cdot16 }{2\\ cdot2}\\ ;\\ ;\\ ;\\ ;=\\ ;\\ ;\\ ;\\ ;\\ frac{16}{4}\\ ;\\ ;\\ ;\\ ;=\\ ;\\ ;\\ ;\\ ;4\\ end{equation}\n " ,
577+ " \\ begin{equation}h = \\ frac{-b}{2a}\\ ;\\ ;\\ ;\\ ;=\\ ;\\ ;\\ ;\\ ;\\ frac{-1 - 16 }{2\\ cdot2}\\ ;\\ ;\\ ;\\ ;=\\ ;\\ ;\\ ;\\ ;\\ frac{16}{4}\\ ;\\ ;\\ ;\\ ;=\\ ;\\ ;\\ ;\\ ;4\\ end{equation}\n " ,
561578 " \n " ,
562579 " Then we simply plug the value we've obtained for ***h*** into the quadratic equation in order to find ***k***:\n " ,
563580 " \n " ,
608625 {
609626 "cell_type" : " code" ,
610627 "execution_count" : null ,
611- "metadata" : {},
628+ "metadata" : {
629+ "collapsed" : true
630+ },
612631 "outputs" : [],
613632 "source" : [
614633 " plot_parabola_from_formula = function(a, b, c){\n " ,
You can’t perform that action at this time.
0 commit comments