New answers tagged

1

As MarcoB pointed out above in the comments, there is an extra set of square brackets in [Sin[θ]]^2 expression. The correct B function should be B = 0.029 Log[r] Cos[θ] Sin[θ]^2; Square brackets in Mathematica are reserved for enclosing arguments of functions. Here is a link to Wolfram's documentation on howto/UseBracketsAndBracesCorrectly. More generally ...


1

Look up the difference between Append and AppendTo Append doesn't reassign the value of the List, while AppendTo does.


1

The difficulties here are due exclusively to syntax errors, such as interchanging Set and Equal. If the code is rewritten as, γ = 28; Subscript[μ, 0] = 1.25*10^-6; Subscript[M, 0] = 800*10^-3/Subscript[μ, 0]; Subscript[B, dc] = 200*10^-3; Subscript[B, eff] = {Subscript[B, dc], 0, 0} - Subscript[μ, 0]*Subscript[M, 0] Dot[m[t], {0, 0, 1}]; ...



Top 50 recent answers are included