Re: [R] derivatives in R

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Tue, 25 Mar 2008 02:24:08 +0000 (UTC)

Lavan <rsumithran_at_yahoo.com> wrote in
news:16265419.post_at_talk.nabble.com:

>
> Hi, I posted this message earlier in "Rmetrics" and I don't know
> whether I posted in the wrong place, so I'm posting it again in
> Rhelp.
>
> I have a function in x and y and let's call it f(x,y). I need to get
> the Hessian matrix. i.e I need (d^2f/dx^2), (d^2f/dxdy),
> (d^2f/dydx), (d^2f/dy^2).I can get these using the D function. now I
> need to evaluste the hessian matrix for -5<x<5 and -2<y<2 and I also
> need to print the output.
>
> I tried using a for loop,but it is giving me an error.

I was wondering if the fact that you provide neither an example nor even the text of the error that could be the explanation for no response.

-- 
David Winsemius

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 25 Mar 2008 - 03:14:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Mar 2008 - 04:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive