Difference between revisions of "Manuals/calci/NEGZEROPOS"
Jump to navigation
Jump to search
(Created page with "<div style="font-size:30px">'''NEGZEROPOS'''</div><br/>") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| 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 | ||
| + | |} | ||
| + | |||
| + | |||
| + | ==See Also== | ||
| + | *[[Manuals/calci/ANTIDIAGONAL| ANTIDIAGONAL]] | ||
| + | *[[Manuals/calci/CONFERENCE| CONFERENCE]] | ||
| + | *[[Manuals/calci/CIRCULANT| CIRCULANT]] | ||
| + | |||
| + | ==References== | ||
| + | *[http://en.wikipedia.org/wiki/Nonnegative_matrix Positive Matrix] | ||
| + | *[http://en.wikipedia.org/wiki/Zero_matrix Zero Matrix] | ||
Latest revision as of 10:11, 15 May 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 |