article

若在抽象代數,若二元運算#在集合S對於S中任何xyz皆有(x#y)#z=x#(y#z),則稱#符合結合律。相似地,函數符合 f \left( x, f \left( y, z \right) \right) = f \left( f \left( x, y \right), z \right)

實數複數四元數加法乘法均符合結合律。雖然八元數的加法符合結合律,其乘法卻不符合。

最大公因數和最小公倍數都符合結合律。

有些運算只能向左符合結合律,如減法除法

  • x-y-z=(x-y)-z \ne x-(y-z)
  • x/y/z=(x/y)/z \ne x/(y/z)

向右的有冪:x^{y^z}=x^{(y^z)}

多數編程語言的運算子都是向右符合結合律,例如C語言x = y = z; 等同 x = (y = z); 而非 (x = y) = z;

參見


抽象代数 | 算术

Асоциативност | Asociativita | Associativitet | Assoziativgesetz | Associativity | Asocieco | Asociatividad | Liitännäisyys | Associativité | אסוציאטיביות | Associatività | 結合法則 | 결합 법칙 | Associativiteit | Łączność (matematyka) | Ассоциативная операция | Asociatívna operácia | Asociativnost | Associativitet

 

This article is licensed under the GNU Free Documentation License. It uses material from the "结合律".

Home Pageartsbusinesscomputersgameshealthhospitalshomekids & teensnewsphysiciansrecreationreferenceregionalscienceshoppingsocietysportsworld