Hi everyone, I’ve include the code for drawing Dynkin diagrams using Tikz package in LaTeX \begin{center} \begin{tikzpicture}[scale=.4] \draw (-1,0) node[anchor=east] {$A_n$}; \foreach \x in {0,…,5} \draw[xshift=\x cm,thick] (\x cm,0) circle (.3cm); \draw[dotted,thick] (0.3 cm,0) — +(1.4 cm,0); \foreach \y in {1.15,…,4.15} \draw[xshift=\y cm,thick] (\y cm,0) — +(1.4 cm,0); \end{tikzpicture} \end{center} \begin{center} \begin{tikzpicture}[scale=.4] \draw (-1,0) node[anchor=east] [...]
Archive for the ‘Mathematics’ Category
LaTeX Tip: Dynkin Diagrams using Tikz
Posted in LaTeX, Mathematics, Physics, Science, tagged Compilation, Diagram, Dynkin, Groups, LaTeX, Lie, lie group, Tikz, Tips and Tricks on April 2, 2012 | Leave a Comment »
Table of all possible irreps of Lie groups
Posted in Linux, Mathematics, SAGE, Science, tagged Calculation, Cartan, Classification, Dynkin, Functions, Groups, How to, HowTo, Labels, Lie, lie group, Linux, Maple, Mathematica, Mathematics, Matlab, Matrices, Matrix, Notebook, Packages, Programming, Python, Representation, Sage, Sagemath, Tips and Tricks on February 27, 2012 | 1 Comment »
Last weekend, I wrote a program in SAGE that list all possible irreps of a Lie group, one specified the group (in Cartan’s classification) and the maximum sum of the Dynkin labels. Check the notebook in here. Since I’m not a programmer, please feel free to leave comments, specially if you find ways to optimize [...]
Parallel python
Posted in Linux, Mathematics, Science, tagged Configuration, How to, HowTo, Install, Linux, Mathematics, Parallel, Python, Sage, Terminal, Tips and Tricks, Ubuntu on May 26, 2011 | Leave a Comment »
In case you wanna explore with parallel python, the web page is http://www.parallelpython.com/ Installation in Linux (debian based): * download the tarball, say to your home folder * in a console type: $ cd $ tar xzf pp-1.6.1.tar.gz $ cd pp-1.6.1/ $ sudo python setup.py install * it should be installed in just one sec. [...]
Sage tip: Plots with shadow
Posted in Linux, Mathematics, SAGE, tagged Graphics, How to, HowTo, Linux, Notebook, Plots, Sage, Sage-dev, Sagemath, Shadow, Tips and Tricks on May 19, 2011 | 1 Comment »
No comments! It was beautiful p = plot(sin(x), (x,-5, 5), thickness=2, color=’red’) for n in xrange(1,20): p += plot((1-n/20)*sin(x), (x,-pi,0), thickness=0, fill=’axis’, fillcolor=’blue’, fillalpha=.01) p += plot((1-n/20)*sin(x), (x,0,pi), thickness=0, fill=’axis’, fillcolor=’gray’, fillalpha=.01) show(p, figsize=10,ticks=pi/3,tick_formatter=pi, fontsize=16) reset() var(‘x’) f(x) = sin(x) p = plot(f(x), (x,-5, 5), thickness=2, color=’red’) for n in xrange(1,20): p += plot(((n-1)/20)*sin(x), (x,-pi,0), [...]