You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mathics/doc/documentation/1-Manual.mdoc
+7-16Lines changed: 7 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,11 @@ Be warned though that \Mathics does not yet offer the full range and features an
110
110
111
111
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.
112
112
113
+
The result of the previous query to \Mathics can be accessed by '%':
114
+
115
+
>> % ^ 2
116
+
= 9
117
+
113
118
\Mathics understands all basic arithmetic operators and applies the usual operator precedence. Use parentheses when needed:
114
119
115
120
>> 1 - 2 * (3 + 5) / 4
@@ -207,20 +212,6 @@ There is also the value, <url>:'Indeterminate':/doc/reference-of-built-in-symbol
207
212
: Indeterminate expression 0 ^ 0 encountered.
208
213
= Indeterminate
209
214
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
-
224
215
</section>
225
216
226
217
<section title="Precision and Accuracy">
@@ -491,7 +482,7 @@ Even lists are function calls of the function 'List':
491
482
>> Head[{1, 2, 3}]
492
483
= List
493
484
494
-
However, its full form is presented with ${\ldots}$
485
+
However, its full form is presented with '{...}'
495
486
>> FullForm[{1, 2, 3}]
496
487
= {1,2,3}
497
488
@@ -596,7 +587,7 @@ In fact, <em>functions</em> in \Mathics are just one aspect of <em>patterns</em>
596
587
<dt>'_' or 'Blank[]'
597
588
<dd>matches one expression.
598
589
<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$.
0 commit comments