Difference between revisions of "Documentation/How Tos/Calc: MUNIT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:MUNIT function}} |
+ | {{Documentation/CalcFunc ArraysTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_MMULT_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_SUMPRODUCT_function | ||
+ | }}__NOTOC__ | ||
== MUNIT == | == MUNIT == | ||
Line 6: | Line 11: | ||
=== Syntax: === | === Syntax: === | ||
<tt>'''MUNIT(size)'''</tt> | <tt>'''MUNIT(size)'''</tt> | ||
+ | [[Image:Calc_munit.png|CENTER]] | ||
: returns the unit matrix, also known as the identity matrix '''I''', of size <tt>'''size'''</tt> (an integer greater than zero). | : returns the unit matrix, also known as the identity matrix '''I''', of size <tt>'''size'''</tt> (an integer greater than zero). | ||
: The identity matrix has ones on the leading diagonal, and zeroes elsewhere. | : The identity matrix has ones on the leading diagonal, and zeroes elsewhere. | ||
− | : <tt>'''MUNIT'''</tt> returns an array, and must be entered as an array formula (for example by using | + | : <tt>'''MUNIT'''</tt> returns an array, and must be entered as an array formula (for example by using {{key|Cntrl|Shift|Enter}} rather than just {{key|Enter}}). |
+ | <br style="clear:both;" /> | ||
=== Example: === | === Example: === | ||
Line 16: | Line 23: | ||
: when entered as an array formula in cell B3, returns {1;0|0;1}, so that B3, C3, B4, C4 show 1, 0, 0, 1 respectively. | : when entered as an array formula in cell B3, returns {1;0|0;1}, so that B3, C3, B4, C4 show 1, 0, 0, 1 respectively. | ||
− | + | {{SeeAlso|EN| | |
− | [[Documentation/How_Tos/Calc: MDETERM function| | + | * [[Documentation/How_Tos/Calc: MDETERM function|MDETERM]] |
− | [[Documentation/How_Tos/Calc: MINVERSE function| | + | * [[Documentation/How_Tos/Calc: MINVERSE function|MINVERSE]] |
− | [[Documentation/How_Tos/Calc: MMULT function| | + | * [[Documentation/How_Tos/Calc: MMULT function|MMULT]] |
− | [[Documentation/How_Tos/Using Arrays| | + | * [[Documentation/How_Tos/Using Arrays|How To Use Arrays]] |
− | [[Documentation/How_Tos/Calc: Array functions| | + | * [[Documentation/How_Tos/Calc: Array functions|Array functions]] |
+ | |||
+ | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Array functions]] |
Latest revision as of 10:59, 30 January 2024
MUNIT
Returns a unit (identity) matrix of a given size.
Syntax:
- returns the unit matrix, also known as the identity matrix I, of size size (an integer greater than zero).
- The identity matrix has ones on the leading diagonal, and zeroes elsewhere.
- MUNIT returns an array, and must be entered as an array formula (for example by using Cntrl + ⇧ Shift + ↵ Enter rather than just ↵ Enter ).
Example:
=MUNIT(2)
- when entered as an array formula in cell B3, returns {1;0|0;1}, so that B3, C3, B4, C4 show 1, 0, 0, 1 respectively.
See Also