Difference between revisions of "Manuals/calci/DIAGONALWITH"

 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="font-size:30px">'''DIAGONALWITH(Matrix,Properties,Seed,Offset,FillTypeAntiColumnOrRow)'''</div><br/>
 
<div style="font-size:30px">'''DIAGONALWITH(Matrix,Properties,Seed,Offset,FillTypeAntiColumnOrRow)'''</div><br/>
*<math>Matrix</math> is any nxn square matrix.
+
*<math>Matrix</math> is any n×n square matrix.
*<math>Properties</math> is any property with which the main diagonal id filled.
+
*<math>Properties</math> is any property with which the main diagonal is filled.
  
  
Line 9: Line 9:
 
* In DIAGONALWITH, all the elements on main diagonal are filled with the given Properties rather than by 0.
 
* In DIAGONALWITH, all the elements on main diagonal are filled with the given Properties rather than by 0.
 
* "ZERO" is a default Property.
 
* "ZERO" is a default Property.
  * Types of Properties:
+
  '''Types of Properties:'''
 
   case "POSITIVE":
 
   case "POSITIVE":
 
   case "NEGATIVE":
 
   case "NEGATIVE":
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
 +
|}
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|v=Wc9DwLLXP8k|280|center|Diagonal Matrix}}
 +
 +
==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 ]]

Latest revision as of 13:44, 9 April 2019

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

Related Videos

Diagonal Matrix

See Also

References