Questions on correct (or improved) formulation of Mathematica code to achieve particular results. Use this tag (not "symbol") for questions about all those odd @@ /@ # & and ~ characters.

learn more… | top users | synonyms

0
votes
0answers
35 views

How to change FormatType for output and Syntax error separately?

For some demand, I am using MathMLForm for all output SetOptions["stdout", FormatType -> MathMLForm] But this effect the syntax error format as well.(it's ...
0
votes
0answers
98 views

Meaning of backtick in conjunction with units [duplicate]

In this fragment from an equation solution the backtick is used twice: ...
0
votes
0answers
56 views

TableDirection in TableForm

I got confused about what does "the outermost dimension" and "the first dimension" mean in the document I snipped. Does it mean row or column?
0
votes
0answers
42 views

Using Table[ ] vs using Do[Append [ ] ] [duplicate]

Is it generally better/faster to use the Table function over using Do[Append []]? For example, I have this piece of code: ...
0
votes
0answers
21 views

Incorporating Built-In Function Options/Parameters into Shorthand [duplicate]

Shorthand syntax provides an alternate way to apply functions and, in many cases, improves readability. A simple example would be ...
0
votes
0answers
142 views

The /. syntax in numerical methods [duplicate]

I have an analytical approximation method for solving an ODE and want to compare this to an NDSolve solution, but the syntax is confusing me. To get the solution from NDSolve, I define the ODE as eqn ...
0
votes
0answers
160 views

Assigning numerical values to constants results in complex coefficients in Equations of Motion

I am using Mathematica to get the Equations of Motion (EOM) for a mechanical system (using Lagrangian Mechanics). While I get the EOM in symbolic form, on introducing the following code for assigning ...
0
votes
1answer
93 views

Why does Eigenvalues[matrix I defined] not work? [duplicate]

This is the code I have in my mathematica notebook. I want to find the eigenvalues of the matrix I created called Hmatrix as defined below. However when I type Eigenvalues[Hmatrix] I get the Hmatrix ...
-1
votes
0answers
20 views

EllipticK error message [on hold]

I need help correcting this error message in Mathematica. ...
-2
votes
0answers
20 views

How to use EllipticK in a plot and avoid getting the “not a machine-sized real number” error message? [on hold]

k = Sin[π/2]; m = k^2 θ (τ) = 2 ArcSin[Sin (π/3).JacobiSN[x_, m] {τ - τ0, k}]; Plot[θ (τ_), {t, 0, 4 EllipticK[m]}] ...
-5
votes
1answer
282 views

Split dataset based on the first column [duplicate]

I have a dataset which I want to split based on the first column. The data looks like this ...