IsMatrix: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Zeile 12: Zeile 12:


===Beispiele===
===Beispiele===
  <math>isMatrix(matrix(matrixrow(1,1),matrixrow(0,4)))</math>   --> returns <math>True</math>
  isMatrix(matrix(matrixrow(1,1),matrixrow(0,4)))    --> returns True


  <math>isMatrix(matrix(matrixrow(),matrixrow()))</math>   --> returns <math>True</math>
  isMatrix(matrix(matrixrow(),matrixrow()))    --> returns True  


  <math>isMatrix(list(2,3,4,5,6,7))</math>   --> returns <math>False</math>
  isMatrix(list(2,3,4,5,6,7))    --> returns False  


  <math>isMatrix(2)</math>   --> returns <math>False</math>
  isMatrix(2)    --> returns False  


[[Kategorie:Evaluatorfunktion]]
[[Kategorie:Evaluatorfunktion]][[Kategorie:Testfunktionen]]

Version vom 18. September 2018, 10:20 Uhr

Beschreibung

isMatrix gibt wahr(true) zurück falls der angegebene Parameter eine Matrix ist, nicht wahr(false) ansonst.

Syntax

isMatrix(a)

Parameter

Return Value

  • Gibt True oder False zurück.

Beispiele

isMatrix(matrix(matrixrow(1,1),matrixrow(0,4)))    --> returns True
isMatrix(matrix(matrixrow(),matrixrow()))    --> returns True 
isMatrix(list(2,3,4,5,6,7))    --> returns False 
isMatrix(2)    --> returns False