Skip to content

Commit

Permalink
Merge branch 'master' into RsT_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera authored Feb 2, 2025
2 parents 8fbf234 + 6739cc4 commit fbe8232
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions mathics/builtin/arithfns/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ class Times(InfixOperator, SympyFunction):
<dl>
<dt>'Times'[$a$, $b$, ...]
<dt>$a$ '*' $b$ '* ...'
<dt>$a$ $b$ ...'
<dt>$a$ '*' $b$ '*' ...
<dt>$a$ $b$ ...
<dd>represents the product of the terms $a$, $b$, ...
</dl>
Expand Down
17 changes: 9 additions & 8 deletions mathics/builtin/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,17 +699,18 @@ class Product(IterationFunction, SympyFunction):
<url>:WMA link:https://reference.wolfram.com/language/ref/Product.html</url>
<dl>
<dt>'Product'[$expr$, {$i$, $imin$, $imax$}]
<dd>evaluates the discrete product of $expr$ with $i$ ranging from $imin$ to $imax$.
<dt>'Product'[$f$, {$i$, $i_{min}$, $i_{max}$}]
<dd>evaluates the discrete product of $f$ with $i$ ranging from $i_{min}$ to $i_{max}$.
<dt>'Product'[$expr$, {$i$, $imax$}]
<dd>same as 'Product[$expr$, {$i$, 1, $imax$}]'.
<dt>'Product'[$f$, {$i$, $i_{max}$}]
<dd>same as 'Product'[$f$, {$i, 1, i_{max}$}].
<dt>'Product'[$expr$, {$i$, $imin$, $imax$, $di$}]
<dd>$i$ ranges from $imin$ to $imax$ in steps of $di$.
<dt>'Product'[$f$, {$i, i_{min}, i_{max}$, $di$}]
<dd>$i$ ranges from $i_{min}$ to $i_{max}$ in steps of $di$.
<dt>'Product'[$expr$, {$i$, $imin$, $imax$}, {$j$, $jmin$, $jmax$}, ...]
<dd>evaluates $expr$ as a multiple product, with {$i$, ...}, {$j$, ...}, ... being in outermost-to-innermost order.
<dt>'Product'[$f$, {$i, i_{min}, i_{max}$}, {$j, j_{min}, j_{max}$}, ...]
<dd>evaluates $f$ as a multiple product, with {$i$, ...}, {$j$, ...}, ... being in \
outermost-to-innermost order.
</dl>
>> Product[k, {k, 1, 10}]
Expand Down
6 changes: 3 additions & 3 deletions mathics/builtin/quantum_mechanics/angular.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class ClebschGordan(SympyFunction):
<dl>
<dt>'ClebschGordan'[{$j_1$, $m_1$}, {$j_2$, $m_2$}, {$j$ $m$}]
<dd>returns the Clebsch-Gordan coefficient for the decomposition of $|j, m\rangle$ \
in terms of $|j1, m\rangle$, $|j2, m2\rangle$.
<dd>returns the Clebsch-Gordan coefficient for the decomposition of $|j, m\\rangle$ \
in terms of $|j1, m\\rangle$, $|j2, m2\\rangle$.
</dl>
>> ClebschGordan[{3 / 2, 3 / 2}, {1 / 2, -1 / 2}, {1, 1}]
Expand Down Expand Up @@ -227,7 +227,7 @@ class ThreeJSymbol(SympyFunction):
https://reference.wolfram.com/language/ref/ThreeJSymbol.html</url>)
<dl>
<dt>'ThreeJSymbol'[{$j1, $m1}, {$j_2$, $m_2$}, {$j_3$, $m_3$}]
<dt>'ThreeJSymbol'[{$j1, $m_1$}, {$j_2$, $m_2$}, {$j_3$, $m_3$}]
<dd>returns the values of the Wigner 3-$j$ symbol.
</dl>
Expand Down

0 comments on commit fbe8232

Please sign in to comment.