Skip to main content

New answers tagged

2 votes
Accepted

Using NumberForm in TableForm

...
eldo's user avatar
  • 81.1k
4 votes

How to suppress Sign[...] in output

Another way, for a different use-case than the one in @rhermans's answer: ...
Michael E2's user avatar
  • 239k
0 votes

Integrating over an interval

[H]ow do I integrate v from xmin to x_1, then x_1 to <...
Michael E2's user avatar
  • 239k
8 votes

How to suppress Sign[...] in output

There is no point in suppressing it without changing the value of the expression. You can transform it into a Piecewise expression with ...
rhermans's user avatar
  • 36.9k
1 vote

Identifying the order of the output

You may need to consolidate Mathematica code that computes the eigenvalues of the matrix and directly outputs them: ...
zeraoulia rafik's user avatar
4 votes
Accepted

Identifying the order of the output

Use Eigensystem. ...
Domen's user avatar
  • 27.6k
4 votes

Is it possible for Mathematica to output the name of a matrix as opposed to its matrix form?

My original idea was to use MakeBoxes[] to accomplish the formatting of the OP's example: You can, in fact, have Mathematica output a certain variable name when ...
Michael E2's user avatar
  • 239k
10 votes
Accepted

Is it possible for Mathematica to output the name of a matrix as opposed to its matrix form?

You can decompose any Hermitian 2×2 matrix $A$ into a sum over Pauli matrices, $$ A=c_1\mathbb{1}+c_x\sigma_x+c_y\sigma_y+c_z\sigma_z $$ and the coefficients $(c_1,c_x,c_y,c_z)$ can be computed by the ...
Roman's user avatar
  • 48.7k
5 votes

Is it possible for Mathematica to output the name of a matrix as opposed to its matrix form?

To print some name instead of an object may be achieved by $PrePrint. E.g. your example: ...
Daniel Huber's user avatar
  • 53.5k
7 votes

Is it possible for Mathematica to output the name of a matrix as opposed to its matrix form?

This is a partial answer addressing only the first example given. If you Set the value of a symbol, the symbol can never appear in the output, only its value. ...
Bob Hanlon's user avatar
  • 160k

Top 50 recent answers are included