פעולה על סיביות – הבדלי גרסאות
תוכן שנמחק תוכן שנוסף
מ סקריפט החלפות (מסוי, לעתים, זיכרון, על ידי, {{הערות שוליים}}) |
Yammesicka (שיחה | תרומות) מ עיצוב |
||
שורה 43:
=== במתמטיקה ===
<div style="text-align: center;">
▲<div style="direction: ltr;"><math>x\text{ AND }y = \sum_{n=0}^{b}2^n\left(\left\lfloor\frac{x}{2^n}\right\rfloor \bmod 2\right)\left(\left\lfloor\frac{y}{2^n}\right\rfloor \bmod 2\right)</math></div>
<math>x\text{ OR }y = \sum_{n=0}^{b}2^n\left[\left[\left(\left\lfloor\frac{x}{2^n}\right\rfloor \bmod 2\right) + \left(\left\lfloor\frac{y}{2^n}\right\rfloor \bmod 2\right) + \left(\left\lfloor\frac{x}{2^n}\right\rfloor \bmod 2\right)\left(\left\lfloor\frac{y}{2^n}\right\rfloor \bmod 2\right)\bmod 2\right]\bmod 2\right]</math>
<math>x\text{ XOR }y = \sum_{n=0}^{b}2^n\left[\left[\left(\left\lfloor\frac{x}{2^n}\right\rfloor \bmod 2\right) + \left(\left\lfloor\frac{y}{2^n}\right\rfloor \bmod 2\right)\right]\bmod 2\right]</math>
</div>
== הערות שוליים ==
|