Question: use Rstuido Write a function jacobean(f, x, h) which takes as inputs a function f :RM R, XER and h> 0 and returns an approximation

use Rstuidouse Rstuido Write a function jacobean(f, x, h) which takes as inputs

Write a function jacobean(f, x, h) which takes as inputs a function f :RM R", XER" and h> 0 and returns an approximation of the Jacobean matrix evaluated at x using the midpoint formula with step- size h. For example: Test Result f_test - function(){ [,1] [.2] 3* cos(x[1]+x[2])/(1 + (x[1]-x[2])^2) [1, ] 1.190306 -0.3051796 } jacobean(f_test, c(-1,0.5), 0.01) Write a function jacobean(f, x, h) which takes as inputs a function f :RM R", XER" and h> 0 and returns an approximation of the Jacobean matrix evaluated at x using the midpoint formula with step- size h. For example: Test Result f_test - function(){ [,1] [.2] 3* cos(x[1]+x[2])/(1 + (x[1]-x[2])^2) [1, ] 1.190306 -0.3051796 } jacobean(f_test, c(-1,0.5), 0.01)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!