Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:objects:matrix:functions:conjugate [2024/12/12 16:53] – Maurits W. Haverkort | documentation:language_reference:objects:matrix:functions:conjugate [2024/12/12 17:07] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 5: | Line 5: | ||
Matrix.Conjugate($M$) takes a matrix and returns it with every entry replaced by its complex conjugate. | Matrix.Conjugate($M$) takes a matrix and returns it with every entry replaced by its complex conjugate. | ||
### | ### | ||
+ | |||
+ | |||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | A = Matrix.New({{1, | ||
+ | B = Matrix.Conjugate(A) | ||
+ | print(B) | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | { { 1 , 1 - 2 I } , | ||
+ | { 3 , 4 - 1 I } } | ||
+ | </ | ||