4 votes

Saving solutions of equations with indexed variables to a table

First, use Solve to get the solution: sol = First@Solve[{c[0, 4, 0] + ...} == {494/(6561 Sqrt[π]), ...}]; Now iterate through the values and put them in another ...
Domen's user avatar
  • 22.2k
3 votes

Implementing Brockett's Flow in Mathematica

Looks like A needs to be diagonal. Also, couldn't figure out why I couldn't reuse definition of commutator inside the compiled function until reading this post, I ...
Yaroslav Bulatov's user avatar
3 votes

Visualizing pseudo-spectra of large matrices

Matrix mat we test with this code is dense one, therefore, "Arnoldi" is not appropriate method. With Automatic options we have ...
Alex Trounev's user avatar
  • 43.4k
2 votes

Decomposing a quadratic form as a linear combination of squares of linear forms

"Eigensystem" is the function you are looking for. Here is an example: Given some symmetric square matrix: ...
Daniel Huber's user avatar
  • 50.3k

Only top scored, non community-wiki answers of a minimum length are eligible