Set: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:
   set(vector(1,1),vector(1,2))    --> <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>
   set(vector(1,1),vector(1,2))    --> <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>


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


===Hinweise===
===Hinweise===

Version vom 27. Juli 2017, 10:47 Uhr

Beschreibung

Die Funktion set bekommt als Eingabe Mengenelemente und gibt diese als OpenMathObject zurück.

Syntax

 set(string argument, string argument, ...)

Parameter

  • argument - beliebig viele strings für die einzelnen Mengenelemente

Return Value

  • Gibt die Menge als OpenMathObject zurück

Beispiele

 set(vector(1,1),vector(1,2))    --> <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>

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

Hinweise

  • Die Funktion setzt eine Menge von Elementen in die OpenMath schreibweise.