Tag Info

Hot answers tagged

6

Because Inactivate acts on Heads of expressions, replaces them with Inactive[h] where h is the Head of the expression and prevents them from evaluating. And in your case the Head of x y is Times: FullForm[x y] Times[x, y] So Inactivate[x y] Gives: Where the Times did not evaluate. Hence, the result you get when you apply TraditionalForm.


3

Consider this: Inactivate[3*5 - 2 - 3] // FullForm Inactive[Plus][Inactive[Times][3, 5], -2, -3] RunnyKine is correct regarding the cause but he did not really explain the mechanism involved. Formatting rules typically apply to (sub)expressions with certain heads. This has nothing to do with evaluation per se, but rather the patterns in the ...


3

In this case, it is advisable to use the Export command: Export["test", data, "Table"] Leads to: Alternative one can use TableSpacing i.e. manipulate space between rows or columns, OutputForm[TableForm[data, TableSpacing -> {0, 0}]] >> "test" this leads to; Edit One can control Accuracy by: data1 = SetAccuracy[RandomReal[{-1, 1}, {3, ...


3

This behavior is present in both version 7 and version 10 (Windows). Illustrated: IdentityMatrix[2] // matrixform {{1, 0}, {0, 1}} // matrixform There is a difference between {{1, 0}, {0, 1}} and (the evaluated form of) IdentityMatrix[2]: the latter is a packed array. {{1, 0}, {0, 1}} // Developer`PackedArrayQ IdentityMatrix[2] // ...


3

As Bob Hanlon comments the original output without Simplify is already in the form you want: efre = Sqrt[-coe // Eigenvalues] {Sqrt[1/2 (5 + Sqrt[5])] Sqrt[k/m], Sqrt[1/2 (3 + Sqrt[5])] Sqrt[k/m], Sqrt[1/2 (5 - Sqrt[5])] Sqrt[k/m], Sqrt[1/2 (3 - Sqrt[5])] Sqrt[k/m]} However, it may help to understand how to work with Simplify and FullSimplify. As ...


2

Remove["Global`*"] coe = k/m SparseArray[{{i_, i_} -> -2, {i_, j_} /; Abs[i - j] == 1 -> 1}, {4, 4}]; efre = Sqrt[k/m] *Simplify[Sqrt[-coe // Eigenvalues]/Sqrt[k/m]]; evec = coe // Eigenvectors // Simplify; Column[Subscript[\[Omega], #] & /@ Range@4 == efre // Thread, Spacings -> 2]



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