การเลือกเชิงตรรกศาสตร์ (logical disjunction) หรือที่มักเรียกว่า หรือ (or) คือตัวดำเนินการทางตรรกศาสตร์ที่ให้ผลลัพธ์เป็นจริง ถ้าตัวถูกดำเนินการบางตัว (หรือทั้งสองตัว) มีค่าเป็นจริง
สังเกตว่าในชีวิตประจำวัน เมื่อเราใช้คำว่า "หรือ" เราอาจหมายความว่าอย่างใดอย่างหนึ่ง แต่ไม่ใช่ทั้งสองอย่าง (เช่น "คุณต้องการกาแฟหรือชา?") ในตรรกศาสตร์ ความหมายดังกล่าวถูกแทนด้วยการเลือกเฉพาะ หรือ "ออร์เฉพาะ" สำหรับกรณีของ "หรือ" นั้น เมื่อใช้อย่างเป็นทางการจะอนุญาตให้ทั้งสองส่วนของประโยคเป็นจริงได้ หลายครั้ง "หรือ" จึงมักถูกเรียกว่า "การเลือกรวม"
หมายเหตุ: ในการนิยาม "x + y" นั้นบูลได้ใช้เงื่อนไขเบื้องต้นในลักษณะเดียวกับคณิตศาสตร์ทั่วไป นั่นคือให้ x และ y นั้นไม่เกิดร่วมกัน อย่างไรก็ตาม ด้วยเหตุผลหลายๆ ประการ เจวอนส์และนักตรรกศาสตร์เกือบทุกคนในภายหลังได้เปลี่ยนให้นิยามของ "การบวกเชิงตรรกศาสตร์" อยู่ในรูปที่สองส่วนของประโยคเกิดพร้อมกันได้
สำหรับกรณีที่มีตัวแปรป้อนเข้าสองจำนวน A และ B, ตารางค่าความจริงของ "หรือ" เป็นดังนี้:
| F | F | F |
| F | T | T |
| T | F | T |
| T | T | T |
ในรูปทั่วไปแล้วประพจน์เลือกคือสูตรทางตรรกศาสตร์ที่สามารถมีสัญพจน์หนึ่งหรือหลายสัญพจน์ที่คั่นด้วย "หรือ" สัญพจน์เดี่ยวมักถือว่าเป็นประพจน์เลือกลดรูป
The statement "P or Q" is often written as
All the following are disjunctions:
A B
¬A B
A ¬B ¬C D ¬E
The equivalent notion in set theory is the set theoretic union.
Because or is associative, the order of the inputs does not matter: the same result will be obtained regardless of association.
The operator xor is also commutative and therefore the order of the operands is not important:
Дизюнкция | Disjunktion | Logical disjunction | Disyunción lógica | Disjunktsioon | Disjonction logique | או (לוגיקה) | Logika disjungsi | 論理和 | Logische disjunctie | Inklusiv disjunksjon | Alternatywa | Disjunção lógica | Disjunkcia (logika) | Logisk disjunktion | Диз'юнкція (логічна)
This article is licensed under the GNU Free Documentation License.
It uses material from the
"การเลือกเชิงตรรกศาสตร์".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world