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
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
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
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
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
5 matches
Mail list logo