{"id":1,"date":"2021-07-16T19:59:51","date_gmt":"2021-07-16T19:59:51","guid":{"rendered":"https:\/\/patrickwang.co.uk\/?p=1"},"modified":"2021-11-11T20:31:57","modified_gmt":"2021-11-11T20:31:57","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/patrick.scot\/index.php\/2021\/07\/16\/hello-world\/","title":{"rendered":"Hello world!"},"content":{"rendered":"\n<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>import numpy as np\nnp.sqrt(1\/2)\ni = 0\nwhile i &lt;= 0:\n        print(i)\n        i = i +1\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code language-latex line-numbers\"><code>\\documentclass{minimal}\n\\begin{document}\nHello World!\n\\end{document}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code language-bash command-line data-user=\" patrick\"=\"\" data-filter-output=\"(out)\"><code>\nsudo nano dooropener.py\n(out)No such file or directory!\n<\/code>\n<\/pre>\n\n\n\n<pre class=\"wp-block-code language-nb\"><code>StreamDensityPlot&#91;{\\&#91;Eta], -Sin&#91;\\&#91;Theta]]}, {\\&#91;Theta], -\\&#91;Pi], \\\n\\&#91;Pi]}, {\\&#91;Eta], -5, 5}, ColorFunction -&gt; Hue, \n PlotLegends -&gt; Automatic, FrameLabel -&gt; {\\&#91;Theta], \\&#91;Eta]}]<\/code><\/pre>\n\n\n\n<p>This is a test of the MathJax config:<\/p>\n\n\n\n<p>\\[\\hat H \\ket{\\psi} = E \\ket{\\psi}\\]<\/p>\n\n\n\n<p>Does mhchem work?<\/p>\n\n\n\n<p>\\[\\ce{3H2(g) + N2(g) &lt;=>[Heat][Pressure] 2NH3(g)}\\]<\/p>\n\n\n\n<p>And of course, the Maxwell&#8217;s Equations in differential form in ams align:<\/p>\n\n\n\n<p>\\begin{align} \\div \\vec E &amp;= \\frac{\\rho}{\\varepsilon_0}\\\\\\div \\vec B &amp;= 0 \\\\ \\curl \\vec E &amp;= &#8211; \\pdv{\\vec B}{t}\\\\ \\curl \\vec H &amp;= \\vec J + \\pdv{\\vec D}{t} \\end{align}<\/p>\n\n\n\n<p>Biot-Savart law, closure relation, and Stoke&#8217;s Theorem in align*:<\/p>\n\n\n\n<p>\\begin{align*}\\vec B(P) = \\frac{\\mu_0}{4\\pi}\\int \\frac{\\vec I \\times \\hat r&#8217;}{r&#8217;^2}\\dd{l} &amp;= \\frac{\\mu_0}{4\\pi}I \\int \\frac{\\dd{\\vec l}\\times \\hat r&#8217;}{r&#8217;^2} \\\\ \\int_{\\mathbb{R}^3} \\dd[3]{r}\\ket{\\vec r}\\bra{\\vec r} &amp;= \\mathbb{1} \\\\ \\int_{\\partial \\Omega} \\omega &amp;= \\int_\\Omega \\dd{\\omega}\\end{align*}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":11,"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions\/269"}],"wp:attachment":[{"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/patrick.scot\/index.php\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}