Library: | math |
See also: | cinv cmatmul |
Quantlet: | cmatdiv | |
Description: | Computes the complex solution of A x = b |
Usage: | x = cmatdiv (a, b) | |
Input: | ||
a | complex matrix A | |
b | complex matrix b | |
Output: | ||
x | complex matrix |
library("math") m = #(1,0)~#(0,1) a = complex(m,m) b = complex(#(1,1)) cmatdiv(a, b)
Contents of x.re [1,] 0.5 [2,] 0.5 Contents of x.im [1,] -0.5 [2,] -0.5