Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the homology groups of simplicial complexes
ResourceFunction["SimplicialHomologyGroup"][sc,n] computes the nth homology group of sc. | |
ResourceFunction["SimplicialHomologyGroup"][sc] computes all homology groups of sc. | |
ResourceFunction["SimplicialHomologyGroup"][sc,sub,n] computes the nth homology group of sc relative to sub. | |
ResourceFunction["SimplicialHomologyGroup"][sc,sub] computes all homology groups of sc relative to sub. |
| {"Simplex", n} | n-dimensional simplex | |
| "Point" | point (0-dimensional simplex) | |
| "Line" | line (1-dimensional simplex) | |
| "Triangle" | triangle (2-dimensional simplex) | |
| "Tetrahedron" | tetrahedron (3-dimensional simplex) | |
| {"Circle", n} | n-dimensional circle | |
| "Circle" | circle (1-dimensional circle) | |
| "Sphere" | sphere (2-dimensional circle) | |
| {"CircleWedge", n} | wedge product of n circles | |
| "Torus" | 1-holed (2-dimensional) torus | |
| {"Torus", n} | n-dimensional torus | |
| "KleinBottle" | Klein bottle | |
| "MobiusStrip" | Mobius strip | |
| "RealProjectivePlane" | real projective plane | |
| {"RealProjectiveSpace", n} | n-dimensional real projective space | |
| "ComplexProjectivePlane" | complex projective plane | |
| "QuaternionicProjectivePlane" | quaternionic projective plane | |
| "DunceHat" | dunce hat given by Hachimori (2016) | |
| "PoincareHomologyThreeSphere" | Poincaré homology 3-sphere | |
| "RudinBall" | non-shellable ball constructed by Rudin | |
| "ZieglerBall" | non-shellable ball constructed by Ziegler |
| "Reduced" | True | whether to calculate reduced homology |
| "Coefficients" | Integers | coefficients over which to calculate homology |
Calculate a homology group of a space:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
0th Homology group of two disjoint points demonstrating the number of connected components:
| In[4]:= |
| Out[4]= |
Their reduced homology group:
| In[5]:= |
| Out[5]= |
Calculate homology of a contractible complex:
| In[6]:= |
| Out[6]= |
Examples of spaces whose homology have torsion:
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
Calculate all homology groups:
| In[9]:= |
| Out[9]= |
Calculate the homology groups of D2 relative to its boundary S1:
| In[10]:= |
| Out[10]= |
Compute all groups:
| In[11]:= |
| Out[11]= |
Specify a simplicial complex using mesh region:
| In[12]:= |
| Out[12]= | ![]() |
| In[13]:= |
| Out[13]= |
By default, ordinary homology is calculated:
| In[14]:= |
| Out[14]= |
Obtain reduced homology:
| In[15]:= |
| Out[15]= |
By default, homology is computed over the integers:
| In[16]:= |
| Out[16]= |
Calculate over rationals or elements of a finite field:
| In[17]:= |
| Out[17]= |
| In[18]:= |
| Out[18]= |
| In[19]:= |
| Out[19]= |
Homology of 8 demonstrating the number of holes in 8:
| In[20]:= |
| Out[20]= | ![]() |
| In[21]:= |
| Out[21]= |
The homology groups of a space relative to itself are always zero:
| In[22]:= |
| Out[22]= |
The homology groups of a space relative to empty space are the same as absolute homology groups:
| In[23]:= |
| Out[23]= |
| In[24]:= |
| Out[24]= |
Homology groups relative to a point are equal to reduced homology groups:
| In[25]:= |
| Out[25]= |
| In[26]:= |
| Out[26]= |
A valid subcomplex must be provided:
| In[27]:= |
| Out[27]= |
This work is licensed under a Creative Commons Attribution 4.0 International License