Message Boards Message Boards

0
|
3699 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

How to access an element in a Jacobian?

Posted 9 years ago

I have the following system

dxdt[x_,y_] := a x^2 - b y^3 + c;
dydt[x_,y_] := d x^3 - e y^2 + f ;
Eqs[x_,y_] = {dxdt[x,y], dydt[x,y]};
JacobianEqs[x_,y_] = D[Eqs[x,y],{{x,y}}]

I would like now to add terms to specific elements of the matrix that I obtain in JacobianEqs, but it I use

JacobianEqs[1,1]

It would give me the result of x=1 and y=1. How can I access the matrix element [1,1] of JacobianEqs?

Attachments:
POSTED BY: Omer Tzuk

The Jacobian matrix is a matrix, and you access its elements with Part, or, more commonly, with the shortcut [[]]

JacobianEqs[x, y][[1, 1]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract