Difference between revisions of "Manuals/calci/NEGZEROPOS"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div style="font-size:30px">'''NEGZEROPOS'''</div><br/>")
 
Line 1: Line 1:
<div style="font-size:30px">'''NEGZEROPOS'''</div><br/>
+
<div style="font-size:30px">'''MATRIX("NEGZEROPOS",order)'''</div><br/>
 +
*<math>order</math> is the size of the Negzeropos matrix.
 +
 
 +
==Description==
 +
*This function gives the matrix of order 3 with the element 0,1 and -1.
 +
*It is indicating the positive,negative and zero values of matrix.
 +
*Here MATRIX("negzeropos") is showing the matrix of order3 only filled with the elements 0, 1 and -1.
 +
*Suppose users need a matrix with only 0 and 1, then we can use the absolute value like $ABS.
 +
*In the same way users also can get a number 1 matrix. Its syntax is MATRIX("ones")
 +
 
 +
==Examples==
 +
*1.MATRIX("negzeropos",4)
 +
{| class="wikitable"
 +
|-
 +
| 0 || -1 || 1 || 1
 +
|-
 +
| -1 || -1 || 0 || 1
 +
|-
 +
| -1 || 1 || 0 || -1
 +
|-
 +
| 1 || 0 || 1 || 1
 +
|}
 +
*2.MATRIX("negzeropos",5).$(ABS)
 +
{| class="wikitable"
 +
|-
 +
| 0 || 1 || 1 || 1 || 0
 +
|-
 +
| 1 || 1 || 1 || 1 || 0
 +
|-
 +
| 1 || 1 || 1 || 1 || 1
 +
|-
 +
| 1 || 0 || 1 || 1 || 1
 +
|-
 +
| 0 || 1 || 0 || 1 || 1
 +
|}
 +
*3. MATRIX("ones",6)
 +
{| class="wikitable"
 +
|-
 +
| 1 || 1 || 1 || 1 || 1 || 1
 +
|-
 +
| 1 || 1 || 1 || 1 || 1 || 1
 +
|-
 +
| 1 || 1 || 1 || 1 || 1 || 1
 +
|-
 +
| 1 || 1 || 1 || 1 || 1 || 1
 +
|-
 +
| 1 || 1 || 1 || 1 || 1 || 1
 +
|-
 +
| 1 || 1 || 1 || 1 || 1 || 1
 +
|}

Revision as of 11:20, 30 April 2015

MATRIX("NEGZEROPOS",order)


  • is the size of the Negzeropos matrix.

Description

  • This function gives the matrix of order 3 with the element 0,1 and -1.
  • It is indicating the positive,negative and zero values of matrix.
  • Here MATRIX("negzeropos") is showing the matrix of order3 only filled with the elements 0, 1 and -1.
  • Suppose users need a matrix with only 0 and 1, then we can use the absolute value like $ABS.
  • In the same way users also can get a number 1 matrix. Its syntax is MATRIX("ones")

Examples

  • 1.MATRIX("negzeropos",4)
0 -1 1 1
-1 -1 0 1
-1 1 0 -1
1 0 1 1
  • 2.MATRIX("negzeropos",5).$(ABS)
0 1 1 1 0
1 1 1 1 0
1 1 1 1 1
1 0 1 1 1
0 1 0 1 1
  • 3. MATRIX("ones",6)
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1