>We want to solve X's and Y's value!! >When we have two equation: >For example: > >2X+3Y=5 >X+Y=2 > > > solve(matrix(c(2,1,3,1),2,2),c(5,2)) yields the solution. see '?solve' (you have to know about matrix algebra to understand this function) Christophe Pallier