सामग्री पर जाएँ

संचालन क्रम

मुक्त ज्ञानकोश विकिपीडिया से
संचालन का क्रम

गणित और कंप्यूटर प्रोग्रामिंग में, संचालन का क्रम (अंग्रेज़ी: Order of operations) उन नियमों का एक समूह होता है जो यह निर्धारित करता है कि किसी गणितीय अभिव्यक्ति का मूल्य निकालने के लिए किस क्रम में संचालनों (क्रियाओं) को सम्पन्न किया जाना चाहिए।

इन नियमों को संचालनों की एक श्रेणीक्रम प्रणाली द्वारा औपचारिक रूप प्रदान किया गया है। किसी संचालन की श्रेणी को उसकी प्राथमिकता कहा जाता है, और उच्च प्राथमिकता वाला संचालन, निम्न प्राथमिकता वाले संचालन से पहले किया जाता है। सामान्यतः, गणक (कैलकुलेटर) समान प्राथमिकता वाले संचालनों को बाएँ से दाएँ क्रम में निष्पादित करते हैं, किन्तु कुछ प्रोग्रामिंग भाषाएँ एवं गणक भिन्न-भिन्न परंपराओं का अनुसरण करते हैं।[1]

उदाहरण के लिए, गुणा को योग से उच्च प्राथमिकता प्रदान की जाती है, और आधुनिक बीजगणितीय संकेतन के प्रारंभ से ही यह परंपरा प्रचलित रही है। अतः, अभिव्यक्ति 1 + 2 × 3 में पहले गुणा की क्रिया की जाती है, जिससे इसका मान होता है 1 + (2 × 3) = 7, न कि (1 + 2) × 3 = 9।

सोलहवीं तथा सत्रहवीं शताब्दियों में जब घातांक का प्रयोग प्रारंभ हुआ, तब उसे योग और गुणा दोनों से उच्च प्राथमिकता प्रदान की गई तथा उसे उसके आधार (आधार संख्या) के दाएँ ऊर्ध्वाधर रूप में लिखा गया।

अतः 3 + 5² = 28 तथा 3 × 5² = 75 होता है।

ये परंपराएँ संकेतन की अस्पष्टता से बचने के लिए बनाई गई हैं, जिससे गणितीय लेखन संक्षिप्त रहते हुए भी स्पष्ट बना रहे।

जब इन प्राथमिकता परंपराओं को अनदेखा करना आवश्यक हो, अथवा केवल उन्हें विशेष रूप से रेखांकित करना हो, तब कोष्ठकों ( ) का प्रयोग किया जाता है।

उदाहरणस्वरूप, (2 + 3) × 4 = 20 में योग की क्रिया को गुणा से पहले करने के लिए बाध्य किया गया है, जबकि (3 + 5)² = 64 में योग को घातांक से पहले किया गया है।

यदि किसी गणितीय अभिव्यक्ति में एकाधिक कोष्ठकों की आवश्यकता हो (जैसे कि अंतःस्थ कोष्ठकों के प्रयोग में), तो भ्रम से बचने के लिए अन्य प्रकार के कोष्ठकों का भी उपयोग किया जा सकता है, जैसे कि [2 × (3 + 4)] − 5 = 9।

ये नियम तभी सार्थक होते हैं जब सामान्य संकेतन (जिसे इन्फिक्स संकेतन कहा जाता है) का उपयोग किया जाता है। जब सभी संक्रियाओं के लिए कार्यात्मक या पोलिश संकेतन का उपयोग किया जाता है, तो संक्रियाओं का क्रम संकेतन से ही निकलता है।

पारंपरिक आदेश

[संपादित करें]

संचालन का क्रम, अर्थात वह क्रम जिसमें एक अभिव्यक्ति में संचालन आमतौर पर किया जाता है, पूरे गणित, विज्ञान, प्रौद्योगिकी और कई कंप्यूटर प्रोग्रामिंग भाषाओं में अपनाई गई परंपरा का परिणाम है। इसे संक्षेप में इस प्रकार प्रस्तुत किया गया हैः [2][3]

  1. कोष्ठक
  2. घातांक
  3. गुणा और विभाजन
  4. जोड़ और घटाव

इसका मतलब है कि एक अभिव्यक्ति का मूल्यांकन करने के लिए, पहले कोष्ठक के अंदर किसी भी उप-अभिव्यक्ति का मूल्यांकन किया जाता है, अगर एक से अधिक समूह हैं तो अंदर से बाहर काम करते हुए। कोष्ठक के अंदर हो या न हो, उपरोक्त सूची में जो ऑपरेशन अधिक है, उसे पहले लागू किया जाना चाहिए। समान वरीयता के संचालन का पारंपरिक रूप से बाएं से दाएं मूल्यांकन किया जाता है।

