New answers tagged

8

Mathematica is a term rewriting system. It works by taking an input expression and transforming it according to some rules to produce an output expression. The implication is that every evaluation will have a result. For every input there is an output. Null is simply the expression used to represent "no result". In StandardForm and OutputForm it is not ...


1

I may have found a nice way. However, I think the output is a bit ugly. Here's the working code : NullCurve1[n_] := NDSolve[{ u'[r] == 2/(1 - 1/r), u[0] == 2 n }, {u}, {r, 0, 1}, Method -> Automatic, MaxSteps -> 100000 ] NullCurve2[n_] := NDSolve[{ u'[r] == 2/(1 - 1/r), u[5] == 2 n }, {u}, {r, 1, 10}, Method -&...


2

I will use Eq. 22.7 of your reference $ v = 2 r + 4 m \ln(|r - 2 m|) + B$ The obliques are, I guess is given by $v=-u$. For scaling I am considering $u=2mr$. m = 1/2; Show[ContourPlot[Evaluate@Table[ v == 2 r + 4 m Log[Abs[r - 2 m]] + n, {n, -5, 5}], {r,0,4 m}, {v,-3m,3m}, ContourStyle -> Blue, AspectRatio -> 3/2], ContourPlot[Evaluate@Table[v == -...


2

The simplest and cleanest solution is to use a printing function which evaluates on the main kernel. SetSharedFunction causes a function to always evaluate on the main kernel (despite the somewhat confusing documentation). Example (run in a terminal): Mathematica 10.4.1 for Mac OS X x86 (64-bit) Copyright 1988-2016 Wolfram Research, Inc. In[1]:= print[...


13

Citing this 1996 year MathGroup post by Dave Wagner, A similar function, Continuation[n], is called to format the character at the beginning of continued lines. So, for example, the definition Format[Continuation[n_]] := StringForm["(``)",n] would place a line number inside of parentheses on the second and subsequent lines of a multi-line ...


7

After a quick Google search I came across this, which provides a description. Translation: Continuation[n] is the result at the beginning of the nth line in a multiline printed Expression. The default value of Continuation is either the string " " or the string ">". The value of Continuation is can be changed with the command Format[Continuation[n_]]:=...


7

\[Continuation] is also the name of the special character used to indicate that input should be interpreted as continuing in the next line, or to break output too long for the current window. I suspect Continuation[] to be the operator form of that infix symbol. On second thought, I suspect that the formatting references you found are linked to special ...



Top 50 recent answers are included