7-spheres-3d

Python scripts to generate 3D models of some complex curves

Commit
c3552c5b2a754c3110a463793e5ad4900b2fa716
Parent
3ee1a18e74e8f21512acfbb270741c817ea67724
Author
Pablo <pablo-pie@riseup.net>
Date

Added a printout of the code to the repo

Diffstats

3 files changed, 48 insertions, 2 deletions

Status Name Changes Insertions Deletions
Modified model.py 2 files changed 2 2
Added printout/.gitignore 1 file changed 30 0
Added printout/model.tex 1 file changed 16 0
diff --git a/model.py b/model.py
@@ -23,7 +23,7 @@ class Model:
 
     def append_patch(self, z1: ComplexGrid, z2: ComplexGrid):
         """
-        Appends a 2D array of points in ℂ² to the model
+        Appends a 2D array of points in C^2 to the model
         and updates the bounding box
         """
         self.patches.append(self.projection(z1, z2))
@@ -81,7 +81,7 @@ class Model:
                 v_i += rows * cols
 
 def normalized_p(z1: ComplexGrid, z2: ComplexGrid) -> Patch:
-    "Projection ℝ⁴ → 𝕊³ + inclusion ℝ³ → 𝕊³"
+    "Projection R^4 -> S^3 + inclusion R^3 -> S^3"
     assert z1.shape == z2.shape
 
     z = np.stack((z1, z2), axis=0)
diff --git /dev/null b/printout/.gitignore
@@ -0,0 +1,30 @@
+*.4ct
+*.4ht
+*.4tc
+*.aux
+*.bak
+*.bbl
+*.bcf
+*.bbl-SAVE-ERROR
+*.bcf-SAVE-ERROR
+*.blg
+*.dvi
+*.fdb_latexmk
+*.fls
+*.idv
+*.idx
+*.ilg
+*.ind
+*.lg
+*.log
+*.nav
+*.out
+*.pdf
+*.pdf_original
+*.snm
+*.tmp
+*.toc
+*.xdv
+*.xml
+*.xref
+_minted/
diff --git /dev/null b/printout/model.tex
@@ -0,0 +1,16 @@
+\documentclass[a4paper]{article}
+\usepackage[total={6in, 10in}]{geometry}
+\usepackage{minted}
+%\usepackage{fontspec}
+
+% Set the color scheme used by minted
+\usemintedstyle{perldoc}
+
+%% Beamer settings
+%\usetheme[progressbar=frametitle]{metropolis}
+%\setbeamertemplate{itemize items}{\textbullet}
+%\setmonofont{DejaVu Sans Mono}
+
+\begin{document}
+\inputminted{python}{../model.py}
+\end{document}