Skip to content

Commit 81cddc4

Browse files
authored
More doc corrections (#1318)
1 parent 9048440 commit 81cddc4

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

mathics/doc/documentation/1-Manual.mdoc

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Be warned though that \Mathics does not yet offer the full range and features an
110110

111111
To submit a command to \Mathics, press 'Shift+Return' in the Web interface or 'Return' in the console interface. The result will be printed in a new line below your query.
112112

113+
The result of the previous query to \Mathics can be accessed by '%':
114+
115+
>> % ^ 2
116+
= 9
117+
113118
\Mathics understands all basic arithmetic operators and applies the usual operator precedence. Use parentheses when needed:
114119

115120
>> 1 - 2 * (3 + 5) / 4
@@ -207,20 +212,6 @@ There is also the value, <url>:'Indeterminate':/doc/reference-of-built-in-symbol
207212
: Indeterminate expression 0 ^ 0 encountered.
208213
= Indeterminate
209214

210-
<!--
211-
TODO: Find some suitable place for the below. It does not belong here.
212-
213-
The result of the previous query to \Mathics can be accessed by '%':
214-
215-
>> 3 + 4
216-
= 7
217-
218-
>> % ^ 2
219-
= 49
220-
221-
##
222-
-->
223-
224215
</section>
225216

226217
<section title="Precision and Accuracy">
@@ -491,7 +482,7 @@ Even lists are function calls of the function 'List':
491482
>> Head[{1, 2, 3}]
492483
= List
493484

494-
However, its full form is presented with ${\ldots}$
485+
However, its full form is presented with '{...}'
495486
>> FullForm[{1, 2, 3}]
496487
= {1,2,3}
497488

@@ -596,7 +587,7 @@ In fact, <em>functions</em> in \Mathics are just one aspect of <em>patterns</em>
596587
<dt>'_' or 'Blank[]'
597588
<dd>matches one expression.
598589
<dt>'Pattern[$x$, $p$]'
599-
<dd>matches the pattern $p$ and stores the value in $x$.
590+
<dd>matches the pattern $p$ and stores the matching sub-expression into $x$.
600591
<dt>'$x$_' or 'Pattern[$x$, Blank[]]'
601592
<dd>matches one expression and stores it in $x$.
602593
<dt>'__' or 'BlankSequence[]'

0 commit comments

Comments
 (0)