Question: Matrix - gcd, lcm

Hello, I have a matrix (not Matrix) say A = [D+D^2 D^2 D ] [ ] [1 (D+D^2)/(1+D) D/(1+D)] I want to form a matrix B from A such that i_th row of B = i_th row of A * (lcm(i_th row of A) / gcd(i_th row of A) ) How can I get this done ? Regards, Iyer
Please Wait...