Re: [R] inverse matrix

2005-10-28 Thread Sundar Dorai-Raj
Sam R. Smith wrote: if solve(a,b) means to calculate an inverse matrix of a with b, and i wonder why solve(a)%%b will get different result? It does? Or perhaps your %% is not just a typo. It should be %*%. a - matrix(rnorm(16), 4, 4) b - matrix(rnorm(4), 4, 1) solve(a, b)

Re: [R] inverse matrix

2005-10-28 Thread Peter Dalgaard
Sundar Dorai-Raj [EMAIL PROTECTED] writes: Sam R. Smith wrote: if solve(a,b) means to calculate an inverse matrix of a with b, and i wonder why solve(a)%%b will get different result? It does? Or perhaps your %% is not just a typo. It should be %*%. a - matrix(rnorm(16), 4, 4)

[R] inverse matrix

2005-10-27 Thread Sam R. Smith
if solve(a,b) means to calculate an inverse matrix of a with b, and i wonder why solve(a)%%b will get different result? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!