यदि प्रत्येक विभाजन को उसके व्युत्क्रमानुपाती (गुणात्मक प्रतिलोम) से गुणा करने के रूप में प्रतिस्थापित कर दिया जाए, तो गुणा की सामासिक तथा पारस्परिक विधियों के अनुसार प्रत्येक पद के घटकों को किसी भी क्रम में गुणा किया जा सकता है।

कभी-कभी गुणा और विभाजन को समान प्राथमिकता दी जाती है, अथवा कभी-कभी गुणा को विभाजन की तुलना में उच्च प्राथमिकता प्रदान की जाती है।

यदि प्रत्येक घटाव को उसके विपरीत पद (योगात्मक प्रतिलोम) को जोड़ने के रूप में प्रतिस्थापित कर दिया जाए, तो योग की सामासिक तथा पारस्परिक विधियों के अनुसार पदों को किसी भी क्रम में जोड़ा जा सकता है।

मूल चिन्ह (√) परंपरागत रूप से रैडिकेंड (जिस संख्या का वर्गमूल या अन्य मूल निकाला जाता है) के ऊपर एक रेखा (जिसे 'विनकुलम' कहा जाता है) द्वारा विस्तारित किया जाता है; यह रेखा कोष्ठकों की आवश्यकता को समाप्त करती है।

अन्य फलनों (फंक्शनों) में, इनपुट में अस्पष्टता से बचने के लिए प्रायः कोष्ठकों का प्रयोग किया जाता है।

यदि इनपुट कोई एकल संख्यात्मक चर या स्थिरांक हो, तो कोष्ठकों को छोड़ भी दिया जाता है; जैसे कि sinx=sin(x) तथा sinπ=sin(π)।

परंपरागत रूप से यह परंपरा एकघातकों पर भी लागू होती है; अतः sin3x=sin(3x), और यहाँ तक कि sinsinx भी मान्य है। परंतु sinx+y=sin(x)+y, क्योंकि x+y एक एकघातक नहीं है।

हालाँकि, यह परंपरा सर्वत्र स्वीकृत नहीं है, और कुछ लेखक स्पष्ट रूप से कोष्ठकों का प्रयोग करना पसंद करते हैं।

कुछ गणक (कैलकुलेटर) तथा संगणक भाषाएँ फलनों के इनपुट के चारों ओर कोष्ठकों की आवश्यकता रखती हैं, जबकि कुछ में यह अनिवार्य नहीं होता।

कोष्ठक और समूह के वैकल्पिक प्रतीकों का उपयोग संचालन के सामान्य क्रम को ओवरराइड करने या इच्छित क्रम को स्पष्ट बनाने के लिए किया जा सकता है। समूहीकृत प्रतीकों को एकल अभिव्यक्ति के रूप में माना जा सकता है।[2]

जोड़ से पहले गुणा

माता-पिता की उप-अभिव्यक्तियों का मूल्यांकन पहले किया जाता हैः

गुणा से पहले घातांक, घटाव से पहले गुणनः

जब कोई गणितीय अभिव्यक्ति ऊर्ध्वलेख (superscript) के रूप में लिखी जाती है, तब उसे उसके आधार के ऊपर स्थित होने के कारण उसी आधार के साथ समूहीकृत (सम्बद्ध) माना जाता है।

मूल प्रतीक का संचालन ओवरबार द्वारा निर्धारित किया जाता हैः

एक क्षैतिज भिन्नात्मक रेखा दो समूहीकृत उप-अभिव्यक्तियों का निर्माण करती है, एक ऊपर से दूसरे से विभाजित नीचेः

कोष्ठक को घोंसला बनाया जा सकता है, और इसका मूल्यांकन अंदर से बाहर की ओर किया जाना चाहिए। सुपाठ्यता के लिए, बाहरी कोष्ठक को आंतरिक कोष्ठक से बड़ा बनाया जा सकता है। वैकल्पिक रूप से, अन्य समूह चिह्न, जैसे घुंघराले कोष्ठक {} या वर्ग कोष्ठक [], कभी-कभी कोष्ठक (′) के साथ उपयोग किए जाते हैं। उदाहरण के लिए,

यह भी देखें

