Skip to content

Commit

Permalink
More doc tagging (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky authored Feb 4, 2025
1 parent 8874890 commit 0809fcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mathics/builtin/numbers/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ class PowerExpand(Builtin):
<dl>
<dt>'PowerExpand'[$expr$]
<dd>expands out powers of the form '(x^y)^z' and '(x*y)^z' in $expr$.
<dd>expands out powers of the form $(x^y)^z$ and $(x y)^z$ in $expr$.
</dl>
>> PowerExpand[(a ^ b) ^ c]
Expand Down
12 changes: 6 additions & 6 deletions mathics/doc/documentation/1-Manual.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -588,21 +588,21 @@ In fact, <em>functions</em> in \Mathics are just one aspect of <em>patterns</em>
<dd>matches one expression.
<dt>'Pattern'[$x$, $p$]
<dd>matches the pattern $p$ and stores the matching sub-expression into $x$.
<dt>$x$'_' or 'Pattern[$x$, Blank[]]'
<dt>$x$'_' or 'Pattern['$x$, 'Blank[]]'
<dd>matches one expression and stores it in $x$.
<dt>'__' or 'BlankSequence[]'
<dd>matches a sequence of one or more expressions.
<dt>'___' or 'BlankNullSequence[]'
<dd>matches a sequence of zero or more expressions.
<dt>'_'$h$ or 'Blank'[$h$]
<dd>matches one expression with head $h$.
<dt>'$x$_$h$' or 'Pattern[$x$, Blank'[$h$]]
<dt>$x$'_'$h$ or 'Pattern['$x$, 'Blank['$h$']]'
<dd>matches one expression with head $h$ and stores it in $x$.
<dt>'$p$ | $q$' or 'Alternatives'[$p$, $q$]
<dt>$p$ | $q$ or 'Alternatives['$p$, $q$']'
<dd>matches either pattern $p$ or $q$.
<dt>'$p$ ? $t$' or 'PatternTest'[$p$, $t$]
<dd>matches $p$ if the test '$t$[$p$]' yields 'True'.
<dt>'$p$ '/;' $c$' or 'Condition'[$p$, $c$]
<dt>$p$ '?' $t$ or 'PatternTest['$p$, $t$']'
<dd>matches $p$ if the test $t[p]$ yields 'True'.
<dt>$p$ '/;' $c$ or 'Condition['$p$, $c$']'
<dd>matches $p$ if condition $c$ holds.
<dt>'Verbatim'[$p$]
<dd>matches an expression that equals $p$, without regarding patterns inside $p$.
Expand Down

0 comments on commit 0809fcf

Please sign in to comment.