CINXE.COM

二元運算 - 維基大典

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="lzh" dir="ltr"> <head> <meta charset="UTF-8"> <title>二元運算 - 維基大典</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )zh_classicalwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[".\t,","點\t"],"wgDigitTransformTable":[ "0\t1\t2\t3\t4\t5\t6\t7\t8\t9","〇\t一\t二\t三\t四\t五\t六\t七\t八\t九"],"wgDefaultDateFormat":"zh","wgMonthNames":["","一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"wgRequestId":"4d01f5d1-6c41-48c8-b12a-c2c23c48b9e2","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"二元運算","wgTitle":"二元運算","wgCurRevisionId":389754,"wgRevisionId":0,"wgArticleId":15807,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["代數"],"wgPageViewLanguage":"lzh","wgPageContentLanguage":"lzh","wgPageContentModel":"wikitext","wgRelevantPageName":"二元運算","wgRelevantArticleId":15807,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRedirectedFrom":"交換律","wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":true, "wgFlaggedRevsParams":{"tags":{"accuracy":{"levels":2}}},"wgStableRevisionId":0,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"lzh","pageLanguageDir":"ltr","pageVariantFallbacks":"lzh"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":2000,"wgInternalRedirectTargetUrl":"/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97","wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q164307","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false, "wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.gadget.DisambiguationLinks":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.math.styles":"ready","ext.cite.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.flaggedRevs.basic":"ready","mediawiki.codex.messagebox.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.cite.ux-enhancements","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.flaggedRevs.advanced","ext.gadget.shortURL","ext.gadget.IRC", "ext.gadget.collapsibleTables","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=lzh&amp;modules=ext.cite.styles%7Cext.flaggedRevs.basic%7Cext.math.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cmediawiki.codex.messagebox.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=lzh&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=lzh&amp;modules=ext.gadget.DisambiguationLinks&amp;only=styles&amp;skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=lzh&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="二元運算 - 維基大典"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//zh-classical.m.wikipedia.org/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97"> <link rel="alternate" type="application/x-wiki" title="纂" href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="維基大典 (lzh)"> <link rel="EditURI" type="application/rsd+xml" href="//zh-classical.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://zh-classical.wikipedia.org/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh-classical"> <link rel="alternate" type="application/atom+xml" title="維基大典之Atom源" href="/w/index.php?title=%E7%89%B9%E6%AE%8A:%E7%9B%A3%E4%BF%AE&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-二元運算 rootpage-二元運算 skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">跳至內容</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="站台"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="主選單" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">主選單</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">主選單</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">移至側邊欄</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">隱藏</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> 導覽 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E5%8D%B7%E9%A6%96" title="返卷首,訪露朝[z]" accesskey="z"><span>卷首</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E5%B8%82%E9%9B%86" title="識百科、習施行、熟矩教"><span>市集</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E4%B8%96%E4%BA%8B" title="知天下、順潮流、察脈絡"><span>世事</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E7%9B%A3%E4%BF%AE" title="閱新易、聞脈搏、觀熱鬧[r]" accesskey="r"><span>監修</span></a></li><li id="n-featured-articles" class="mw-list-item"><a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E5%8D%93%E8%91%97"><span>絕妙好文</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E6%B8%85%E9%A2%A8%E7%BF%BB%E6%9B%B8" title="嚐鮮味,隨遊遨[x]" accesskey="x"><span>清風翻書</span></a></li><li id="n-commonsupload" class="mw-list-item"><a href="https://commons.wikimedia.org/wiki/Special:UploadWizard"><span>貢獻品物</span></a></li> </ul> </div> </div> <div id="p-help" class="vector-menu mw-portlet mw-portlet-help" > <div class="vector-menu-heading"> 凡例 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/%E8%AA%AA%E6%98%8E:%E5%87%A1%E4%BE%8B" title="解疑惑、點明燈、掛病號"><span>凡例</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E6%9C%83%E9%A4%A8"><span>會館</span></a></li><li id="n-allpages" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E5%85%A8%E5%85%B8"><span>全典</span></a></li><li id="n-contact" class="mw-list-item"><a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E7%87%95%E8%AA%9E%E9%96%A3"><span>燕語</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8:%E5%8D%B7%E9%A6%96" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="維基大典" src="/static/images/mobile/copyright/wikipedia-wordmark-zh_classical.svg" style="width: 6.9375em; height: 1.4375em;"> <img class="mw-logo-tagline" alt="" src="/static/images/mobile/copyright/wikipedia-tagline-zh_classical.svg" width="109" height="13" style="width: 6.8125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/%E7%89%B9%E6%AE%8A:%E5%B0%8B" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="尋於維基大典[f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>尋</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="尋於維基大典" aria-label="尋於維基大典" autocapitalize="sentences" title="尋於維基大典[f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="特殊:尋"> </div> <button class="cdx-button cdx-search-input__end-button">尋</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="家私"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="外觀"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="更改頁面的字體大小、寬度和顏色的外觀" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="外觀" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">外觀</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_zh-classical.wikipedia.org&amp;uselang=lzh" class=""><span>捐助</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%E7%89%B9%E6%AE%8A:%E5%A2%9E%E7%B0%BF&amp;returnto=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="勸君增簿以登,然非必須之舉" class=""><span>增簿</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%E7%89%B9%E6%AE%8A:%E7%99%BB%E7%B0%BF&amp;returnto=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="設書齋、錄功績、廣放哨[o]" accesskey="o" class=""><span>籍名</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="更多選項" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="家私" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">家私</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="使用者選單" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_zh-classical.wikipedia.org&amp;uselang=lzh"><span>捐助</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E6%AE%8A:%E5%A2%9E%E7%B0%BF&amp;returnto=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="勸君增簿以登,然非必須之舉"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>增簿</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E6%AE%8A:%E7%99%BB%E7%B0%BF&amp;returnto=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="設書齋、錄功績、廣放哨[o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>籍名</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> 用於已登出編輯者的頁面 <a href="/wiki/%E8%AA%AA%E6%98%8E:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80" aria-label="了解更多有關編輯"><span>了解更多</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E5%90%BE%E7%B8%BE" title="由此 IP 位址編輯的清單[y]" accesskey="y"><span>績</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E5%90%BE%E6%9B%B8%E6%88%BF" title="此IP所修之議[n]" accesskey="n"><span>議</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="站台"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="目次" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">目次</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">移至側邊欄</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">隱藏</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">序言</div> </a> </li> <li id="toc-定義" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#定義"> <div class="vector-toc-text"> <span class="vector-toc-numb">一</span> <span>定義</span> </div> </a> <button aria-controls="toc-定義-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>切換 定義 子章節</span> </button> <ul id="toc-定義-sublist" class="vector-toc-list"> <li id="toc-單位元" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#單位元"> <div class="vector-toc-text"> <span class="vector-toc-numb">一.一</span> <span>單位元</span> </div> </a> <ul id="toc-單位元-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-結合律" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#結合律"> <div class="vector-toc-text"> <span class="vector-toc-numb">一.二</span> <span>結合律</span> </div> </a> <ul id="toc-結合律-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-交換律" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#交換律"> <div class="vector-toc-text"> <span class="vector-toc-numb">一.三</span> <span>交換律</span> </div> </a> <ul id="toc-交換律-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-分配律" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#分配律"> <div class="vector-toc-text"> <span class="vector-toc-numb">一.四</span> <span>分配律</span> </div> </a> <ul id="toc-分配律-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-注" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#注"> <div class="vector-toc-text"> <span class="vector-toc-numb">二</span> <span>注</span> </div> </a> <ul id="toc-注-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="目次" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="切換目次" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">切換目次</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">二元運算</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="前往別種語言的條目。有 六四 種語言可用" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-64" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">六四 種語言</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%B9%D9%85%D9%84%D9%8A%D8%A9_%D8%AB%D9%86%D8%A7%D8%A6%D9%8A%D8%A9" title="عملية ثنائية – 阿拉伯文" lang="ar" hreflang="ar" data-title="عملية ثنائية" data-language-autonym="العربية" data-language-local-name="阿拉伯文" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/Operaci%C3%B3n_binaria" title="Operación binaria – 阿斯圖里亞文" lang="ast" hreflang="ast" data-title="Operación binaria" data-language-autonym="Asturianu" data-language-local-name="阿斯圖里亞文" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/%D0%91%D1%96%D0%BD%D0%B0%D1%80%D0%BD%D0%B0%D1%8F_%D0%B0%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D1%8B%D1%8F" title="Бінарная аперацыя – 白俄羅斯文" lang="be" hreflang="be" data-title="Бінарная аперацыя" data-language-autonym="Беларуская" data-language-local-name="白俄羅斯文" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/%D0%91%D0%B8%D0%BD%D0%B0%D1%80%D0%BD%D0%B0_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F" title="Бинарна операция – 保加利亞文" lang="bg" hreflang="bg" data-title="Бинарна операция" data-language-autonym="Български" data-language-local-name="保加利亞文" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%85%E0%A6%AA%E0%A6%BE%E0%A6%B0%E0%A7%87%E0%A6%B6%E0%A6%A8_(%E0%A6%97%E0%A6%A3%E0%A6%BF%E0%A6%A4)" title="অপারেশন (গণিত) – 孟加拉文" lang="bn" hreflang="bn" data-title="অপারেশন (গণিত)" data-language-autonym="বাংলা" data-language-local-name="孟加拉文" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Binarna_operacija" title="Binarna operacija – 波士尼亞文" lang="bs" hreflang="bs" data-title="Binarna operacija" data-language-autonym="Bosanski" data-language-local-name="波士尼亞文" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Operaci%C3%B3_bin%C3%A0ria" title="Operació binària – 加泰蘭文" lang="ca" hreflang="ca" data-title="Operació binària" data-language-autonym="Català" data-language-local-name="加泰蘭文" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%DA%A9%D8%B1%D8%AF%D8%A7%D8%B1_(%D8%A8%DB%8C%D8%B1%DA%A9%D8%A7%D8%B1%DB%8C)" title="کردار (بیرکاری) – 中庫德文" lang="ckb" hreflang="ckb" data-title="کردار (بیرکاری)" data-language-autonym="کوردی" data-language-local-name="中庫德文" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Bin%C3%A1rn%C3%AD_operace" title="Binární operace – 捷克文" lang="cs" hreflang="cs" data-title="Binární operace" data-language-autonym="Čeština" data-language-local-name="捷克文" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-cv mw-list-item"><a href="https://cv.wikipedia.org/wiki/%D0%91%D0%B8%D0%BD%D0%B0%D1%80%D0%BB%C4%83_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8" title="Бинарлă операци – 楚瓦什文" lang="cv" hreflang="cv" data-title="Бинарлă операци" data-language-autonym="Чӑвашла" data-language-local-name="楚瓦什文" class="interlanguage-link-target"><span>Чӑвашла</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Bin%C3%A6r_operator" title="Binær operator – 丹麥文" lang="da" hreflang="da" data-title="Binær operator" data-language-autonym="Dansk" data-language-local-name="丹麥文" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Zweistellige_Verkn%C3%BCpfung" title="Zweistellige Verknüpfung – 德文" lang="de" hreflang="de" data-title="Zweistellige Verknüpfung" data-language-autonym="Deutsch" data-language-local-name="德文" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/%CE%94%CF%85%CE%B1%CE%B4%CE%B9%CE%BA%CE%AE_%CF%80%CF%81%CE%AC%CE%BE%CE%B7" title="Δυαδική πράξη – 希臘文" lang="el" hreflang="el" data-title="Δυαδική πράξη" data-language-autonym="Ελληνικά" data-language-local-name="希臘文" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Binary_operation" title="Binary operation – 英文" lang="en" hreflang="en" data-title="Binary operation" data-language-autonym="English" data-language-local-name="英文" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Duvalenta_operacio" title="Duvalenta operacio – 世界文" lang="eo" hreflang="eo" data-title="Duvalenta operacio" data-language-autonym="Esperanto" data-language-local-name="世界文" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Operaci%C3%B3n_binaria" title="Operación binaria – 西班牙文" lang="es" hreflang="es" data-title="Operación binaria" data-language-autonym="Español" data-language-local-name="西班牙文" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Binaarne_tehe" title="Binaarne tehe – 愛沙尼亞文" lang="et" hreflang="et" data-title="Binaarne tehe" data-language-autonym="Eesti" data-language-local-name="愛沙尼亞文" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Eragiketa_bitar" title="Eragiketa bitar – 巴斯克文" lang="eu" hreflang="eu" data-title="Eragiketa bitar" data-language-autonym="Euskara" data-language-local-name="巴斯克文" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%B9%D9%85%D9%84_%D8%AF%D9%88%D8%AA%D8%A7%DB%8C%DB%8C" title="عمل دوتایی – 波斯文" lang="fa" hreflang="fa" data-title="عمل دوتایی" data-language-autonym="فارسی" data-language-local-name="波斯文" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Bin%C3%A4%C3%A4rioperaatio" title="Binäärioperaatio – 芬蘭文" lang="fi" hreflang="fi" data-title="Binäärioperaatio" data-language-autonym="Suomi" data-language-local-name="芬蘭文" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Op%C3%A9ration_binaire" title="Opération binaire – 法文" lang="fr" hreflang="fr" data-title="Opération binaire" data-language-autonym="Français" data-language-local-name="法文" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gd mw-list-item"><a href="https://gd.wikipedia.org/wiki/Obrachadh_c%C3%A0raideach" title="Obrachadh càraideach – 蘇格蘭蓋爾文" lang="gd" hreflang="gd" data-title="Obrachadh càraideach" data-language-autonym="Gàidhlig" data-language-local-name="蘇格蘭蓋爾文" class="interlanguage-link-target"><span>Gàidhlig</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Operaci%C3%B3n_binaria" title="Operación binaria – 加利西亞文" lang="gl" hreflang="gl" data-title="Operación binaria" data-language-autonym="Galego" data-language-local-name="加利西亞文" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%A4%D7%A2%D7%95%D7%9C%D7%94_%D7%91%D7%99%D7%A0%D7%90%D7%A8%D7%99%D7%AA" title="פעולה בינארית – 希伯來文" lang="he" hreflang="he" data-title="פעולה בינארית" data-language-autonym="עברית" data-language-local-name="希伯來文" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/Binarna_operacija" title="Binarna operacija – 克羅埃西亞文" lang="hr" hreflang="hr" data-title="Binarna operacija" data-language-autonym="Hrvatski" data-language-local-name="克羅埃西亞文" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-ia mw-list-item"><a href="https://ia.wikipedia.org/wiki/Operation_binari" title="Operation binari – 國際文" lang="ia" hreflang="ia" data-title="Operation binari" data-language-autonym="Interlingua" data-language-local-name="國際文" class="interlanguage-link-target"><span>Interlingua</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Operasi_biner" title="Operasi biner – 印尼文" lang="id" hreflang="id" data-title="Operasi biner" data-language-autonym="Bahasa Indonesia" data-language-local-name="印尼文" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/A%C3%B0ger%C3%B0_(st%C3%A6r%C3%B0fr%C3%A6%C3%B0i)" title="Aðgerð (stærðfræði) – 冰島文" lang="is" hreflang="is" data-title="Aðgerð (stærðfræði)" data-language-autonym="Íslenska" data-language-local-name="冰島文" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Operazione_binaria" title="Operazione binaria – 義大利文" lang="it" hreflang="it" data-title="Operazione binaria" data-language-autonym="Italiano" data-language-local-name="義大利文" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E4%BA%8C%E9%A0%85%E6%BC%94%E7%AE%97" title="二項演算 – 日文" lang="ja" hreflang="ja" data-title="二項演算" data-language-autonym="日本語" data-language-local-name="日文" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-ko badge-Q70893996 mw-list-item" title=""><a href="https://ko.wikipedia.org/wiki/%EC%9D%B4%ED%95%AD_%EC%97%B0%EC%82%B0" title="이항 연산 – 韓文" lang="ko" hreflang="ko" data-title="이항 연산" data-language-autonym="한국어" data-language-local-name="韓文" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ku mw-list-item"><a href="https://ku.wikipedia.org/wiki/Kiryar_(matemat%C3%AEk)" title="Kiryar (matematîk) – 庫德文" lang="ku" hreflang="ku" data-title="Kiryar (matematîk)" data-language-autonym="Kurdî" data-language-local-name="庫德文" class="interlanguage-link-target"><span>Kurdî</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/Bin%C4%81ra_oper%C4%81cija" title="Bināra operācija – 拉脫維亞文" lang="lv" hreflang="lv" data-title="Bināra operācija" data-language-autonym="Latviešu" data-language-local-name="拉脫維亞文" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-min mw-list-item"><a href="https://min.wikipedia.org/wiki/Operasi_biner" title="Operasi biner – 米南卡堡文" lang="min" hreflang="min" data-title="Operasi biner" data-language-autonym="Minangkabau" data-language-local-name="米南卡堡文" class="interlanguage-link-target"><span>Minangkabau</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%A6%E0%B5%8D%E0%B4%B5%E0%B4%AF%E0%B4%BE%E0%B4%99%E0%B5%8D%E0%B4%95%E0%B4%B8%E0%B4%82%E0%B4%95%E0%B5%8D%E0%B4%B0%E0%B4%BF%E0%B4%AF" title="ദ്വയാങ്കസംക്രിയ – 馬來亞拉姆文" lang="ml" hreflang="ml" data-title="ദ്വയാങ്കസംക്രിയ" data-language-autonym="മലയാളം" data-language-local-name="馬來亞拉姆文" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Operasi_dedua" title="Operasi dedua – 馬來文" lang="ms" hreflang="ms" data-title="Operasi dedua" data-language-autonym="Bahasa Melayu" data-language-local-name="馬來文" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Binaire_operatie" title="Binaire operatie – 荷蘭文" lang="nl" hreflang="nl" data-title="Binaire operatie" data-language-autonym="Nederlands" data-language-local-name="荷蘭文" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Bin%C3%A6r_operasjon" title="Binær operasjon – 耐諾斯克挪威文" lang="nn" hreflang="nn" data-title="Binær operasjon" data-language-autonym="Norsk nynorsk" data-language-local-name="耐諾斯克挪威文" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Bin%C3%A6r_operasjon" title="Binær operasjon – 巴克摩挪威文" lang="nb" hreflang="nb" data-title="Binær operasjon" data-language-autonym="Norsk bokmål" data-language-local-name="巴克摩挪威文" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-oc mw-list-item"><a href="https://oc.wikipedia.org/wiki/L%C3%A8i_de_composicion_int%C3%A8rna" title="Lèi de composicion intèrna – 奧克西坦文" lang="oc" hreflang="oc" data-title="Lèi de composicion intèrna" data-language-autonym="Occitan" data-language-local-name="奧克西坦文" class="interlanguage-link-target"><span>Occitan</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Dzia%C5%82anie_dwuargumentowe" title="Działanie dwuargumentowe – 波蘭文" lang="pl" hreflang="pl" data-title="Działanie dwuargumentowe" data-language-autonym="Polski" data-language-local-name="波蘭文" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pms mw-list-item"><a href="https://pms.wikipedia.org/wiki/Operassion" title="Operassion – 皮埃蒙特文" lang="pms" hreflang="pms" data-title="Operassion" data-language-autonym="Piemontèis" data-language-local-name="皮埃蒙特文" class="interlanguage-link-target"><span>Piemontèis</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Opera%C3%A7%C3%A3o_bin%C3%A1ria" title="Operação binária – 葡萄牙文" lang="pt" hreflang="pt" data-title="Operação binária" data-language-autonym="Português" data-language-local-name="葡萄牙文" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Opera%C8%9Bie_binar%C4%83" title="Operație binară – 羅馬尼亞文" lang="ro" hreflang="ro" data-title="Operație binară" data-language-autonym="Română" data-language-local-name="羅馬尼亞文" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%91%D0%B8%D0%BD%D0%B0%D1%80%D0%BD%D0%B0%D1%8F_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F" title="Бинарная операция – 俄文" lang="ru" hreflang="ru" data-title="Бинарная операция" data-language-autonym="Русский" data-language-local-name="俄文" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-scn mw-list-item"><a href="https://scn.wikipedia.org/wiki/Opirazzioni_binaria" title="Opirazzioni binaria – 西西里文" lang="scn" hreflang="scn" data-title="Opirazzioni binaria" data-language-autonym="Sicilianu" data-language-local-name="西西里文" class="interlanguage-link-target"><span>Sicilianu</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Binarna_operacija" title="Binarna operacija – 塞爾維亞克羅埃西亞文" lang="sh" hreflang="sh" data-title="Binarna operacija" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="塞爾維亞克羅埃西亞文" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Binary_operation" title="Binary operation – Simple English" lang="en-simple" hreflang="en-simple" data-title="Binary operation" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/Bin%C3%A1rna_oper%C3%A1cia" title="Binárna operácia – 斯洛伐克文" lang="sk" hreflang="sk" data-title="Binárna operácia" data-language-autonym="Slovenčina" data-language-local-name="斯洛伐克文" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/Dvo%C4%8Dlena_operacija" title="Dvočlena operacija – 斯洛維尼亞文" lang="sl" hreflang="sl" data-title="Dvočlena operacija" data-language-autonym="Slovenščina" data-language-local-name="斯洛維尼亞文" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Veprimi_binar" title="Veprimi binar – 阿爾巴尼亞文" lang="sq" hreflang="sq" data-title="Veprimi binar" data-language-autonym="Shqip" data-language-local-name="阿爾巴尼亞文" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%91%D0%B8%D0%BD%D0%B0%D1%80%D0%BD%D0%B0_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%98%D0%B0" title="Бинарна операција – 塞爾維亞文" lang="sr" hreflang="sr" data-title="Бинарна операција" data-language-autonym="Српски / srpski" data-language-local-name="塞爾維亞文" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Bin%C3%A4r_operator" title="Binär operator – 瑞典文" lang="sv" hreflang="sv" data-title="Binär operator" data-language-autonym="Svenska" data-language-local-name="瑞典文" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%88%E0%AE%B0%E0%AF%81%E0%AE%B1%E0%AF%81%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%81%E0%AE%9A%E0%AF%8D_%E0%AE%9A%E0%AF%86%E0%AE%AF%E0%AE%B2%E0%AE%BF" title="ஈருறுப்புச் செயலி – 坦米爾文" lang="ta" hreflang="ta" data-title="ஈருறுப்புச் செயலி" data-language-autonym="தமிழ்" data-language-local-name="坦米爾文" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%94%E0%B8%B3%E0%B9%80%E0%B8%99%E0%B8%B4%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%A7%E0%B8%B4%E0%B8%A0%E0%B8%B2%E0%B8%84" title="การดำเนินการทวิภาค – 泰文" lang="th" hreflang="th" data-title="การดำเนินการทวิภาค" data-language-autonym="ไทย" data-language-local-name="泰文" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tl mw-list-item"><a href="https://tl.wikipedia.org/wiki/Operasyong_tambalan" title="Operasyong tambalan – 塔加路族文" lang="tl" hreflang="tl" data-title="Operasyong tambalan" data-language-autonym="Tagalog" data-language-local-name="塔加路族文" class="interlanguage-link-target"><span>Tagalog</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/%C4%B0kili_i%C5%9Flem" title="İkili işlem – 土耳其文" lang="tr" hreflang="tr" data-title="İkili işlem" data-language-autonym="Türkçe" data-language-local-name="土耳其文" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%91%D1%96%D0%BD%D0%B0%D1%80%D0%BD%D0%B0_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D1%96%D1%8F" title="Бінарна операція – 烏克蘭文" lang="uk" hreflang="uk" data-title="Бінарна операція" data-language-autonym="Українська" data-language-local-name="烏克蘭文" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Ph%C3%A9p_to%C3%A1n_hai_ng%C3%B4i" title="Phép toán hai ngôi – 越南文" lang="vi" hreflang="vi" data-title="Phép toán hai ngôi" data-language-autonym="Tiếng Việt" data-language-local-name="越南文" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/%E4%BA%8C%E5%85%83%E8%BF%90%E7%AE%97" title="二元运算 – 吳語" lang="wuu" hreflang="wuu" data-title="二元运算" data-language-autonym="吴语" data-language-local-name="吳語" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-xal mw-list-item"><a href="https://xal.wikipedia.org/wiki/%D0%91%D0%B8%D0%BD%D0%B0%D1%80%D0%BD_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F" title="Бинарн операция – 卡爾梅克文" lang="xal" hreflang="xal" data-title="Бинарн операция" data-language-autonym="Хальмг" data-language-local-name="卡爾梅克文" class="interlanguage-link-target"><span>Хальмг</span></a></li><li class="interlanguage-link interwiki-yi mw-list-item"><a href="https://yi.wikipedia.org/wiki/%D7%91%D7%99%D7%A0%D7%90%D7%A8%D7%99%D7%A9%D7%A2_%D7%90%D7%A4%D7%A2%D7%A8%D7%90%D7%A6%D7%99%D7%A2" title="בינארישע אפעראציע – 意第緒文" lang="yi" hreflang="yi" data-title="בינארישע אפעראציע" data-language-autonym="ייִדיש" data-language-local-name="意第緒文" class="interlanguage-link-target"><span>ייִדיש</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/%E4%BA%8C%E5%85%83%E8%BF%90%E7%AE%97" title="二元运算 – 中文" lang="zh" hreflang="zh" data-title="二元运算" data-language-autonym="中文" data-language-local-name="中文" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="二元運算 – 粵語" lang="yue" hreflang="yue" data-title="二元運算" data-language-autonym="粵語" data-language-local-name="粵語" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q164307#sitelinks-wikipedia" title="修跨語鏈" class="wbc-editpage">纂鏈</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="名集"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="閱文稿[c]" accesskey="c"><span>文</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%E8%A8%8E%E8%AB%96:%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;redlink=1" rel="discussion" class="new" title="求異見、辯是非、妥紛擾(查無此頁)[t]" accesskey="t"><span>議</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="變更語言變體" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">文言</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="覽"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97"><span>閱</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit" title="編輯此頁面的原始碼[e]" accesskey="e"><span>纂</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=history" title="誌流衍、備謄本、修惡盜[h]" accesskey="h"><span>覽史</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="頁面工具"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="多寶" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">多寶</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">工具</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">移至側邊欄</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">隱藏</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="更多選項" > <div class="vector-menu-heading"> 操作 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97"><span>閱</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit" title="編輯此頁面的原始碼[e]" accesskey="e"><span>纂</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=history"><span>覽史</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> 一般 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E5%8F%96%E4%BD%90/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" title="何美餚,佐此料[j]" accesskey="j"><span>取佐</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E6%8F%B4%E5%BC%95/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97" rel="nofollow" title="足義友,借鏡照[k]" accesskey="k"><span>援引</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=lzh" title="貢彩件、獻樂謠[u]" accesskey="u"><span>進獻</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E7%89%B9%E6%9F%A5" title="展盡奇頁[q]" accesskey="q"><span>特查</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=info" title="更多關於此頁面的資訊"><span>文訊</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E6%AE%8A:URL%E7%B8%AE%E7%9F%AD%E7%A8%8B%E5%BC%8F&amp;url=https%3A%2F%2Fzh-classical.wikipedia.org%2Fwiki%2F%25E4%25BA%258C%25E5%2585%2583%25E9%2581%258B%25E7%25AE%2597"><span>取得短網址</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E6%AE%8A:QrCode&amp;url=https%3A%2F%2Fzh-classical.wikipedia.org%2Fwiki%2F%25E4%25BA%258C%25E5%2585%2583%25E9%2581%258B%25E7%25AE%2597"><span>下載QR碼</span></a></li> </ul> </div> </div> <div id="p-electronpdfservice-sidebar-portlet-heading" class="vector-menu mw-portlet mw-portlet-electronpdfservice-sidebar-portlet-heading" > <div class="vector-menu-heading"> 付梓 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="electron-print_pdf" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E6%AE%8A:DownloadAsPdf&amp;page=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=show-download-screen"><span>存為PDF檔</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="備印墨,整版貌[p]" accesskey="p"><span>付梓</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> 諸策 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Binary_operations" hreflang="en"><span>維基共享</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q164307" title="連結至已連接的資料儲存庫項目[g]" accesskey="g"><span>維基數據項</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="頁面工具"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="外觀"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">外觀</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">移至側邊欄</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">隱藏</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> <div id="mw-indicator-indicator-fr-review-status" class="mw-indicator"><indicator name="fr-review-status" class="mw-fr-review-status-indicator" id="mw-fr-revision-toggle"><span class="cdx-fr-css-icon-review--status--unchecked"></span><b><a href="/wiki/%E8%AA%AA%E6%98%8E:%E6%A0%A1%E5%B0%8D" title="說明:校對">今本</a></b>(此為底本,未經審校)</indicator></div> </div> <div id="siteSub" class="noprint">文出維基大典</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><span class="mw-redirectedfrom">(渡自<a href="/w/index.php?title=%E4%BA%A4%E6%8F%9B%E5%BE%8B&amp;redirect=no" class="mw-redirect" title="交換律">交換律</a>)</span></div></div> <div id="mw-content-text" class="mw-body-content"><div id="mw-fr-revision-details" class="mw-fr-revision-details-dialog" style="display:none;"><div tabindex="0"></div><div class="cdx-dialog cdx-dialog--horizontal-actions"><header class="cdx-dialog__header cdx-dialog__header--default"><div class="cdx-dialog__header__title-group"><h2 class="cdx-dialog__header__title">頁面版本狀態</h2><p class="cdx-dialog__header__subtitle">該頁面尚未檢查</p></div><button class="cdx-button cdx-button--action-default cdx-button--weight-quiet&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;cdx-button--size-medium cdx-button--icon-only cdx-dialog__header__close-button" aria-label="關閉" onclick="document.getElementById(&quot;mw-fr-revision-details&quot;).style.display = &quot;none&quot;;" type="submit"><span class="cdx-icon cdx-icon--medium&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;cdx-fr-css-icon--close"></span></button></header><div class="cdx-dialog__body">此為底本,未經<a href="/wiki/%E8%AA%AA%E6%98%8E:%E6%A0%A1%E5%B0%8D" title="說明:校對">審校</a>。</div></div><div tabindex="0"></div></div><div class="mw-content-ltr mw-parser-output" lang="lzh" dir="ltr"><div style="border:1px solid #A3B1BF; padding:0.5em 2em; width:60%; float:left;"> 註︰蓋當今數學之事,誠難僅以文述,而無符號,故凡數學之文,咸有漢字、拉丁字相易之事,以合文言、數學,則無論文理之人,皆可明之也。</div> <div style="clear:left;"></div> <p><b>二元運算</b>者,四則之抽象也。 </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="定義"><span id=".E5.AE.9A.E7.BE.A9"></span>定義</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;section=1" title="所纂章名:定義"><span>纂</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><b>二元運算</b>者(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \circ }"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mo>&#x2218;<!-- ∘ --></mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \circ }</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/99add39d2b681e2de7ff62422c32704a05c7ec31" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: 0.125ex; margin-bottom: -0.297ex; width:1.162ex; height:1.509ex;" alt="{\displaystyle \circ }"></span>」),集與已之直積<a href="/wiki/%E6%98%A0%E5%B0%84" title="映射">映射</a>己也(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \circ }"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mo>&#x2218;<!-- ∘ --></mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \circ }</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/99add39d2b681e2de7ff62422c32704a05c7ec31" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: 0.125ex; margin-bottom: -0.297ex; width:1.162ex; height:1.509ex;" alt="{\displaystyle \circ }"></span>&#160;: <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle A\times A\to A}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>A</mi> <mo>&#x00D7;<!-- × --></mo> <mi>A</mi> <mo stretchy="false">&#x2192;<!-- → --></mo> <mi>A</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle A\times A\to A}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/c43e04047205125debea8e49d9d98d14cef9f5ef" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:11.684ex; height:2.176ex;" alt="{\displaystyle A\times A\to A}"></span>」)。加減乘除,皆二元運算也。甲(a)運算乙(b)而得丙,記曰「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\circ b=c}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>a</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>b</mi> <mo>=</mo> <mi>c</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle a\circ b=c}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/515d82dfb34c61ca424373fc3973632e82e0cd3d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:8.527ex; height:2.176ex;" alt="{\displaystyle a\circ b=c}"></span>」,或曰<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \circ (a,b)=c}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mo>&#x2218;<!-- ∘ --></mo> <mo stretchy="false">(</mo> <mi>a</mi> <mo>,</mo> <mi>b</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mi>c</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \circ (a,b)=c}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a975dffe032082942330ba1dbe23f04f6da4c7a4" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:10.338ex; height:2.843ex;" alt="{\displaystyle \circ (a,b)=c}"></span>,則曰甲為<b>被運算數</b>(古稱<b>實數</b>或<b>實</b>),乙為<b>運算數</b>(古稱<b>法數</b>或<b>法</b>)。<b>廣群</b>者,有二元運算之<a href="/w/index.php?title=%E4%BB%A3%E6%95%B8%E7%B5%90%E6%A7%8B&amp;action=edit&amp;redlink=1" class="new" title="代數結構(查無此頁)">代數結構</a>也。<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">&#91;</span>一<span class="cite-bracket">&#93;</span></a></sup> </p><p>若無固定名稱,多以乘法或加法稱之。且以乘法語之。 </p> <div class="mw-heading mw-heading3"><h3 id="單位元"><span id=".E5.96.AE.E4.BD.8D.E5.85.83"></span>單位元</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;section=2" title="所纂章名:單位元"><span>纂</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>有元素(「e」),凡乘物或乘以物,皆得斯物,曰<b>單位元</b>(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e\circ x=x\circ e=x}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>e</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>x</mi> <mo>=</mo> <mi>x</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>e</mi> <mo>=</mo> <mi>x</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle e\circ x=x\circ e=x}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/deceb5a24c8bd26dfe75f97ce8395803122894e3" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:16.742ex; height:1.676ex;" alt="{\displaystyle e\circ x=x\circ e=x}"></span>」)。加法單位元謂<a href="/wiki/%E9%9B%B6" class="mw-redirect" title="零">零</a>;乘法單位元曰<a href="/wiki/%E4%B8%80" title="一">一</a>。 </p> <div class="mw-heading mw-heading3"><h3 id="結合律"><span id=".E7.B5.90.E5.90.88.E5.BE.8B"></span>結合律</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;section=3" title="所纂章名:結合律"><span>纂</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>若甲乙之積乘丙,同乎甲乘乙丙之積(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\circ (y\circ z)=(x\circ y)\circ z}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>x</mi> <mo>&#x2218;<!-- ∘ --></mo> <mo stretchy="false">(</mo> <mi>y</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>z</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mo stretchy="false">(</mo> <mi>x</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>y</mi> <mo stretchy="false">)</mo> <mo>&#x2218;<!-- ∘ --></mo> <mi>z</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle x\circ (y\circ z)=(x\circ y)\circ z}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/40ddaafc638b6d08cd7df41f480db7ffbc5f7561" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:22.643ex; height:2.843ex;" alt="{\displaystyle x\circ (y\circ z)=(x\circ y)\circ z}"></span>」),則曰二元運算合<b>結合律</b>也。 </p><p>其廣群曰<b>半群</b>。若有單位元,則曰<b>半幺群</b>也。 </p> <div class="mw-heading mw-heading3"><h3 id="交換律"><span id=".E4.BA.A4.E6.8F.9B.E5.BE.8B"></span>交換律</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;section=4" title="所纂章名:交換律"><span>纂</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>若甲乘乙必同乎乙乘甲(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\circ y=y\circ x}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>x</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>y</mi> <mo>=</mo> <mi>y</mi> <mo>&#x2218;<!-- ∘ --></mo> <mi>x</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle x\circ y=y\circ x}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/2578d2ab8b7ab36781793b5484c664d7f283e93c" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:12.458ex; height:2.009ex;" alt="{\displaystyle x\circ y=y\circ x}"></span>」),則曰二元運算合<b>交換律</b>也。 </p> <div class="mw-heading mw-heading3"><h3 id="分配律"><span id=".E5.88.86.E9.85.8D.E5.BE.8B"></span>分配律</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;section=5" title="所纂章名:分配律"><span>纂</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>若加、乘皆二元運算,且有 </p> <ul><li>甲乘乙丙之和,同乎甲乙之積加甲丙之積,曰<b>左分配律</b>。(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\times (y+z)=x\times y+x\times z}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>x</mi> <mo>&#x00D7;<!-- × --></mo> <mo stretchy="false">(</mo> <mi>y</mi> <mo>+</mo> <mi>z</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mi>x</mi> <mo>&#x00D7;<!-- × --></mo> <mi>y</mi> <mo>+</mo> <mi>x</mi> <mo>&#x00D7;<!-- × --></mo> <mi>z</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle x\times (y+z)=x\times y+x\times z}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/36d448030d1043b266db87244d3e29604ee3134c" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:27.586ex; height:2.843ex;" alt="{\displaystyle x\times (y+z)=x\times y+x\times z}"></span>」<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">&#91;</span>二<span class="cite-bracket">&#93;</span></a></sup>)</li> <li>甲乙之和乘丙,同乎甲丙之積加乙丙之積,曰<b>右分配律</b>。(「<span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (x+y)\times z=x\times z+y\times z}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mo stretchy="false">(</mo> <mi>x</mi> <mo>+</mo> <mi>y</mi> <mo stretchy="false">)</mo> <mo>&#x00D7;<!-- × --></mo> <mi>z</mi> <mo>=</mo> <mi>x</mi> <mo>&#x00D7;<!-- × --></mo> <mi>z</mi> <mo>+</mo> <mi>y</mi> <mo>&#x00D7;<!-- × --></mo> <mi>z</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle (x+y)\times z=x\times z+y\times z}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/a703281c546d882609f0d1c7bc82d8a0844ce28f" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:27.344ex; height:2.843ex;" alt="{\displaystyle (x+y)\times z=x\times z+y\times z}"></span>」)</li></ul> <p>加乘二法合左右者,則謂二法合<b>分配律</b>也。 </p> <div class="mw-heading mw-heading2"><h2 id="注"><span id=".E6.B3.A8"></span>注</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;action=edit&amp;section=6" title="所纂章名:注"><span>纂</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">另有代數結構曰<a href="/w/index.php?title=%E5%BB%A3%E7%BE%A4&amp;action=edit&amp;redlink=1" class="new" title="廣群(查無此頁)">廣群</a>。</span> </li> <li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text">依習,先乘除後加減。</span> </li> </ol></div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">取自「<a dir="ltr" href="https://zh-classical.wikipedia.org/wiki/二元運算">https://zh-classical.wikipedia.org/wiki/二元運算</a>」</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/%E7%89%B9%E6%AE%8A:%E9%A1%9E" title="特殊:類">一類</a>:<ul><li><a href="/wiki/%E5%88%86%E9%A1%9E:%E4%BB%A3%E6%95%B8" title="分類:代數">代數</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-copyright">凡我維基之文,悉為<a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/">共享創意授權</a>。翻印增刪,皆須引據,並同道為之。然條款繁多,不一而足。請閱<a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">全文</a>,以得其詳。<br /></li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">隱私通例</a></li> <li id="footer-places-about"><a href="/wiki/%E6%96%87%E8%A8%80%E7%B6%AD%E5%9F%BA%E5%A4%A7%E5%85%B8">大典自序</a></li> <li id="footer-places-disclaimers"><a href="https://en.wikipedia.org/wiki/Wikipedia:General_disclaimer">免責告示</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">行為準則</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">司空津逮</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/zh-classical.wikipedia.org">彙統</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">鑑識聲明</a></li> <li id="footer-places-mobileview"><a href="//zh-classical.m.wikipedia.org/w/index.php?title=%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">掌中書卷</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-7fc47fc68d-kv6zf","wgBackendResponseTime":408,"wgPageParseReport":{"limitreport":{"cputime":"0.024","walltime":"0.166","ppvisitednodes":{"value":104,"limit":1000000},"postexpandincludesize":{"value":312,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":2,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":1030,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 3.080 1 模板:當代數學","100.00% 3.080 1 -total"]},"cachereport":{"origin":"mw-web.codfw.main-7fc47fc68d-kv6zf","timestamp":"20241128183347","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"\u4e8c\u5143\u904b\u7b97","url":"https:\/\/zh-classical.wikipedia.org\/wiki\/%E4%BA%8C%E5%85%83%E9%81%8B%E7%AE%97","sameAs":"http:\/\/www.wikidata.org\/entity\/Q164307","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q164307","author":{"@type":"Organization","name":"\u7dad\u57fa\u5a92\u9ad4\u5c08\u6848\u8ca2\u737b\u8005"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2007-10-29T01:17:27Z"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10