-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Thought these were carefully tested in TMB, but just came across this:
library(RTMB)
f <- function(p) besselJ(6, p)
F <- MakeTape(f,1)
f(5)
## [1] 0.3620871
F(5) ## OK
## [1] 0.3620871
numDeriv::grad(f,5)
## [1] -0.08149916
F$jacobian(5) ## Wrong!
## [,1]
##[1,] -0.6882948Might be relevant to go back and have a look at https://www.admb-project.org/developers/workshops/seattle-2016/Kristensen_Anders_Report.pdf
Metadata
Metadata
Assignees
Labels
No labels