From 99cc5e28060351b4ba94fcd111f050e6af8209db Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Sun, 21 Feb 2016 05:43:50 +0100
Subject: [PATCH] Add the inverse stereographic projection concatenated with a
 two-fold cover

This creates a field with topological charge 2.
---
 src/inverse-stereographic-projection.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/inverse-stereographic-projection.py b/src/inverse-stereographic-projection.py
index 1cb2b25f..703ffa71 100644
--- a/src/inverse-stereographic-projection.py
+++ b/src/inverse-stereographic-projection.py
@@ -2,6 +2,9 @@
 def f(x):
     normSquared = x[0]*x[0]+x[1]*x[1]
     return [2*x[0] / (normSquared+1), 2*x[1] / (normSquared+1), (normSquared-1)/ (normSquared+1)]
+    #a = 20
+    #normSquared = a*a*(x[0]*x[0]+x[1]*x[1])
+    #return [a*2*x[0] / (normSquared+1), a*2*x[1] / (normSquared+1), (normSquared-1)/ (normSquared+1)]
 
 def df(x):
     normSquared = x[0]*x[0]+x[1]*x[1]
-- 
GitLab