Adding all project files
This commit is contained in:
parent
6c9e127bdc
commit
cd4316ad0f
42289 changed files with 8009643 additions and 0 deletions
24
venv/Lib/site-packages/sympy/liealgebras/dynkin_diagram.py
Normal file
24
venv/Lib/site-packages/sympy/liealgebras/dynkin_diagram.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
from .cartan_type import CartanType
|
||||
|
||||
|
||||
def DynkinDiagram(t):
|
||||
"""Display the Dynkin diagram of a given Lie algebra
|
||||
|
||||
Works by generating the CartanType for the input, t, and then returning the
|
||||
Dynkin diagram method from the individual classes.
|
||||
|
||||
Examples
|
||||
========
|
||||
|
||||
>>> from sympy.liealgebras.dynkin_diagram import DynkinDiagram
|
||||
>>> print(DynkinDiagram("A3"))
|
||||
0---0---0
|
||||
1 2 3
|
||||
|
||||
>>> print(DynkinDiagram("B4"))
|
||||
0---0---0=>=0
|
||||
1 2 3 4
|
||||
|
||||
"""
|
||||
|
||||
return CartanType(t).dynkin_diagram()
|
Loading…
Add table
Add a link
Reference in a new issue