List: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Zeile 26: Zeile 26:
   <math>\{ \begin{pmatrix} 1 \\ 1 \end{pmatrix} , \begin{pmatrix} 1 \\ 2 \end{pmatrix} \}</math>
   <math>\{ \begin{pmatrix} 1 \\ 1 \end{pmatrix} , \begin{pmatrix} 1 \\ 2 \end{pmatrix} \}</math>


[[Kategorie:Konstruktor]][[Kategorie:List]]
[[Kategorie:Konstruktor]][[Kategorie:Listfunktionen]]

Version vom 4. Oktober 2017, 14:01 Uhr

Beschreibung

Die Funktion list dient als Konstruktor für eine Liste. Es können Objekte und Funktionen, die Objekte zurückgeben als Elemente hinzugefügt werden.

Funktionen

Syntax

 list(Objekt param1, Funktion param2)

Parameter

  • param1 - Objekt z.B. Zahl oder Matrix
  • param2 - Funktion, die ein Objekt zurück gibt

Return Value

  • Gibt die Liste zurück

Beispiele

   list(vector(1,1),vector(1,2))

OpenMath:

 <OMOBJ><OMA><OMS cd="list1" name="list"/><OMA><OMS cd="linalg2" name="vector"/><OMI>1</OMI><OMI>1</OMI></OMA><OMA><OMS cd="linalg2" name="vector"/><OMI>1</OMI><OMI>2</OMI></OMA></OMA></OMOBJ>

LaTeX:

 <math>\{ \begin{pmatrix} 1 \\ 1 \end{pmatrix} , \begin{pmatrix} 1 \\ 2 \end{pmatrix} \}</math>