Quantcast
Channel: Turn vector equation into matrix multiplication - Mathematica Stack Exchange
Browsing index pages (2 articles)

Turn vector equation into matrix multiplication

I have physical equations of motion that describe the dependence of one vector field on the components of another vector field. Without getting too much into detail, my differential equations involve a...

View Article


Answer by Carl Woll for Turn vector equation into matrix multiplication

You could use CoefficientArrays. For example:m = CoefficientArrays[ { Ay[i]-Ay[i+1], -Ax[i]+Ax[i+1]-a Az[i], b Ay[i] }, {Ax[i],Ay[i],Az[i],Ax[i+1],Ay[i+1],Az[i+1]}][[2]];m //Normal...

View Article

Browsing index pages (2 articles)


Latest Images