1 / 13

Multiplication

Multiplication. 568 423. Multiplication. Operation 1. multiply two digits, save the carry. 56 8 42 3 4. Carry: 2. Multiplication. Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry. 5 6 8 42 3

Download Presentation

Multiplication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Multiplication 568 423

  2. Multiplication Operation 1. multiply two digits, save the carry 568 423 4 Carry: 2

  3. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 568 423 04 Carry: 2

  4. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 568 423 1504 Carry:

  5. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 568 423 1504 Carry:

  6. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 568 423 1504 1136 Carry:

  7. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 5. shift a number 1 digit to the left 568 423 1504 1136 Carry:

  8. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 5. shift a number 1 digit to the left 6. add two numbers 568 423 1504 1136 12864 Carry:

  9. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 5. shift a number 1 digit to the left 6. add two numbers 568 423 1504 1136 12864 2272 Carry:

  10. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 5. shift a number k digits to the left 6. add two numbers 568 423 1504 1136 12864 2272 Carry:

  11. Multiplication Operation 1. multiply two digits, save the carry 2. multiply two digits, add the carry, save the carry 3. multiply two digits, place result 4. multiply a number by a digit 5. shift a number k digits to the left 6. add two numbers 568 423 1504 1136 12864 2272 240064 Carry:

  12. Multiplication What functions do we need: 1. addNum(n1, n2) – two integers as input, output is the sum 2. shilfLeft(n, k) – an integer n and a shift number k, output is n multiplied by 10 raised to power k 3. multiplyLine(n, d) – an integer n and a digit d as input, output is n times d.

  13. Multiplication function number = multiplyNum(n1, n2); number = []; k=0; % line multiply shifts k position for i=length(n2):-1:1 number = addNum(number, shiftLeft(multiplyLine(n1,n2(i)),k)); k = k+1; end end

More Related