New answers tagged

1 vote

Find Elementary Matrices that produce RREF

The following answer is a contribution to enrich Nasser's code a little more: ...
E. Chan-López's user avatar
0 votes

Eigenvectors are divided by zero depending on evaluation, 6x6 matrix

Eigenvectors can be expanded by multiplying with an arbitrary number. So why not just multiply each eigenvector with the product of the denominators of its components? ...
Rainer Glüge's user avatar
0 votes

Eigenvectors are divided by zero depending on evaluation, 4x4 matrix

Do ...
Rainer Glüge's user avatar
1 vote

A simpler way of identifying which elements of Tuples[{0,1,2,3},6] multiply with each of my codewords to give zero?

This answer works over finite fields (package already established and GF(4) already established, not included in code below), however, I think you would just need to use ...
QC123_367's user avatar
  • 481
1 vote

Eigenvectors are divided by zero depending on evaluation, 6x6 matrix

This is just an application of answer posted here. ...
Wjx's user avatar
  • 9,518
2 votes

Eigenvectors are divided by zero depending on evaluation, 4x4 matrix

As you set the limit of b->0, some components will approach infinity, causing inconvenience. Fortunately, as we are dealing with eigenvectors, we can scale them ...
Wjx's user avatar
  • 9,518
4 votes

Eigenvectors are divided by zero depending on evaluation, 6x6 matrix

This is not an answer but too long for a comment. I can try to explain why you might not want to go the route you seem to be taking. First observe that, independent of the parameters, 0 is an ...
Daniel Lichtblau's user avatar
4 votes
Accepted

How to create a vector as a tensor object for different euclidean bases?

We name "global" the built in basis. Assume then that 2 arbitrary basis are stored column wise in the following matrices: ...
Daniel Huber's user avatar
  • 47.2k
3 votes

Is there a better way to calculate the number of codewords of weight $i$ in a list of codewords?

I cannot comment on the nice pieces of Mathematica code suggested by the other answerers, but as a (former) coding theorist I want to remark that people working in this area often use a generating ...
Jyrki Lahtonen's user avatar
2 votes
Accepted

Is there a better way to calculate the number of codewords of weight $i$ in a list of codewords?

Using GroupBy: codewords = {{0, 0, 0, 0}, {0, 0, 0, 1}, {0, 0, 1, 0}, {0, 0, 1, 1}}; GroupBy[codewords, Total, Length] <|0 -...
Syed's user avatar
  • 41.6k
1 vote

Is there a better way to calculate the number of codewords of weight $i$ in a list of codewords?

Given codewords = {{0, 0, 0, 0}, {0, 0, 0, 1}, {0, 0, 1, 0}, {0, 0, 1, 1}} and assuming that all letters are either 0 or 1, you could do this: ...
lericr's user avatar
  • 24.4k
2 votes

Is there a better way to calculate the number of codewords of weight $i$ in a list of codewords?

codewords = {{0, 0, 0, 0}, {1, 0, 0, 0}, {0, 1, 0, 0}, {1, 1, 0, 0}} a = Count[1] /@ codewords {0, 1, 1, 2} b = Counts @ a &...
eldo's user avatar
  • 47.8k
3 votes

Eigenvectors are divided by zero depending on evaluation, 6x6 matrix

This is too long for a comment, but not quite a full solution, since it would require tweaking for the particular problem at hand. But I can at least illustrate a method of fixing this issue that ...
march's user avatar
  • 22.9k
5 votes

Eigenvectors are divided by zero depending on evaluation, 4x4 matrix

You have to use FullSimplify: ...
eldo's user avatar
  • 47.8k
4 votes

How to write function series in Mathematica?

I am assuming $\otimes$ means normal matrix multiplication. In that case ...
Nasser's user avatar
  • 137k

Top 50 recent answers are included