Please provide an example that doesn't work, I made one up quickly just to 
see what would happend and it worked without errors.
 > g=c(1,0,2,0)
> g
[1] 1 0 2 0
> v<-c(5,10,15,20)
> dim(v) <- c(2,2)
> v
[,1] [,2]
[1,] 5 15
[2,] 10 20
> solve(v)*g
[,1] [,2]
[1,] -0.4 0.6
[2,] 0.0 0.0


 On 8/30/05, Christian Hinz <Chris.Planet@gmx.de> wrote: 
> 
> I have own function wrote. I used an algorithm, which was written in 
> Matlab.
> 
> in matlab:
> ...
> gamma = inv(v)*g;
> ...
> 
> #v = matrix of variable size, v=vv(k) => k=2 => dimension of v 2x2
> #g = a line vector with 4 elements e.g. g=[1,0,2,0];
> 
> my rewritten r-file:
> ...
> gamma = solve(v)*g;
> ...
> 
> which is my error? Who can help me?
> 
> thank you in advance.
> 
> Chris
> 
> 
> --
> Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
> 
> --
> 
> ______________________________________________
> 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
>

	[[alternative HTML version deleted]]