[संपादित करें]
  • सामान्य प्रचालक संकेतन (अधिक औपचारिक विवरण के लिए)
  • अति-क्रियाशीलता
  • प्राथमिकता का तार्किक connective#Order
  • प्रचालक सहयोगात्मकता
  • प्रचालक ओवरलोडिंग
  • सी और सी + + में प्रचालक वरीयता
  • पोलिश संकेतन
  • रिवर्स पोलिश संकेतन
  1. "Calculation operators and precedence: Excel". Microsoft Support. Microsoft. 2023. अभिगमन तिथि: 2023-09-17.
  2. 1 2 Bronstein, Ilja Nikolaevič; Semendjajew, Konstantin Adolfovič (1987) [1945]. "2.4.1.1. Definition arithmetischer Ausdrücke" [Definition of arithmetic expressions]. In Grosche, Günter; Ziegler, Viktor; Ziegler, Dorothea (eds.). Taschenbuch der Mathematik [Pocketbook of mathematics] (जर्मन भाषा में). Vol. 1. Translated by Ziegler, Viktor (23rd ed.). Thun, Switzerland: Harri Deutsch. pp. 115–120, 802. ISBN 3-87144-492-8. Regel 7: Ist F(A) Teilzeichenreihe eines arithmetischen Ausdrucks oder einer seiner Abkürzungen und F eine Funktionenkonstante und A eine Zahlenvariable oder Zahlenkonstante, so darf FA dafür geschrieben werden. [Darüber hinaus ist noch die Abkürzung Fn(A) für (F(A))n üblich. Dabei kann F sowohl Funktionenkonstante als auch Funktionenvariable sein.]
  3. Weisstein, Eric Wolfgang. "Precedence". MathWorld. अभिगमन तिथि: 2020-08-22.
  4. Ali Rahman, Ernna Sukinnah; Shahrill, Masitah; Abbas, Nor Arifahwati; Tan, Abby (2017). "Developing Students' Mathematical Skills Involving Order of Operations" (PDF). International Journal of Research in Education and Science. 3 (2): 373–382. डीओआई:10.21890/ijres.327896 (inactive 13 December 2024). p. 373: The PEMDAS is an acronym or mnemonic for the order of operations that stands for Parenthesis, Exponents, Multiplication, Division, Addition and Subtraction. This acronym is widely used in the United States of America. Meanwhile, in other countries such as United Kingdom and Canada, the acronyms used are BODMAS (Brackets, Order, Division, Multiplication, Addition and Subtraction) and BIDMAS (Brackets, Indices, Division, Multiplication, Addition and Subtraction).{{cite journal}}: CS1 maint: DOI inactive as of दिसम्बर 2024 (link)
  5. Ameis, Jerry A. (2011). "The Truth About PEDMAS". Mathematics Teaching in the Middle School. 16 (7): 414–420. डीओआई:10.5951/MTMS.16.7.0414. जेस्टोर 41183631.
  6. "Physical Review Style and Notation Guide" (PDF). American Physical Society. 2012. § IV.E.2.e. अभिगमन तिथि: 2012-08-05.
  7. Angel, Allen R.; Runde, Dennis C.; Gilligan, Lawrence; Semmler, Richard (2010). Elementary Algebra for College Students (8th ed.). Prentice Hall. Ch. 1, §9, Objective 3. ISBN 978-0-321-62093-4.
  8. (1963) Revised Report on the Algorithmic Language Algol 60. (Report). (CACM Vol. 6 pp. 1–17; The Computer Journal, Vol. 9, p. 349; Numerische Mathematik, Vol. 4, p. 420.)
  9. Ball, John A. (1978). Algorithms for RPN calculators (1st ed.). Cambridge, Mass: Wiley. p. 31. ISBN 0-471-03070-8.
  10. Cajori, Florian (1928). A History of Mathematical Notations. Vol. 1. La Salle, Illinois: Open Court. §242. "Order of operations in terms containing both ÷ and ×", साँचा:Pgs.
  11. "Calculation Priority Sequence". support.casio.com. Casio. अभिगमन तिथि: 2019-08-01.
  12. Cheng, Eugenia (2023). Is Math Real? How Simple Questions Lead Us to Mathematics' Deepest Truths. Basic Books. pp. 235–238. ISBN 978-1-541-60182-6.
  13. Chrystal, George (1904) [1886]. Algebra. Vol. 1 (5th ed.). "Division", Ch. 1 §§19–26, साँचा:Pgs.
    Chrystal's book was the canonical source in English about secondary school algebra of the turn of the 20th century, and plausibly the source for many later descriptions of the order of operations. However, while Chrystal's book initially establishes a rigid rule for evaluating expressions involving '÷' and '×' symbols, it later consistently gives implicit multiplication higher precedence than division when writing inline fractions, without ever explicitly discussing the discrepancy between formal rule and common practice.
  14. Davies, Peter (1979). "BODMAS Exposed". Mathematics in School. 8 (4): 27–28. जेस्टोर 30213488.
  15. Dupree, Kami M. (2016). "Questioning the Order of Operations". Mathematics Teaching in the Middle School. 22 (3): 152–159. डीओआई:10.5951/mathteacmiddscho.22.3.0152.
  16. Foster, Colin (2008). "Higher Priorities". Mathematics in School. 37 (3): 17. जेस्टोर 30216129.
  17. Ginsburg, David (2011-01-01). "Please Excuse My Dear Aunt Sally (PEMDAS)--Forever!". Education Week - Coach G's Teaching Tips. अभिगमन तिथि: 2023-09-17.
  18. Graham, Ronald L.; Knuth, Donald E.; Patashnik, Oren (1994). Concrete Mathematics (2nd ed.). Reading, Mass: Addison-Wesley. "A Note on Notation", साँचा:Pgs. ISBN 0-201-55802-5. MR 1397498. An expression of the form a/bc means the same as a/(bc). Moreover, log x/log y = (log x)/(log y) and 2n! = 2(n!).
  19. Fateman, R. J.; Caspi, E. (1999). "Parsing TEX into mathematics". International Symposium on Symbolic and Algebraic Computation, Vancouver, 28–31 July 1999. https://people.eecs.berkeley.edu/~fateman/papers/parsing_tex.pdf.
  20. Haelle, Tara (2013-03-12). "What Is the Answer to That Stupid Math Problem on Facebook? And why are people so riled up about it?". Slate. अभिगमन तिथि: 2023-09-17.
  21. Henderson, Harry (2009) [2003]. "Operator Precedence". Henderson's Encyclopedia of Computer Science and Technology (Rev. ed.). New York: Facts on File. p. 355. ISBN 978-0-8160-6382-6. अभिगमन तिथि: 2023-09-17.
  22. In the ISO 80000 standard, the division symbol '÷' is entirely disallowed in favor of a slash symbol:
    ISO 80000-2:2019, "Quantities and units – Part 2: Mathematics". International Standards Organization.
  23. Jensen, Patricia. "History and Background". 5010.mathed.usu.edu. Utah State University. मूल से से 7 अक्तूबर 2024 को पुरालेखित।. अभिगमन तिथि: 4 October 2024.
  24. Jones, Derek M. (2008) [2006]. "Developer beliefs about binary operator precedence". CVu. 18 (4): 14–21. अभिगमन तिथि: 2023-09-17.
  25. Knight, I. S. (1997). "Why BODMAS?". The Mathematical Gazette. 81 (492): 426–427. डीओआई:10.2307/3619621. जेस्टोर 3619621.
  26. Krtolica, Predrag V.; Stanimirović, Predrag S. (1999). "On some properties of reverse Polish Notation". Filomat. 13: 157–172. जेस्टोर 43998756.
  27. Lennes, N. J. (1917). "Discussions: Relating to the Order of Operations in Algebra". The American Mathematical Monthly. 24 (2): 93–95. डीओआई:10.2307/2972726. जेस्टोर 2972726.
  28. Lee, Jae Ki; Licwinko, Susan; Taylor-Buckner, Nicole (2013). "Exploring Mathematical Reasoning of the Order of Operations: Rearranging the Procedural Component PEMDAS". Journal of Mathematics Education at Teachers College. 4 (2): 73–78. डीओआई:10.7916/jmetc.v4i2.633. p. 73: [...] students frequently make calculation errors with expressions which have either multiplication and division or addition and subtraction next to each other. [...]
  29. "Rules of arithmetic" (PDF). Mathcentre.ac.uk. 2009. अभिगमन तिथि: 2019-08-02.
  30. "Le calcul qui divise : 6÷2(1+2)". Micmaths (Video) (फ़्रेंच भाषा में). 17 November 2020.
  31. "Formula Returns Unexpected Positive Value". Microsoft. 2005-08-15. मूल से से 2015-04-19 को पुरालेखित।. अभिगमन तिथि: 2012-03-05.
  32. Naddor, Josh (2020). Order of Operations: Please Excuse My Dear Aunt Sally as her rule is deceiving (MA thesis). University of Georgia. https://esploro.libs.uga.edu/esploro/outputs/9949365543302959.
  33. "Order of operations". Syllabus.bos.nsw.edu.au. मूल से (DOC) से 24 फ़रवरी 2021 को पुरालेखित।. अभिगमन तिथि: 2019-08-02.
  34. Oldham, Keith B.; Myland, Jan C.; Spanier, Jerome (2009) [1987]. An Atlas of Functions: with Equator, the Atlas Function Calculator (2nd ed.). Springer. डीओआई:10.1007/978-0-387-48807-3. ISBN 978-0-387-48806-6.
  35. Doctor Peterson, The Math Forum (November 22, 2000). "History of the Order of Operations". Ask Dr Math. मूल से से June 19, 2002 को पुरालेखित।. अभिगमन तिथि: 4 October 2024.
  36. Olver, Frank W. J.; Lozier, Daniel W.; Boisvert, Ronald F.; Clark, Charles W., eds. (2010). NIST Handbook of Mathematical Functions. National Institute of Standards and Technology. ISBN 978-0-521-19225-5. MR 2723248.
  37. Peterson, Dave (September–October 2019). The Math Doctors (blog). Order of Operations: "Why?"; "Why These Rules?"; "Subtle Distinctions"; "Fractions, Evaluating, and Simplifying"; "Implicit Multiplication?"; "Historical Caveats". Retrieved 2024-02-11.
    Peterson, Dave (August–September 2023). The Math Doctors (blog). Implied Multiplication: "Not as Bad as You Think"; "Is There a Standard?"; "You Can't Prove It". Retrieved 2024-02-11.
  38. "6. Expressions". Python documentation. अभिगमन तिथि: 2023-12-31.
  39. Ritchie, Dennis M. (1996). "The Development of the C Language". History of Programming Languages (2 ed.). ACM Press.
  40. "precedence - RDoc Documentation".
  41. Simons, Peter Murray। (2021)। "Łukasiewicz's Parenthesis-Free or Polish Notation". Stanford Encyclopedia of Philosophy Dept. of Philosophy, Stanford University।
  42. Strogatz, Steven (2019-08-02). "The Math Equation That Tried to Stump the Internet". The New York Times. अभिगमन तिथि: 2024-02-12. In this article, Strogatz describes the order of operations as taught in middle school. However, in a comment, he points out,
    "Several commenters appear to be using a different (and more sophisticated) convention than the elementary PEMDAS convention I described in the article. In this more sophisticated convention, which is often used in algebra, implicit multiplication (also known as multiplication by juxtaposition) is given higher priority than explicit multiplication or explicit division (in which one explicitly writes operators like × * / or ÷). Under this more sophisticated convention, the implicit multiplication in 2(2 + 2) is given higher priority than the explicit division implied by the use of ÷. That’s a very reasonable convention, and I agree that the answer is 1 if we are using this sophisticated convention.
    "But that convention is not universal. For example, the calculators built into Google and WolframAlpha use the less sophisticated convention that I described in the article; they make no distinction between implicit and explicit multiplication when they are asked to evaluate simple arithmetic expressions. [...]"
  43. Swokowski, Earl William (1978). Fundamentals of Algebra and Trigonometry (4 ed.). Boston: Prindle, Weber & Schmidt. ISBN 0-87150-252-6. p. 1: The language of algebra [...] may be used as shorthand, to abbreviate and simplify long or complicated statements.
  44. Taff, Jason (2017). "Rethinking the Order of Operations (or What Is the Matter with Dear Aunt Sally?)". The Mathematics Teacher. 111 (2): 126–132. डीओआई:10.5951/mathteacher.111.2.0126.
  45. Announcing the TI Programmable 88! (PDF). Texas Instruments. 1982. अभिगमन तिथि: 2017-08-03. Now, implied multiplication is recognized by the AOS and the square root, logarithmic, and trigonometric functions can be followed by their arguments as when working with pencil and paper. (NB. The TI-88 only existed as a prototype and was never released to the public.)
  46. "Implied Multiplication Versus Explicit Multiplication on TI Graphing Calculators". Texas Instruments. 2011. अभिगमन तिथि: 2015-08-24.
  47. Vanderbeek, Greg (2007). Order of Operations and RPN (Expository paper). Master of Arts in Teaching (MAT) Exam Expository Papers. Lincoln: University of Nebraska. Paper 46. अभिगमन तिथि: 2020-06-14.
  48. Wu, Hung-Hsi (2007) [2004]. ""Order of operations" and other oddities in school mathematics" (PDF). Dept. of Mathematics, University of California. अभिगमन तिथि: 2007-07-03.

आगे पढ़ें

[संपादित करें]

बाहरी लिंक

[संपादित करें]