Fwd: Data Structure and Algorithms in Python: May 29: After Class Review
kirby urner <[email protected]> Sun, 29 May 2022 21:35:06 -0700
| Newsgroups | gmane.comp.python.education |
|---|---|
| Message-ID | <CAPJgG3Sz4WERY7zyFZggSwFmGbgukmUhyaCafd9zdDPMzH0DUg@mail.gmail.com> |
--===============3983159909699778459==
Content-Type: multipart/alternative; boundary="000000000000e9b81f05e0332efe"
--000000000000e9b81f05e0332efe
Content-Type: text/plain; charset="UTF-8"
I share these emails to my students from time to time, to document the
progress of an 8th grade online class.
The Notebook I was working on today.
https://github.com/4dsolutions/elite_school/blob/master/TheCabal.ipynb
-- Kirby
==========
From: Sunshine Elite Education
Date: Sun, May 29, 2022 at 7:39 PM
Subject: Data Structure and Algorithms in Python: May 29: After Class Review
Greetings all --
Tonight's talk was about how those intricate little patches of symbols, in
math books, are pretty much algorithms, but in a pre-computer language. We
use letters for numbers because the recipes are for a whole variety of
inputs. The gears turn, and we get our computed outputs. That's been
going on since long before electronic computers.
My opening example involved computing the volume of a tetrahedron, regular
or irregular, on the basis of its edge lengths only, of which there are
six. I showed the Cayley-Menger algorithm for computing that, which
involves taking the "determinant of a matrix" a topic in some high school
math curricula (e.g IB, AP) but not all.
Python's sympy was able to take that matrix and convert it to a lot of
terms under a radical sign (2nd root symbol). Using plane nets, I was able
to compute the volume of:
* a regular tetrahedron of edges 1
* an "A module" (1/24th of the above)
* an "E module" (1/120th of a rhombic triacontahedron)
This is shoptalk from a niche geometry I specialize in studying. I was
demonstrating how I make use of the same tools I'm teaching, when doing my
own geometry research.
Python and mathematics weave together in Jupyter Notebooks to give you
symbolic operations with sympy, plotting capability (graphing) with
matplotlib, and tabular data (pandas -- coming up).
During the 2nd half of the talk, we dove deep into Python's capabilities,
reviewing the role of __special_names__ ("__ribs__") via the Ornery class
<https://replit.com/@kurner/Ornery-Type>, and then diving into @properties,
which use @decorator syntax.
That magic circle source code we looked at is here:
https://github.com/4dsolutions/elite_school/blob/master/magic_circle_v2.py
Kirby
*Course Name*: Data Structure and Algorithms in Python
*Datetime*: 01/29-06/19 Wednesday,Sunday 6:00pm-7:00pm
*Location*: Online10
Thanks,
Sunshine Elite Education
--000000000000e9b81f05e0332efe
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small"><br></div><div><br></div><div><div styl=
e=3D"font-family:arial,helvetica,sans-serif;font-size:small" class=3D"gmail=
_default">I share these emails to my students from time to time, to documen=
t the progress of an 8th grade online class.=C2=A0 <br></div><div style=3D"=
font-family:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_defa=
ult"><br></div><div style=3D"font-family:arial,helvetica,sans-serif;font-si=
ze:small" class=3D"gmail_default">The Notebook I was working on today.<br><=
/div><div style=3D"font-family:arial,helvetica,sans-serif;font-size:small" =
class=3D"gmail_default"><a href=3D"https://github.com/4dsolutions/elite_sch=
ool/blob/master/TheCabal.ipynb">https://github.com/4dsolutions/elite_school=
/blob/master/TheCabal.ipynb</a></div><div style=3D"font-family:arial,helvet=
ica,sans-serif;font-size:small" class=3D"gmail_default"><br></div><div styl=
e=3D"font-family:arial,helvetica,sans-serif;font-size:small" class=3D"gmail=
_default"><br></div><div style=3D"font-family:arial,helvetica,sans-serif;fo=
nt-size:small" class=3D"gmail_default">-- Kirby</div><div style=3D"font-fam=
ily:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_default"></d=
iv><br></div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_att=
r"><br></div><div dir=3D"ltr" class=3D"gmail_attr"><div style=3D"font-famil=
y:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_default">=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D</div><br>From: <b class=3D"gmail_sendername" di=
r=3D"auto">Sunshine Elite Education</b> <br>Date: Sun, May 29, 2022 at 7:39=
PM<br>Subject: Data Structure and Algorithms in Python: May 29: After Clas=
s Review<br><br></div><p>Greetings all --<br><br>Tonight's talk was abo=
ut how those intricate little patches of symbols, in math books, are pretty=
much algorithms, but in a pre-computer language. We use letters for number=
s because the recipes are for a whole variety of inputs.=C2=A0 The gears tu=
rn, and we get our computed outputs.=C2=A0 That's been going on since l=
ong before electronic computers.<br><br>My opening example involved computi=
ng the volume of a tetrahedron, regular or irregular, on the basis of its e=
dge lengths only, of which there are six.=C2=A0 I showed the Cayley-Menger =
algorithm for computing that, which involves taking the "determinant o=
f a matrix" a topic in some high school math curricula (e.g IB, AP) bu=
t not all.<br><br>Python's sympy was able to take that matrix and conve=
rt it to a lot of terms under a radical sign (2nd root symbol).=C2=A0 Using=
plane nets, I was able to compute the volume of:<br><br>* a regular tetrah=
edron of edges 1<br>* an "A module" (1/24th
of the above)<br>* an "E module" (1/120th of a rhombic triacont=
ahedron)<br><br>This is shoptalk from a niche geometry I specialize in stud=
ying.=C2=A0 I was demonstrating how I make use of the same tools I'm te=
aching, when doing my own geometry research.<br><br>Python and mathematics =
weave together in Jupyter Notebooks to give you symbolic operations with sy=
mpy, plotting capability (graphing) with matplotlib, and tabular data (pand=
as -- coming up).<br><br>During the 2nd half of the talk, we dove deep into=
Python's capabilities, reviewing the role of __special_names__ ("=
__ribs__") via <a href=3D"https://replit.com/@kurner/Ornery-Type" targ=
et=3D"_blank">the Ornery class</a>, and then diving into @properties, which=
use @decorator syntax.=C2=A0 <br><br>That magic circle source code we look=
ed at is here:<br><a href=3D"https://github.com/4dsolutions/elite_school/bl=
ob/master/magic_circle_v2.py" target=3D"_blank">https://github.com/4dsoluti=
ons/elite_school/blob/master/magic_circle_v2.py</a><br><br><br>Kirby<br><br=
><br><b>Course Name</b>: Data Structure and Algorithms in Python<br><b>Date=
time</b>: 01/29-06/19 Wednesday,Sunday 6:00pm-7:00pm<br><b>Location</b>: On=
line10<br><br> Thanks,<br> Sunshine Elite Education <span class=3D"gmail_de=
fault" style=3D"font-family:arial,helvetica,sans-serif;font-size:small"></s=
pan></p><p><span class=3D"gmail_default" style=3D"font-family:arial,helveti=
ca,sans-serif;font-size:small"></span><br></p>
</div></div>
--000000000000e9b81f05e0332efe--
--===============3983159909699778459==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Edu-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/edu-sig.python.org/
Member address: [email protected]
--===============3983159909699778459==--