>a<-array(c(3,4,1),dim=c(3,1))
>b<-a%*%a
>solve(b)

amna khan <amnakhan493@gmail.com> a écrit : Sir I am new user of R. I am facing problems in solving matrices.
for example
>a<-array(c(3,4,1),dim=c(3,1))
>b<-a%o%a
>b

, , 1, 1

     [,1]
[1,]    9
[2,]   12
[3,]    3

, , 2, 1

     [,1]
[1,]   12
[2,]   16
[3,]    4

, , 3, 1

     [,1]
[1,]    3
[2,]    4
[3,]    1
>solve(b)
Error in solve.default(b) : only square matrices can be inverted
>solve(b,a)
Error in solve.default(b, a) : 'b' must be compatible with 'a'
Sir I request you to help me in  this regard.

AMINA SHAHZAD
Department of Statistics
GC University Lahore, Pakistan.
Email:
amnakhan493@gmail.com
amna_989@hotmail.com
amna_989@yahoo.com

 [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



Justin BEM
Elève Ingénieur Statisticien Economiste
BP 294 Yaoundé.
Tél (00237)9597295.
 		
---------------------------------

	[[alternative HTML version deleted]]

