Difference between revisions of "Manuals/calci/DIAGONALWITH"

From ZCubes Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
   case "ZERO":
 
   case "ZERO":
 
   case "ZEROS":
 
   case "ZEROS":
 +
 +
==Examples==
 +
1. DIAGONALWITH([[1,2,3],[4,5,6],[9,8,11]],"NEGATIVE:INTEGER")
 +
{| class="wikitable"
 +
|-
 +
| -18 || 2 || 3
 +
|-
 +
| 4 || -16 || 6
 +
|-
 +
| 9 || 8 || -64
 +
|}
 +
2. DIAGONALWITH([[11,18,19,20],[78,12,15,23],[-23,-20,-15,65],[5,8,9.2,12.7]],"SERIES")
 +
{| class="wikitable"
 +
|-
 +
| 100 || 18 || 19 || 20
 +
|-
 +
| 78 || 100 || 15 || 23
 +
|-
 +
| -23 || -20 || 100 || 65
 +
|-
 +
| 5 || 8 || 9.2 ||100
 +
|}
 +
3. DIAGONALWITH([[-1,6,8,9],[7,6,12,-98],[11,15,17.2,19]],"LIST")
 +
{| class="wikitable"
 +
|-
 +
| 100 || 6 || 8 || 9
 +
|-
 +
| 7 || 100 || 12 || -98
 +
|-
 +
| 11 || 15 || 100 || 19
 +
|}
 +
 +
==See Also==
 +
*[[Manuals/calci/ANTIDIAGONAL | ANTIDIAGONAL]]
 +
*[[Manuals/calci/ARROWHEAD| ARROWHEAD]]
 +
*[[Manuals/calci/MATRIXOPERATORS| MATRIXOPERATORS]]
 +
 +
==References==
 +
*[http://en.wikipedia.org/wiki/Anti-diagonal_matrix Anti Diagonal]
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Revision as of 14:33, 9 April 2018

DIAGONALWITH(Matrix,Properties,Seed,Offset,FillTypeAntiColumnOrRow)


  • is any n×n square matrix.
  • is any property with which the main diagonal is filled.


Description

  • This function gives a matrix which satisfies the diagonal properties.
  • An diagonal matrix is a matrix where all the entries are zero on the main diagonal going from the upper left corner to the lower right corner ().
  • In DIAGONALWITH, all the elements on main diagonal are filled with the given Properties rather than by 0.
  • "ZERO" is a default Property.
 Types of Properties:
  case "POSITIVE":
  case "NEGATIVE":
  case "NATURAL":
  case "POSITIVE:INTEGER":
  case "NEGATIVE:INTEGER":
  case "INTEGER":
  case "NEGZEROPOS":
  case "VALUE":
  case "LIST":
  case "SERIES":
  case "SEED":
  case "FUNCTION":
  case "ZERO":
  case "ZEROS":

Examples

1. DIAGONALWITH([[1,2,3],[4,5,6],[9,8,11]],"NEGATIVE:INTEGER")

-18 2 3
4 -16 6
9 8 -64

2. DIAGONALWITH([[11,18,19,20],[78,12,15,23],[-23,-20,-15,65],[5,8,9.2,12.7]],"SERIES")

100 18 19 20
78 100 15 23
-23 -20 100 65
5 8 9.2 100

3. DIAGONALWITH([[-1,6,8,9],[7,6,12,-98],[11,15,17.2,19]],"LIST")

100 6 8 9
7 100 12 -98
11 15 100 19

See Also

References