<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" id="boolean" xml:lang="ca">

    <info>
        <link type="guide" xref="index#equation"/>
    
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Joan Duran</mal:name>
      <mal:email>jodufi@gmail.com</mal:email>
      <mal:years>2008</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Sergi Morraja</mal:name>
      <mal:email>sergi256@gmail.com</mal:email>
      <mal:years>2011, 2012</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Gil Forcada</mal:name>
      <mal:email>gilforcada@guifi.net</mal:email>
      <mal:years>2013</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Miquel-Àngel Burgos i Fradeja</mal:name>
      <mal:email>miquel.angel.burgos@gmail.com</mal:email>
      <mal:years>2020</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Victor Dargallo</mal:name>
      <mal:email>victordargallo@disroot.org</mal:email>
      <mal:years>2025</mal:years>
    </mal:credit>
  </info>

    <title>Operacions bit a bit</title>

    <p>Les operacions bit a bit es poden calcular usant els següents operadors.</p>
    <p>
    The result of some operations depend on the word size.
    To set the word size, press the menu button in the top-right corner of the
    window and select <gui style="menuitem">Preferences</gui>.
    </p>
    <p>
    Buttons for the following symbols and to set the word size are available in <link xref="mode-programming">programming mode</link>.
    </p>

    <p>
    Bitwise conjunction can be calculated using the ∧ or AND operators.
    </p>
    <example>
    <p>010011₂ ∧ 110101₂</p>
    <p>010011₂ AND 110101₂</p>
    </example>

    <p>La disjunció bit a bit es pot calcular utilitzant els operadors ∨ o OR.</p>
    <example>
    <p>010011₂ ∨ 110101₂</p>
    <p>010011₂ OR 110101₂</p>
    </example>

    <p>La disjunció exclusiva bit a bit es pot calcular utilitzant els operadors ⊻, ⊕ o XOR.</p>
    <example>
    <p>010011₂ ⊻ 110101₂</p>
    <p>010011₂ XOR 110101₂</p>
    </example>

    <p>
    Bitwise complement for the set word size can be calculated using the ¬, ~ or NOT operators.
    </p>
    <example>
    <p>¬ 010011₂</p>
    <p>NOT 010011₂</p>
    </example>

    <p>
    Bitwise alternative denial for the set word size can be calculated using the ⊼ or NAND operators.
    </p>
    <example>
    <p>010011₂ ⊼ 110101₂</p>
    <p>010011₂ NAND 110101₂</p>
    </example>

    <p>
    Bitwise joint denial for the set word size can be calculated using the ⊽ or NOR operators.
    </p>
    <example>
    <p>010011₂ ⊽ 110101₂</p>
    <p>010011₂ NOR 110101₂</p>
    </example>

    <p>
    Bitwise biconditional for the set word size can be calculated using the ⊙, XNOR or NXOR operators.
    </p>
    <example>
    <p>010011₂ ⊙ 110101₂</p>
    <p>010011₂ XNOR 110101₂</p>
    </example>
</page>
