Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 3

04 Mär '18, 09:34

cis's gravatar image

cis
9.6k104461491

pgfmath: Permutationen bestimmen

Kann man mit `pgfmath` eigentlich alle Permutationen einer Zahlenliste bestimmen? Z.B. für 1,2,...,6 wäre [![alt text][1]][2] ein mögliches Ergebnis. Für das einfache Beispiel 1,2,3 wäre das Ergebnis: [![alt text][3]][3] Im Handbuch findet man den Begriff, allerdings in Verbindung mit 'random' und 'Lua'. In Lua bin ich nicht so bewandert. Falls es nicht gehen sollte würde ich selbst eher in Richtung SageTeX weiterforschen. %\documentclass[]{article} \documentclass[border=5mm]{standalone} \usepackage{amsmath} \begin{document} $\begin{pmatrix} 1& 2 & 3\\ 1 & 2 & 3\end{pmatrix}$, $\begin{pmatrix} 1& 2 & 3\\ 2 & 1 & 3\end{pmatrix}$, $\begin{pmatrix} 1& 2 & 3\\ 3 & 2 & 1\end{pmatrix}$ $\begin{pmatrix} 1& 2 & 3 & 4 & 5 & 6\\ 5 & 1 & 3 & 6 & 2 & 4 \end{pmatrix}$ \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_130.png [2]: https://texwelt.de/wissen/upfiles/55555555_130.png [3]: https://texwelt.de/wissen/upfiles/55555555_131.pnghttps://texwelt.de/wissen/upfiles/55555555_132.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

04 Mär '18, 09:06

cis's gravatar image

cis
9.6k104461491

pgfmath: Permutationen bestimmen

Kann man mit pgfmath `pgfmath` eigentlich alle Permutationen einer Zahlenliste bestimmen? Z.B. für 1,2,...,6 wäre [![alt text][1]][2] ein mögliches Ergebnis. Für das einfache Beispiel 1,2,3 wäre das Ergebnis: [![alt text][3]][3] Im Handbuch findet man den Begriff, allerdings in Verbindung mit 'random' und 'Lua'. In Lua bin ich nicht so bewandert. Falls es nicht gehen sollte würde ich selbst eher in Richtung SageTeX weiterforschen. %\documentclass[]{article} \documentclass[border=5mm]{standalone} \usepackage{amsmath} \begin{document} $\begin{pmatrix} 1& 2 & 3\\ 1 & 2 & 3\end{pmatrix}$, $\begin{pmatrix} 1& 2 & 3\\ 2 & 1 & 3\end{pmatrix}$, $\begin{pmatrix} 1& 2 & 3\\ 3 & 2 & 1\end{pmatrix}$ $\begin{pmatrix} 1& 2 & 3 & 4 & 5 & 6\\ 5 & 1 & 3 & 6 & 2 & 4 \end{pmatrix}$ \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_130.png [2]: https://texwelt.de/wissen/upfiles/55555555_130.png [3]: https://texwelt.de/wissen/upfiles/55555555_131.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

04 Mär '18, 09:05

cis's gravatar image

cis
9.6k104461491