|
| 1 | +.. index:: AbelianGroup |
| 2 | + |
| 3 | +.. _l4162656c69616e47726f7570: |
| 4 | + |
| 5 | +AbelianGroup |
| 6 | +============ |
| 7 | + |
| 8 | +:viewcode:`catdef.spad line 1 <catdef.spad#L1>` :editcode:`[edit on github] <catdef.spad#L1>` |
| 9 | + |
| 10 | + |
| 11 | +The class of abelian groups, i.e. additive monoids where each element has an additive inverse. |
| 12 | + |
| 13 | + |
| 14 | +.. _l4162656c69616e47726f7570-30: |
| 15 | + |
| 16 | +\ :ref:`0 <l4162656c69616e4d6f6e6f6964-30>`\ \: % |
| 17 | + from \ :ref:`AbelianMonoid <l4162656c69616e4d6f6e6f6964>`\ |
| 18 | + |
| 19 | +.. _l4162656c69616e47726f7570-2a: |
| 20 | + |
| 21 | +.. index:: |
| 22 | + pair: AbelianGroup; * |
| 23 | + |
| 24 | +:spadfun:`\*`\: (\ :ref:`Integer <l496e7465676572>`\ , %) -> % |
| 25 | + \ ``n*x``\ is the product of \ ``x``\ by the integer \ ``n``\ . |
| 26 | + |
| 27 | + |
| 28 | +\ :ref:`\* <l4162656c69616e4d6f6e6f6964-2a>`\ \: (\ :ref:`NonNegativeInteger <l4e6f6e4e65676174697665496e7465676572>`\ , %) -> % |
| 29 | + from \ :ref:`AbelianMonoid <l4162656c69616e4d6f6e6f6964>`\ |
| 30 | + |
| 31 | + |
| 32 | +\ :ref:`\* <l4162656c69616e53656d6947726f7570-2a>`\ \: (\ :ref:`PositiveInteger <l506f736974697665496e7465676572>`\ , %) -> % |
| 33 | + from \ :ref:`AbelianSemiGroup <l4162656c69616e53656d6947726f7570>`\ |
| 34 | + |
| 35 | +.. _l4162656c69616e47726f7570-2b: |
| 36 | + |
| 37 | +\ :ref:`+ <l4162656c69616e53656d6947726f7570-2b>`\ \: (%, %) -> % |
| 38 | + from \ :ref:`AbelianSemiGroup <l4162656c69616e53656d6947726f7570>`\ |
| 39 | + |
| 40 | +.. _l4162656c69616e47726f7570-2d: |
| 41 | + |
| 42 | +.. index:: |
| 43 | + pair: AbelianGroup; - |
| 44 | + |
| 45 | +:spadfun:`-`\: % -> % |
| 46 | + \ ``-x``\ is the additive inverse of \ ``x``\ . |
| 47 | + |
| 48 | + |
| 49 | +.. index:: |
| 50 | + pair: AbelianGroup; - |
| 51 | + |
| 52 | +:spadfun:`-`\: (%, %) -> % |
| 53 | + \ ``x-y``\ is the difference of \ ``x``\ and \ ``y``\ i.e. \ ``x + (-y)``\ . |
| 54 | + |
| 55 | +.. _l4162656c69616e47726f7570-3d: |
| 56 | + |
| 57 | +\ :ref:`= <l426173696354797065-3d>`\ \: (%, %) -> \ :ref:`Boolean <l426f6f6c65616e>`\ |
| 58 | + from \ :ref:`BasicType <l426173696354797065>`\ |
| 59 | + |
| 60 | +.. _l4162656c69616e47726f7570-7e3d: |
| 61 | + |
| 62 | +\ :ref:`~= <l426173696354797065-7e3d>`\ \: (%, %) -> \ :ref:`Boolean <l426f6f6c65616e>`\ |
| 63 | + from \ :ref:`BasicType <l426173696354797065>`\ |
| 64 | + |
| 65 | +.. _l4162656c69616e47726f7570-636f65726365: |
| 66 | + |
| 67 | +\ :ref:`coerce <l436f65726369626c65546f-636f65726365>`\ \: % -> \ :ref:`OutputForm <l4f7574707574466f726d>`\ |
| 68 | + from \ :ref:`CoercibleTo <l436f65726369626c65546f>`\ \ :ref:`OutputForm <l4f7574707574466f726d>`\ |
| 69 | + |
| 70 | +.. _l4162656c69616e47726f7570-6c61746578: |
| 71 | + |
| 72 | +\ :ref:`latex <l53657443617465676f7279-6c61746578>`\ \: % -> \ :ref:`String <l537472696e67>`\ |
| 73 | + from \ :ref:`SetCategory <l53657443617465676f7279>`\ |
| 74 | + |
| 75 | +.. _l4162656c69616e47726f7570-6f70706f736974653f: |
| 76 | + |
| 77 | +\ :ref:`opposite? <l4162656c69616e4d6f6e6f6964-6f70706f736974653f>`\ \: (%, %) -> \ :ref:`Boolean <l426f6f6c65616e>`\ |
| 78 | + from \ :ref:`AbelianMonoid <l4162656c69616e4d6f6e6f6964>`\ |
| 79 | + |
| 80 | +.. _l4162656c69616e47726f7570-73616d706c65: |
| 81 | + |
| 82 | +\ :ref:`sample <l4162656c69616e4d6f6e6f6964-73616d706c65>`\ \: % |
| 83 | + from \ :ref:`AbelianMonoid <l4162656c69616e4d6f6e6f6964>`\ |
| 84 | + |
| 85 | +.. _l4162656c69616e47726f7570-7375627472616374496643616e: |
| 86 | + |
| 87 | +\ :ref:`subtractIfCan <l43616e63656c6c6174696f6e4162656c69616e4d6f6e6f6964-7375627472616374496643616e>`\ \: (%, %) -> Union(%, failed) |
| 88 | + from \ :ref:`CancellationAbelianMonoid <l43616e63656c6c6174696f6e4162656c69616e4d6f6e6f6964>`\ |
| 89 | + |
| 90 | +.. _l4162656c69616e47726f7570-7a65726f3f: |
| 91 | + |
| 92 | +\ :ref:`zero? <l4162656c69616e4d6f6e6f6964-7a65726f3f>`\ \: % -> \ :ref:`Boolean <l426f6f6c65616e>`\ |
| 93 | + from \ :ref:`AbelianMonoid <l4162656c69616e4d6f6e6f6964>`\ |
| 94 | + |
| 95 | + |
| 96 | +\ :ref:`AbelianMonoid <l4162656c69616e4d6f6e6f6964>`\ |
| 97 | + |
| 98 | +\ :ref:`AbelianSemiGroup <l4162656c69616e53656d6947726f7570>`\ |
| 99 | + |
| 100 | +\ :ref:`BasicType <l426173696354797065>`\ |
| 101 | + |
| 102 | +\ :ref:`CancellationAbelianMonoid <l43616e63656c6c6174696f6e4162656c69616e4d6f6e6f6964>`\ |
| 103 | + |
| 104 | +\ :ref:`CoercibleTo <l436f65726369626c65546f>`\ \ :ref:`OutputForm <l4f7574707574466f726d>`\ |
| 105 | + |
| 106 | +\ :ref:`SetCategory <l53657443617465676f7279>`\ |
| 107 | + |
0 commit comments