<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Slides | Jeremy Worsfold</title>
    <link>https://jeremyworsfold.github.io/slides/</link>
      <atom:link href="https://jeremyworsfold.github.io/slides/index.xml" rel="self" type="application/rss+xml" />
    <description>Slides</description>
    <generator>Wowchemy (https://wowchemy.com)</generator><language>en-gb</language><lastBuildDate>Mon, 14 Dec 2020 21:44:52 +0000</lastBuildDate>
    <item>
      <title>How to use Python for scientific research</title>
      <link>https://jeremyworsfold.github.io/slides/python-coding/</link>
      <pubDate>Mon, 14 Dec 2020 21:44:52 +0000</pubDate>
      <guid>https://jeremyworsfold.github.io/slides/python-coding/</guid>
      <description>&lt;h2 id=&#34;how-to-use-python-for-scientific-research&#34;&gt;How to use Python for scientific research&lt;/h2&gt;
&lt;h3 id=&#34;maintaining-a-personal-python-package-for-scientific-research&#34;&gt;Maintaining a personal Python package for scientific research&lt;/h3&gt;
&lt;hr&gt;
&lt;h2 id=&#34;our-project-should&#34;&gt;Our project should&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Save data&lt;/li&gt;
&lt;li&gt;Separate plotting from time-consuming code&lt;/li&gt;
&lt;li&gt;Have good documentation&lt;/li&gt;
&lt;li&gt;Be Distributable&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&#34;why-python&#34;&gt;Why Python?&lt;/h2&gt;
&lt;p&gt;It is personal preference however&amp;hellip;&lt;/p&gt;
&lt;h2 id=&#34;test&#34;&gt;test&lt;/h2&gt;
&lt;hr&gt;
&lt;section data-no-process&gt;
&lt;section data-auto-animate&gt;
  &lt;h3&gt;Auto-Animate&lt;/h3&gt;
&lt;/section&gt;
&lt;section data-auto-animate&gt;
  &lt;h3 style=&#34;margin-top: 100px; color: red;&#34;&gt;Auto-Animate&lt;/h3&gt;
&lt;/section&gt;
&lt;/section data-no-process&gt;
&lt;hr&gt;
&lt;h2 id=&#34;layout&#34;&gt;Layout&lt;/h2&gt;
&lt;p&gt;Root directory&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;exampleproject
│   README.md
│   setup.py
│
├───data
├───docs
├───exampleproject
├───notebooks
└───scripts
&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;


&lt;div id=&#34;chart-437562198&#34; class=&#34;chart&#34;&gt;&lt;/div&gt;
&lt;script&gt;
  (function() {
    let a = setInterval( function() {
      if ( typeof window.Plotly === &#39;undefined&#39; ) {
        return;
      }
      clearInterval( a );

      Plotly.d3.json(&#34;./annealing.json&#34;, function(chart) {
        Plotly.plot(&#39;chart-437562198&#39;, chart.data, chart.layout, {responsive: true});
      });
    }, 500 );
  })();
&lt;/script&gt;
&lt;hr&gt;
</description>
    </item>
    
    <item>
      <title>MA20221 Week 2</title>
      <link>https://jeremyworsfold.github.io/slides/ma20221week2/</link>
      <pubDate>Mon, 14 Dec 2020 21:44:52 +0000</pubDate>
      <guid>https://jeremyworsfold.github.io/slides/ma20221week2/</guid>
      <description>&lt;h1 id=&#34;ma20221-week-2&#34;&gt;MA20221 Week 2&lt;/h1&gt;
&lt;h2 id=&#34;definitions&#34;&gt;Definitions&lt;/h2&gt;
&lt;hr&gt;
&lt;h2 id=&#34;what-makes-a-well-posed-problem&#34;&gt;What makes a well posed problem?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;span class=&#34;fragment &#34; &gt;
solution exists (for at least as long as the prediction is required)
&lt;/li&gt;
&lt;/ul&gt;
&lt;/span&gt;
- &lt;span class=&#34;fragment &#34; &gt;
  the solution is unique
&lt;/span&gt;
- &lt;span class=&#34;fragment &#34; &gt;
  the solution depends continuously on the initial condition and model parameters
&lt;/span&gt;
&lt;hr&gt;
&lt;h2 id=&#34;what-is-a-positively-invariant-set&#34;&gt;What is a positively invariant set?&lt;/h2&gt;
&lt;p&gt;A set $Y \subset X$ is positively invariant if $x(0) \in Y$ implies that $x(t) \in Y$ for all $t \in T$ with $t &amp;gt; 0$. (It
is negatively invariant if the same is true for all $t \in T$ with $t &amp;lt; 0$.)&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;stability&#34;&gt;Stability&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Steady state: &lt;span class=&#34;fragment &#34; &gt;
$x^*$, is where $f(x^*)=0$
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Stable: &lt;span class=&#34;fragment &#34; &gt;
for any $\epsilon &amp;gt; 0$ there exists $\delta &amp;gt; 0$ such that $|x(t) − x^*| &amp;lt; \epsilon$ for all positive $t \in T$ whenever $|x_0 − x^*| &amp;lt; \delta$, and unstable otherwise.
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Asymptotically stable: &lt;span class=&#34;fragment &#34; &gt;
if it is stable and there exists $\delta &amp;gt; 0$ such that $|x− x^*| \rightarrow 0$ as $t → \infty$ whenever $|x_0 − x^*| &amp;lt; \delta$.
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;
&lt;span class=&#34;fragment &#34; &gt;
 stable: start close, stay close. asym. stable: start close, converge to steady state. 
&lt;/li&gt;
&lt;/ul&gt;
&lt;/span&gt;
&lt;hr&gt;
&lt;h3 id=&#34;time-dependent-solution&#34;&gt;Time dependent solution&lt;/h3&gt;
&lt;p&gt;If $\frac{dx}{dt}=f(x)$ and $f(x_0)\neq0$, then
$$
t = \int_{x_0}^{x(t)}\frac{ds}{f(s)}
$$&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If $x(t)$ is not a steady state, $x^*$,then it either tends to a steady state or it tends to $\pm\infty$&lt;/li&gt;
&lt;li&gt;If the model system is well-posed, then $x(t)$ must either be a steady state solution, $x^*$, or strictly monotonic.&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
  </channel>
</rss>
