Arithmetic Operations: Difference between revisions

From wikinotes
(Created page with "= Addition/Subtraction = <blockquote> </blockquote><!-- Addition/Subtraction --> = Multiplication = <blockquote> </blockquote><!-- Multiplication --> = Division = <blockqu...")
 
 
Line 11: Line 11:
= Division =
= Division =
<blockquote>
<blockquote>
== Components ==
<blockquote>
<syntaxhighlight lang="bash">
divisor
----------
dividend


            result
        +---------
divisor / dividend
</syntaxhighlight>
</blockquote><!-- Components -->
== Long Division ==
<blockquote>
<syntaxhighlight lang="bash">
  +----
4 / 936
</syntaxhighlight>
<syntaxhighlight lang="bash">
    2
  +----  # 4*2 = 8, closest we can get to 9 without going over
4 / 936
  - 8
  ---
    1
</syntaxhighlight>
<syntaxhighlight lang="bash">
    23
  +----
4 / 936 # (we carry the 3 downwards)
  - 8  #  |
  ----  # \/
    13
  -12  # 4*3 = 12, closest we can get to
  ---
    1
</syntaxhighlight>
<syntaxhighlight lang="bash">
    234 # <--- result!
  +----
4 / 936
  - 8
  ----
    13
  -12
  ---
    16
    -16  # 4*4 = 16, perfect!
    ---
      0
</syntaxhighlight>
</blockquote><!-- Long Division -->
</blockquote><!-- Division -->
</blockquote><!-- Division -->

Latest revision as of 22:39, 12 July 2021

Addition/Subtraction

Multiplication

Division

Components

 divisor
----------
 dividend


            result
         +---------
divisor / dividend

Long Division

   +----
4 / 936
    2
   +----  # 4*2 = 8, closest we can get to 9 without going over
4 / 936
  - 8
  ---
    1
    23
   +----
4 / 936 # (we carry the 3 downwards)
  - 8   #  |
  ----  # \/
    13
   -12  # 4*3 = 12, closest we can get to 
   ---
     1
    234 # <--- result!
   +----
4 / 936
  - 8
  ----
    13
   -12
   ---
     16
    -16  # 4*4 = 16, perfect!
    ---
      0