Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
documentation:language_reference:objects:matrix:functions:inverse [2024/12/12 16:54] – Maurits W. Haverkort | documentation:language_reference:objects:matrix:functions:inverse [2024/12/12 17:51] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Example ===== | ===== Example ===== | ||
- | |||
- | ### | ||
- | Eventually. | ||
- | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | M = Matrix.New({{1, |
+ | Minv = Matrix.Inverse(M) | ||
+ | print(" | ||
+ | print(M) | ||
+ | print(" | ||
+ | print(Minv) | ||
+ | print(" | ||
+ | print(Minv*M) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | The inverse of the matrix M |
+ | { { 1 , 2 } , | ||
+ | { 2 , 1 } } | ||
+ | |||
+ | is | ||
+ | { { -0.3333 , 0.6667 } , | ||
+ | { 0.6667 , -0.3333 } } | ||
+ | |||
+ | And Minv * M is | ||
+ | { { 1 , 0 } , | ||
+ | { 0 , 1 } } | ||
</ | </ | ||