mirror of
http://CODE.RHODECODE.COM/u/O/O/O
synced 2024-11-24 02:58:41 -05:00
1 line
25 KiB
Plaintext
1 line
25 KiB
Plaintext
{"cells":[{"cell_type":"code","metadata":{"source_hash":"bb7e432c","execution_start":1699813215683,"execution_millis":2726,"deepnote_app_coordinates":{"h":5,"w":12,"x":0,"y":0},"deepnote_to_be_reexecuted":false,"cell_id":"1c24d01f42554ffc8072aff5dcd23315","deepnote_cell_type":"code"},"source":"import numpy as np\nimport plotly.graph_objects as go\nfrom math import *\nimport mpmath\nfrom ipywidgets import interact, widgets\n\nN_slider = widgets.IntSlider(min=1, max=16, value=8)\nRANGE_FROM_SLIDER=widgets.FloatSlider(min=0, max=4*pi, value=0*pi, step=pi/4)\nRANGE_TO_SLIDER=widgets.FloatSlider(min=0, max=4*pi, value=4*pi,step=pi/4)\ndef clamp(x):\n return max(min(1, x), -1)\ndef kappa(formula, x):\n func_dict = {fn: eval(f'lambda *args: mpmath.{fn}(*args)') for fn in dir(mpmath)}\n return float(eval(formula, {'x': x, 'clamp': clamp, **func_dict}))\ndef plot(formula='(1 - cos(((4)/2)*x))/2', RANGE_FROM=0, RANGE_TO=4*pi, N=8):\n num_points = 1+2**N\n\n # Generate x values with the specified number of points\n x_vals = np.linspace(RANGE_FROM, RANGE_TO, num_points)\n\n # Compute kappa values\n kappa_vals = np.array([kappa(formula, x_val) for x_val in x_vals])\n\n theta_vals = np.cumsum(kappa_vals) * (x_vals[1]-x_vals[0]) if num_points > 1 else np.array([0])\n x_coords_ = np.cumsum(np.cos(theta_vals)) * (x_vals[1] - x_vals[0]) if num_points > 1 else np.array([0])\n y_coords_ = np.cumsum(np.sin(theta_vals)) * (x_vals[1] - x_vals[0]) if num_points > 1 else np.array([0])\n\n # Check if the first point is zero, if not, add it manually\n if x_coords_[0] != 0 or y_coords_[0] != 0:\n x_coords = np.insert(x_coords_, 0, 0)\n y_coords = np.insert(y_coords_, 0, 0)\n else:\n x_coords = x_coords_\n y_coords = y_coords_\n\n fig = go.Figure()\n\n fig.add_trace(go.Scatter(x=x_coords, y=y_coords, mode='lines', name='Curve'))\n\n fig.update_layout(autosize=True, xaxis=dict(scaleanchor='y', scaleratio=1))\n fig.show()\n\n# Create the interactive plot\ninteract(plot, formula='(1 - cos(((4)/2)*x))/2', RANGE_FROM=RANGE_FROM_SLIDER, RANGE_TO=RANGE_TO_SLIDER, N=N_slider);","block_group":"1c24d01f42554ffc8072aff5dcd23315","execution_count":1,"outputs":[{"output_type":"clear_output"},{"data":{"text/html":"<html>\n<head><meta charset=\"utf-8\" /></head>\n<body>\n <div> <script src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG\"></script><script type=\"text/javascript\">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}</script> <script type=\"text/javascript\">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>\n <script charset=\"utf-8\" src=\"https://cdn.plot.ly/plotly-2.26.0.min.js\"></script> <div id=\"0864f4f9-e103-4c35-87f2-5cf680c5f794\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"0864f4f9-e103-4c35-87f2-5cf680c5f794\")) { Plotly.newPlot( \"0864f4f9-e103-4c35-87f2-5cf680c5f794\", [{\"mode\":\"lines\",\"name\":\"Curve\",\"x\":[0.0,0.04908738521234052,0.09817477008186463,0.14726214675677857,0.19634946542177054,0.245436547407922,0.29452292322791024,0.3436075770270656,0.3926885841849525,0.44176263495785606,0.4908244438890929,0.5398660519814511,0.5888760360612518,0.6378386470932503,0.6867329061463031,0.7355316929659873,0.7842008673736939,0.832698467662632,0.8809740324765943,0.928968093025726,0.9766118806382796,1.0238272903578864,1.070527134464086,1.11661571045146,1.1619896963540963,1.2065393727463685,1.2501501558867378,1.2927044110798869,1.3340835003368017,1.374170004812614,1.41285005129221,1.4500156640683775,1.48556705961813,1.5194148019571656,1.5514817415360636,1.5817046697747532,1.6100356342111322,1.6364428748707125,1.6609113597429117,1.683442914968159,1.704055962300578,1.7227848915356423,1.7396791080146858,1.7548018044488987,1.768228511863391,1.7800454864725959,1.790347988061579,1.7992385014819403,1.806824946841863,1.8132189166147772,1.8185339699458107,1.8228840065706755,1.8263817355358662,1.82913724773551,1.831256696413882,1.832841086321547,1.83398517011358,1.834776449679955,1.8352942801558545,1.8356090750789074,1.8357816122330155,1.835862440855656,1.8358913918456679,1.8358971932180699,1.8358971932180699,1.8358971932180699,1.8358913918456679,1.835862440855656,1.8357816122330155,1.8356090750789074,1.8352942801558545,1.834776449679955,1.83398517011358,1.832841086321547,1.831256696413882,1.82913724773551,1.8263817355358662,1.8228840065706755,1.8185339699458107,1.8132189166147772,1.806824946841863,1.7992385014819403,1.790347988061579,1.7800454864725959,1.768228511863391,1.7548018044488987,1.7396791080146858,1.7227848915356423,1.704055962300578,1.6834429149681587,1.6609113597429113,1.6364428748707123,1.610035634211132,1.5817046697747525,1.5514817415360627,1.5194148019571647,1.4855670596181292,1.4500156640683766,1.412850051292209,1.374170004812613,1.3340835003368008,1.2927044110798862,1.250150155886737,1.2065393727463676,1.1619896963540957,1.1166157104514591,1.0705271344640854,1.0238272903578856,0.9766118806382788,0.9289680930257251,0.8809740324765934,0.8326984676626311,0.784200867373693,0.7355316929659864,0.6867329061463023,0.6378386470932494,0.5888760360612509,0.5398660519814502,0.490824443889092,0.4417626349578551,0.3926885841849516,0.3436075770270647,0.29452292322790935,0.2454365474079211,0.19634946542176962,0.14726214675677765,0.09817477008186372,0.0490873852123396,-9.155654807272659e-16,-0.04908738521234143,-0.09817477008186555,-0.14726214675677948,-0.19634946542177145,-0.24543654740792292,-0.2945229232279112,-0.34360757702706657,-0.39268858418495345,-0.441762634957857,-0.49082444388909396,-0.5398660519814522,-0.5888760360612529,-0.6378386470932513,-0.6867329061463042,-0.7355316929659883,-0.784200867373695,-0.8326984676626332,-0.8809740324765956,-0.9289680930257272,-0.9766118806382809,-1.0238272903578876,-1.0705271344640874,-1.1166157104514611,-1.1619896963540977,-1.2065393727463696,-1.2501501558867392,-1.2927044110798886,-1.3340835003368032,-1.3741700048126155,-1.4128500512922118,-1.450015664068379,-1.4855670596181318,-1.5194148019571674,-1.5514817415360653,-1.5817046697747552,-1.6100356342111346,-1.636442874870715,-1.6609113597429142,-1.6834429149681613,-1.7040559623005807,-1.7227848915356452,-1.7396791080146887,-1.7548018044489013,-1.7682285118633936,-1.7800454864725985,-1.7903479880615816,-1.799238501481943,-1.8068249468418656,-1.81321891661478,-1.8185339699458134,-1.8228840065706784,-1.8263817355358691,-1.8291372477355126,-1.8312566964138848,-1.8328410863215499,-1.8339851701135828,-1.8347764496799577,-1.8352942801558572,-1.83560907507891,-1.8357816122330184,-1.8358624408556588,-1.8358913918456707,-1.8358971932180728,-1.8358971932180728,-1.8358971932180728,-1.8358913918456707,-1.8358624408556588,-1.8357816122330184,-1.83560907507891,-1.8352942801558576,-1.8347764496799581,-1.8339851701135836,-1.8328410863215505,-1.8312566964138854,-1.8291372477355137,-1.8263817355358705,-1.8228840065706802,-1.8185339699458152,-1.8132189166147816,-1.8068249468418678,-1.7992385014819452,-1.790347988061584,-1.780045486472601,-1.768228511863396,-1.7548018044489042,-1.7396791080146914,-1.722784891535648,-1.7040559623005838,-1.683442914968165,-1.6609113597429177,-1.6364428748707185,-1.6100356342111382,-1.581704669774759,-1.5514817415360693,-1.5194148019571714,-1.4855670596181358,-1.4500156640683832,-1.4128500512922162,-1.37417000481262,-1.3340835003368077,-1.292704411079893,-1.2501501558867438,-1.2065393727463745,-1.1619896963541025,-1.116615710451466,-1.0705271344640923,-1.0238272903578924,-0.976611880638286,-0.9289680930257322,-0.8809740324766007,-0.8326984676626382,-0.7842008673737001,-0.7355316929659935,-0.6867329061463094,-0.6378386470932567,-0.5888760360612583,-0.5398660519814575,-0.4908244438890993,-0.44176263495786244,-0.3926885841849589,-0.343607577027072,-0.2945229232279167,-0.24543654740792842,-0.19634946542177695,-0.14726214675678498,-0.09817477008187105,-0.04908738521234693,-6.408958365090861e-15,0.049087385212334106],\"y\":[0.0,0.0,5.801372402087249e-06,3.4752362413920125e-05,0.00011558098505434232,0.00028811813916276976,0.0006029130622154091,0.0011207435381149161,0.0019120231044897416,0.0030561068965228367,0.0046404968041879,0.006759945482559819,0.0095154576822033,0.013013186647393897,0.017363223272258914,0.022678276603292503,0.029072246376206867,0.036658691736129595,0.04554920515649094,0.055851706745473906,0.06766868135467882,0.0810953887691709,0.09621808520338368,0.11311230168242713,0.1318412309174915,0.15245427824991062,0.17498583347515798,0.19945431834735713,0.22586155900693755,0.2541925234433168,0.2844154516820065,0.3164823912609045,0.35033013359994003,0.38588152914969265,0.42304714192585996,0.4617271884054561,0.5018136928812684,0.5431927821381831,0.5857470373313324,0.6293578204717019,0.6739074968639738,0.7192814827666103,0.765370058753984,0.8120699028601838,0.8592853125797904,0.906929100192344,0.9549231607414757,1.003198725555438,1.0516963258443761,1.1003655002520827,1.1491642870717669,1.1980585461248197,1.247021157156818,1.2960311412366188,1.3450727493289771,1.394134558260214,1.4432086090331175,1.4922896161910044,1.5413742699901596,1.590460645810148,1.6395477277962993,1.6886350464612914,1.7377224231362052,1.7868098080057295,1.8358971932180699,1.8849845784304105,1.9340719632999348,1.9831593399748486,2.0322466586398407,2.081333740625992,2.1304201164459804,2.179504770245136,2.2285857774030227,2.277659828175926,2.326721637107163,2.375763245199521,2.424773229279322,2.4737358403113205,2.522630099364373,2.5714288861840573,2.620098060591764,2.6685956608807024,2.7168712256946645,2.764865286243796,2.81250907385635,2.8597244835759565,2.906424327682156,2.95251290366953,2.9978868895721664,3.042436565964439,3.0860473491048084,3.1286016042979576,3.169980693554872,3.2100671980306847,3.248747244510281,3.2859128572864487,3.321464252836201,3.355311995175237,3.3873789347541345,3.4176018629928238,3.445932827429203,3.4723400680887835,3.4968085529609825,3.51934010818623,3.539953155518649,3.5586820847537135,3.5755763012327564,3.590698997666969,3.604125705081461,3.615942679690666,3.6262451812796486,3.63513569470001,3.6427221400599326,3.6491161098328466,3.65443116316388,3.658781199788745,3.6622789287539352,3.6650344409535784,3.66715388963195,3.668738279539615,3.669882363331648,3.670673642898023,3.6711914733739226,3.6715062682969752,3.6716788054510836,3.6717596340737235,3.6717885850637355,3.671794386436138,3.671794386436138,3.671794386436138,3.6717885850637355,3.6717596340737235,3.6716788054510836,3.6715062682969752,3.6711914733739226,3.670673642898023,3.669882363331648,3.668738279539615,3.66715388963195,3.6650344409535784,3.6622789287539352,3.658781199788745,3.65443116316388,3.6491161098328466,3.6427221400599326,3.63513569470001,3.6262451812796486,3.615942679690666,3.604125705081461,3.590698997666969,3.5755763012327564,3.5586820847537135,3.539953155518649,3.51934010818623,3.4968085529609825,3.4723400680887835,3.445932827429203,3.4176018629928238,3.3873789347541345,3.355311995175237,3.321464252836201,3.2859128572864487,3.248747244510281,3.2100671980306847,3.169980693554873,3.128601604297958,3.086047349104809,3.0424365659644392,2.9978868895721678,2.9525129036695312,2.9064243276821577,2.8597244835759583,2.8125090738563516,2.764865286243798,2.7168712256946663,2.668595660880704,2.620098060591766,2.571428886184059,2.522630099364375,2.473735840311322,2.4247732292793236,2.375763245199523,2.326721637107165,2.2776598281759277,2.228585777403024,2.179504770245137,2.130420116445982,2.0813337406259937,2.0322466586398424,1.9831593399748504,1.9340719632999364,1.8849845784304122,1.8358971932180717,1.7868098080057313,1.737722423136207,1.6886350464612931,1.639547727796301,1.5904606458101498,1.5413742699901616,1.4922896161910062,1.4432086090331193,1.3941345582602158,1.345072749328979,1.2960311412366206,1.2470211571568197,1.1980585461248214,1.1491642870717687,1.1003655002520845,1.0516963258443779,1.0031987255554395,0.9549231607414772,0.9069291001923455,0.8592853125797919,0.8120699028601851,0.7653700587539853,0.7192814827666115,0.673907496863975,0.629357820471703,0.5857470373313335,0.5431927821381842,0.5018136928812695,0.4617271884054572,0.423047141925861,0.38588152914969365,0.35033013359994103,0.31648239126090544,0.2844154516820074,0.25419252344331755,0.22586155900693825,0.1994543183473578,0.17498583347515856,0.15245427824991117,0.131841230917492,0.11311230168242753,0.09621808520338404,0.0810953887691712,0.06766868135467909,0.05585170674547412,0.04554920515649113,0.03665869173612979,0.029072246376207075,0.02267827660329272,0.01736322327225913,0.013013186647394105,0.009515457682203472,0.006759945482559926,0.0046404968041879446,0.003056106896522817,0.0019120231044896798,0.0011207435381148038,0.0006029130622152574,0.00028811813916254414,0.00011558098505404872,3.475236241356586e-05,5.801372401664433e-06,-4.961315447550567e-16,-5.953511990410336e-16,-6.945708533270105e-16],\"type\":\"scatter\"}], {\"template\":{\"data\":{\"histogram2dcontour\":[{\"type\":\"histogram2dcontour\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"choropleth\":[{\"type\":\"choropleth\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}],\"histogram2d\":[{\"type\":\"histogram2d\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmap\":[{\"type\":\"heatmap\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"type\":\"heatmapgl\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"type\":\"contourcarpet\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}],\"contour\":[{\"type\":\"contour\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"surface\":[{\"type\":\"surface\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"type\":\"mesh3d\",\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}],\"scatter\":[{\"fillpattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2},\"type\":\"scatter\"}],\"parcoords\":[{\"type\":\"parcoords\",\"line\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"type\":\"scatterpolargl\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"scattergeo\":[{\"type\":\"scattergeo\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"type\":\"scatterpolar\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"histogram\"}],\"scattergl\":[{\"type\":\"scattergl\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"type\":\"scatter3d\",\"line\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}},\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"type\":\"scattermapbox\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"type\":\"scatterternary\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"type\":\"scattercarpet\",\"marker\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}}}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"#EBF0F8\"},\"line\":{\"color\":\"white\"}},\"header\":{\"fill\":{\"color\":\"#C8D4E3\"},\"line\":{\"color\":\"white\"}},\"type\":\"table\"}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"pie\":[{\"automargin\":true,\"type\":\"pie\"}]},\"layout\":{\"autotypenumbers\":\"strict\",\"colorway\":[\"#636efa\",\"#EF553B\",\"#00cc96\",\"#ab63fa\",\"#FFA15A\",\"#19d3f3\",\"#FF6692\",\"#B6E880\",\"#FF97FF\",\"#FECB52\"],\"font\":{\"color\":\"#2a3f5f\"},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"paper_bgcolor\":\"white\",\"plot_bgcolor\":\"#E5ECF6\",\"polar\":{\"bgcolor\":\"#E5ECF6\",\"angularaxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\"},\"radialaxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\"}},\"ternary\":{\"bgcolor\":\"#E5ECF6\",\"aaxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\"},\"baxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\"},\"caxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\"}},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"}},\"colorscale\":{\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"diverging\":[[0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1,\"#276419\"]]},\"xaxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\",\"title\":{\"standoff\":15},\"zerolinecolor\":\"white\",\"automargin\":true,\"zerolinewidth\":2},\"yaxis\":{\"gridcolor\":\"white\",\"linecolor\":\"white\",\"ticks\":\"\",\"title\":{\"standoff\":15},\"zerolinecolor\":\"white\",\"automargin\":true,\"zerolinewidth\":2},\"scene\":{\"xaxis\":{\"backgroundcolor\":\"#E5ECF6\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"showbackground\":true,\"ticks\":\"\",\"zerolinecolor\":\"white\",\"gridwidth\":2},\"yaxis\":{\"backgroundcolor\":\"#E5ECF6\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"showbackground\":true,\"ticks\":\"\",\"zerolinecolor\":\"white\",\"gridwidth\":2},\"zaxis\":{\"backgroundcolor\":\"#E5ECF6\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"showbackground\":true,\"ticks\":\"\",\"zerolinecolor\":\"white\",\"gridwidth\":2}},\"shapedefaults\":{\"line\":{\"color\":\"#2a3f5f\"}},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"geo\":{\"bgcolor\":\"white\",\"landcolor\":\"#E5ECF6\",\"subunitcolor\":\"white\",\"showland\":true,\"showlakes\":true,\"lakecolor\":\"white\"},\"title\":{\"x\":0.05},\"mapbox\":{\"style\":\"light\"}}},\"xaxis\":{\"scaleanchor\":\"y\",\"scaleratio\":1},\"autosize\":true}, {\"responsive\": true} ).then(function(){\n \nvar gd = document.getElementById('0864f4f9-e103-4c35-87f2-5cf680c5f794');\nvar x = new MutationObserver(function (mutations, observer) {{\n var display = window.getComputedStyle(gd).display;\n if (!display || display === 'none') {{\n console.log([gd, 'removed!']);\n Plotly.purge(gd);\n observer.disconnect();\n }}\n}});\n\n// Listen for the removal of the full notebook cells\nvar notebookContainer = gd.closest('#notebook-container');\nif (notebookContainer) {{\n x.observe(notebookContainer, {childList: true});\n}}\n\n// Listen for the clearing of the current output cell\nvar outputEl = gd.closest('.output');\nif (outputEl) {{\n x.observe(outputEl, {childList: true});\n}}\n\n }) }; </script> </div>\n</body>\n</html>"},"metadata":{},"output_type":"display_data"},{"data":{"text/plain":"interactive(children=(Text(value='(1 - cos(((4)/2)*x))/2', description='formula'), FloatSlider(value=0.0, desc…","application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"08c2fcad69ec47349198c9bde4384ad9"}},"metadata":{},"output_type":"display_data"}]},{"cell_type":"markdown","source":"<a style='text-decoration:none;line-height:16px;display:flex;color:#5B5B62;padding:10px;justify-content:end;' href='https://deepnote.com?utm_source=created-in-deepnote-cell&projectId=8c5a40bb-495f-496b-b56a-e1104dd28d49' target=\"_blank\">\n<img alt='Created in deepnote.com' style='display:inline;max-height:16px;margin:0px;margin-right:7.5px;' src='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODBweCIgaGVpZ2h0PSI4MHB4IiB2aWV3Qm94PSIwIDAgODAgODAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU0LjEgKDc2NDkwKSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT5Hcm91cCAzPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9IkxhbmRpbmciIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyMzUuMDAwMDAwLCAtNzkuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0zIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMjM1LjAwMDAwMCwgNzkuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aC0yMCIgZmlsbD0iIzAyNjVCNCIgcG9pbnRzPSIyLjM3NjIzNzYyIDgwIDM4LjA0NzY2NjcgODAgNTcuODIxNzgyMiA3My44MDU3NTkyIDU3LjgyMTc4MjIgMzIuNzU5MjczOSAzOS4xNDAyMjc4IDMxLjY4MzE2ODMiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0zNS4wMDc3MTgsODAgQzQyLjkwNjIwMDcsNzYuNDU0OTM1OCA0Ny41NjQ5MTY3LDcxLjU0MjI2NzEgNDguOTgzODY2LDY1LjI2MTk5MzkgQzUxLjExMjI4OTksNTUuODQxNTg0MiA0MS42NzcxNzk1LDQ5LjIxMjIyODQgMjUuNjIzOTg0Niw0OS4yMTIyMjg0IEMyNS40ODQ5Mjg5LDQ5LjEyNjg0NDggMjkuODI2MTI5Niw0My4yODM4MjQ4IDM4LjY0NzU4NjksMzEuNjgzMTY4MyBMNzIuODcxMjg3MSwzMi41NTQ0MjUgTDY1LjI4MDk3Myw2Ny42NzYzNDIxIEw1MS4xMTIyODk5LDc3LjM3NjE0NCBMMzUuMDA3NzE4LDgwIFoiIGlkPSJQYXRoLTIyIiBmaWxsPSIjMDAyODY4Ij48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMCwzNy43MzA0NDA1IEwyNy4xMTQ1MzcsMC4yNTcxMTE0MzYgQzYyLjM3MTUxMjMsLTEuOTkwNzE3MDEgODAsMTAuNTAwMzkyNyA4MCwzNy43MzA0NDA1IEM4MCw2NC45NjA0ODgyIDY0Ljc3NjUwMzgsNzkuMDUwMzQxNCAzNC4zMjk1MTEzLDgwIEM0Ny4wNTUzNDg5LDc3LjU2NzA4MDggNTMuNDE4MjY3Nyw3MC4zMTM2MTAzIDUzLjQxODI2NzcsNTguMjM5NTg4NSBDNTMuNDE4MjY3Nyw0MC4xMjg1NTU3IDM2LjMwMzk1NDQsMzcuNzMwNDQwNSAyNS4yMjc0MTcsMzcuNzMwNDQwNSBDMTcuODQzMDU4NiwzNy43MzA0NDA1IDkuNDMzOTE5NjYsMzcuNzMwNDQwNSAwLDM3LjczMDQ0MDUgWiIgaWQ9IlBhdGgtMTkiIGZpbGw9IiMzNzkzRUYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+' > </img>\nCreated in <span style='font-weight:600;margin-left:4px;'>Deepnote</span></a>","metadata":{"created_in_deepnote_cell":true,"deepnote_cell_type":"markdown"}}],"nbformat":4,"nbformat_minor":0,"metadata":{"deepnote":{},"orig_nbformat":2,"deepnote_app_width":"full-width","deepnote_app_layout":"powerful-article","deepnote_notebook_id":"c317aba669da4fb499152be5080afa28","deepnote_app_clear_outputs":false,"deepnote_app_comments_enabled":false,"deepnote_execution_queue":[]}} |