Skip to content

Commit

Permalink
More doc corrections (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera authored Jan 25, 2025
1 parent 9048440 commit 81cddc4
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions mathics/doc/documentation/1-Manual.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ Be warned though that \Mathics does not yet offer the full range and features an

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.

The result of the previous query to \Mathics can be accessed by '%':

>> % ^ 2
= 9

\Mathics understands all basic arithmetic operators and applies the usual operator precedence. Use parentheses when needed:

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

<!--
TODO: Find some suitable place for the below. It does not belong here.

The result of the previous query to \Mathics can be accessed by '%':

>> 3 + 4
= 7

>> % ^ 2
= 49

##
-->

</section>

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

However, its full form is presented with ${\ldots}$
However, its full form is presented with '{...}'
>> FullForm[{1, 2, 3}]
= {1,2,3}

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

0 comments on commit 81cddc4

Please sign in to comment.