Re: [R] Simultaneous equations

2012-06-08 Thread Cren
Hi all, I was wondering why I get errors trying to solve this: *simeq <- function(x) { f <- numeric(length(x)) f[1] <- x[1] * dnorm((log(x[1]/D) + (r + x[2]^2/2) * T)/(x[2] * sqrt(T))) - D * exp(-r * T) * dnorm((log(x[1]/D) + (r + x[2]^2/2) * T)/(x[2] * sqrt(T)) - x[2] * sqrt(T)) f[2] <- dn

Re: [R] Simultaneous equations

2010-09-02 Thread benhartley903
Thanks Peter Actually I should have specified. These are not actually the functions I ultimately want to solve can't be rearranged explicitly and substituted. I do need a way to solve simultaneously. Ben -- View this message in context: http://r.789695.n4.nabble.com/Simultaneous-equations-tp25

Re: [R] Simultaneous equations

2010-09-02 Thread Peter Dalgaard
On 09/02/2010 09:25 PM, benhartley903 wrote: > > Dear all, > I am relatively new to R and have had some difficulty in understanding the > user manual for a package that I have downloaded to evaluate non-linear > simultaneous equations. > The package is called systemfit. > Does anyone have any e

Re: [R] Simultaneous equations

2010-09-02 Thread Berend Hasselman
benhartley903 wrote: > > Dear all, > I am relatively new to R and have had some difficulty in understanding the > user manual for a package that I have downloaded to evaluate non-linear > simultaneous equations. > The package is called systemfit. > Does anyone have any experience of this pack

[R] Simultaneous equations

2010-09-02 Thread benhartley903
Dear all, I am relatively new to R and have had some difficulty in understanding the user manual for a package that I have downloaded to evaluate non-linear simultaneous equations. The package is called systemfit. Does anyone have any experience of this package? What I am trying to do is solve