﻿<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="yQ_G,Fv=S+MzXSg-T{jP">n</variable>
    <variable id="0z=wR(JR:0no_z7:Qr_F">theta</variable>
    <variable id="|MCtpV1nrHAl9t{s$G!{">degree</variable>
    <variable id="0K_G,`d+)sdAN|X8a]xx">a</variable>
    <variable id="Fiw5U9RXb!Q5hxhSNkId">b</variable>
    <variable id="m4}tq(dQA%kMmPqAS]o~">r0</variable>
  </variables>
  <block type="events_start_here" id="DI_start_here" deletable="false" movable="false" x="25" y="33">
    <next>
      <block type="import_math" id="N$Es9iQ).:CAPVE-D}2e">
        <next>
          <block type="webtypeanything" id="+an^.?HLfmF,u?s`urQm">
            <value name="stuff">
              <shadow type="textinline" id="3HnUk^_GJ+4;{djmL)`H">
                <field name="text">import matplotlib.pyplot as plt</field>
              </shadow>
            </value>
            <next>
              <block type="webtypeanything" id="4p-uNNtfW*eK$Y=ttP*M">
                <value name="stuff">
                  <shadow type="textinline" id="ef{#Ap!LXLy.mhpMD96]">
                    <field name="text">import numpy as np</field>
                  </shadow>
                </value>
                <next>
                  <block type="webdefine" id="ZTWwR8?_S|F.MXqJCqEh">
                    <value name="1">
                      <shadow type="textinline" id="Ivx4/5{bqgukz}ds*W;)">
                        <field name="text">logSpiral</field>
                      </shadow>
                    </value>
                    <value name="2">
                      <shadow type="textinline" id="n?)gnO.$opE1lmr3UoIw">
                        <field name="text">a, r0, theta</field>
                      </shadow>
                    </value>
                    <statement name="DO">
                      <block type="webtypeanything" id="no3]k)IRD1Mrh,bd[@8D">
                        <value name="stuff">
                          <shadow type="textinline" id="j]LT_Nm,K(wD}lm~l4=d">
                            <field name="text">r = r0*np.exp(a*theta)</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="webtypeanything" id="X|o4hS429ojuo(:RlwFL">
                            <value name="stuff">
                              <shadow type="textinline" id="c@lK3.VSYb|BPg6=_5tK">
                                <field name="text">x = r*np.cos(theta)</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="webtypeanything" id="t+l2ikB,oyjC!K_IR)J1">
                                <value name="stuff">
                                  <shadow type="textinline" id="M3b^F1gPfzuZ{N,Mc:qW">
                                    <field name="text">y = r*np.sin(theta)</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="webreturn2" id="7|l$G%Y8Hm^LlRNo!;b3">
                                    <value name="return">
                                      <shadow type="textinline" id="$:*/$pa%0PXoM`Ph8_%-">
                                        <field name="text">(x,y)</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="variables_set" id="3qXw%r5E$f2J#Dqo7`vT">
                        <field name="VAR" id="m4}tq(dQA%kMmPqAS]o~">r0</field>
                        <field name="NAME">=</field>
                        <value name="varset">
                          <shadow type="textinline" id="@}|scgm^`Mu67H@%bm80">
                            <field name="text">1</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="variables_set" id="8-Fwx]$_amOAYz/~|/a|">
                            <field name="VAR" id="0K_G,`d+)sdAN|X8a]xx">a</field>
                            <field name="NAME">=</field>
                            <value name="varset">
                              <shadow type="textinline" id="H~QNH/$V33Wcdz3{{Z+1">
                                <field name="text">0.2</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="webtypeanything" id="qvEMLu@OGU1BO6G3E-,$">
                                <value name="stuff">
                                  <shadow type="textinline" id="DEJ}X+4dL^Y[*VMk1|ON">
                                    <field name="text">theta = np.linspace(0, 8*np.pi,1000)</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="webtypeanything" id="I}g%?h#;W)~q0Y6*-q%k">
                                    <value name="stuff">
                                      <shadow type="textinline" id="(X#0$5/*DrQ70~Y?gyaa">
                                        <field name="text">x, y = logSpiral(a, r0, theta)</field>
                                      </shadow>
                                    </value>
                                    <next>
                                      <block type="webtypeanything" id="iIA35!RzFux-ip#?SY`v">
                                        <value name="stuff">
                                          <shadow type="textinline" id="N.no4hbLExZnzt+=q{tE">
                                            <field name="text">plt.plot(x, y)</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="webtypeanything" id="P;TW4qv0uVEqr^-1It%6">
                                            <value name="stuff">
                                              <shadow type="textinline" id="N~$Ln`6fOe)3P-d/Dd!o">
                                                <field name="text">plt.show()</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
[]
</xml>