Re: [R] can R solve these paired equations

2007-12-17 Thread Robin Hankin
Hello [An answer was posted just now using numerical ideas; here is an answer from a symbolic perspective] These equations involve x^y in more than one unknown, so inverse functions cannot be used. I do not think you will be able to characterize even the number of solutions, let alone their natu

Re: [R] can R solve these paired equations

2007-12-16 Thread Charilaos Skiadas
Turn your problem into an optimization one and use the various optimization abilities of R, for instance have a look at nlm: ?nlm As an example to solve the rather simple: x-y=0 x+y=2 We could do: f <- function(vals) { x <- vals[1] y <- vals[2] sum(c(x-y,x+y-2)^2) } nl

[R] can R solve these paired equations

2007-12-16 Thread Xin
Dear: I have a paired equation below. Can I solve (x,y) using R. Thanks! Xin A=327.727 B=9517.336 p=0.114^10 (1-p)*y*(1-x)/x/(1-x^y)=A A(1+(1-x)*(1+y)/x-A))=B [[alternative HTML version deleted]] __ R-help@r-project.org ma