Re: [R] Jacobian

2009-04-14 Thread Ravi Varadhan
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Roslina Zakaria Sent: Monday, April 13, 2009 9:48 PM To: r-help@r-project.org; r-help-boun...@r-project.org Subject: [R] Jacobian Hi R

[R] Jacobian

2009-04-13 Thread Roslina Zakaria
Hi R-users,  I would like to use jacobian function from numDeriv package.  If I have more than one parameters how do I modify it? This is the example given in the package: func2 - function(x) c(sin(x), cos(x))    x - (0:1)*2*pi    jacobian(func2, x) Can I do the following: z - c(x,y) func2