شرح Numerical Calculations [2] | البرمجة والذكاء الاصطناعي أولى ثانوي لغات، الوحدة السادسة، الدرس السادس | تك بالمصري

أولى ثانوي لغات، الوحدة السادسة، الدرس السادس

Numerical Calculations [2]

اختبر نفسك واجمع لحد 3 نجوم
  1. اتفرج على الشرح
  2. اختبر نفسك
  3. 3 نجوم

فيديو الشرح

الفيديو ده للمشتركينبيتفتح مع أي باقة

ازاي تشترك

عندك سؤال في الدرس ده؟

اعمل حساب مجاني، والمساعد يشرحلك من الدرس ده نفسه.

اسأل المساعد

الدرس باختصار

شرح درس Numerical Calculations [2] لأولى ثانوي لغات، الوحدة السادسة: الـ Complement، والـ 10’s complement، والـ 2’s complement، والطرح بالـ complements.

Complement: The smallest number which, when added to a given natural number, produces a carry to the next higher digit. Complements are used for representing negative numbers in computers. يعني أصغر عدد تزوده على العدد فيطلّع carry لخانة جديدة على الشمال.

10’s complement: In decimal, the smallest number which, when added, produces a carry to the next higher digit. مثال الكتاب: The 10’s complement of 71 is 29, and the 10’s complement of 635 is 365، لأن 71 + 29 = 100 و 635 + 365 = 1000.

2’s complement: In binary, the smallest number which, when added, produces a carry to the next higher digit. وطريقته: For each digit of the original binary number, invert 0s to 1s and 1s to 0s, then add 1 at the end to mechanically obtain the result. مثال الكتاب: 0101(2) بعد القلب يبقى 1010(2)، وبعد ما نزود 1 يبقى 1011(2).

Subtraction Using Complements: A computer uses subtraction by performing addition with complements، يعني الكمبيوتر بيطرح بالجمع. الخطوات: 1) Find the complement of the subtrahend. 2) Use the complement to perform addition. 3) Ignore the leading digits of the calculation result and provide the answer. مثال الكتاب: 1000(2) - 0111(2): الـ 2’s complement بتاع 0111(2) هو 1001(2)، و 1000(2) + 1001(2) = 10001(2)، وبعد ما نتجاهل الـ leading digit يبقى 0001(2). وفي الشرح حل Warm Up و Try و Exercise صفحة 68.

اختبر نفسك

اختبار الدرس للمشتركين

اشترك عشان تفتح كل الفيديوهات والاختبارات بتاعة صفك. التحويل بـ InstaPay أو محفظة موبايل، وبعدها تكلمنا على واتساب ونفعّل الاشتراك.

مصطلحات الدرس 5

دوس على الكارت يتقلب ويوريك التعريف، واسحب للكروت التانية