Skip to main content
Markup
Source Link
David
  • 15.1k
  • 6
  • 53
  • 82

Two possible answers.

a) TexForm converts a Mathematica expression into something you can use to paste it in TeX:

TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

A usually more convenient way of achieving this is right-clicking output, and selecting Copy as | LaTeX.

b) If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

enter image description here

Be careful only to use these commands to display already existing values. For example, when you're writing something like

m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

enter image description here

  1. TexForm converts a Mathematica expression into something you can use to paste it in TeX:

     TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

    A usually more convenient way of achieving this is right-clicking output, and selecting Copy as | LaTeX.

  2. If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

     m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

    enter image description here

    Be careful only to use these commands to display already existing values. For example, when you're writing something like

     m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

    then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

    enter image description here

Two possible answers.

a) TexForm converts a Mathematica expression into something you can use to paste it in TeX:

TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

A usually more convenient way of achieving this is right-clicking output, and selecting Copy as | LaTeX.

b) If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

enter image description here

Be careful only to use these commands to display already existing values. For example, when you're writing something like

m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

enter image description here

Two possible answers.

  1. TexForm converts a Mathematica expression into something you can use to paste it in TeX:

     TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

    A usually more convenient way of achieving this is right-clicking output, and selecting Copy as | LaTeX.

  2. If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

     m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

    enter image description here

    Be careful only to use these commands to display already existing values. For example, when you're writing something like

     m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

    then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

    enter image description here

added 122 characters in body
Source Link
David
  • 15.1k
  • 6
  • 53
  • 82

Two possible answers.

a) TexForm converts a Mathematica expression into something you can use to paste it in TeX:

TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

A usually more convenient way of achieving this is right-clicking output, and selecting Copy as | LaTeX.

b) If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

enter image description here

Be careful only to use these commands to display already existing values. For example, when you're writing something like

m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

enter image description here

Two possible answers.

a) TexForm converts a Mathematica expression into something you can use in TeX:

TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

b) If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

enter image description here

Be careful only to use these commands to display already existing values. For example, when you're writing something like

m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

enter image description here

Two possible answers.

a) TexForm converts a Mathematica expression into something you can use to paste it in TeX:

TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

A usually more convenient way of achieving this is right-clicking output, and selecting Copy as | LaTeX.

b) If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

enter image description here

Be careful only to use these commands to display already existing values. For example, when you're writing something like

m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

enter image description here

Source Link
David
  • 15.1k
  • 6
  • 53
  • 82

Two possible answers.

a) TexForm converts a Mathematica expression into something you can use in TeX:

TeXForm[x/Sqrt[5]] ==> \frac{x}{\sqrt{5}} 

b) If all you're looking for is a neater display form inside Mathematica, then have a look at MatrixForm and TraditionalForm.

m = {{1, 2}, {3, 4}}; TraditionalForm[m] MatrixForm[m] 

enter image description here

Be careful only to use these commands to display already existing values. For example, when you're writing something like

m = TraditionalForm[{{1, 2}, {3, 4}}]; Eigenvalues[m] 

then m is not assigned the matrix, but its TraditionalForm representation, which does not behave like a matrix anymore. The output of the above is simply a silly line:

enter image description here