Mathematica Asked by Najm Abid on June 4, 2021
I want to make a matrix in Mathematica that looks like this:
Any idea on how I can do this?
One possiblity is to define the function d as:
d = {{D[#, x], 0}, {0, D[#, y]}, {D[#, x], D[#, y]}} &
To apply this operator to a particular function:
f[x_, y_] := x^2 + Sin[y]
Then:
d[f[x, y]]
{{2 x, 0}, {0, Cos[y]}, {2 x, Cos[y]}}
Correct answer by bill s on June 4, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP