home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
tutor
/
l2p140
< prev
next >
Wrap
Text File
|
1990-07-15
|
6KB
|
137 lines
╔════════════════════════════════════════════════════╗
║ Lesson 2 Part 090 F-PC 3.5 Tutorial by Jack Brown ║
╚════════════════════════════════════════════════════╝
FLOORED q vs m 5q Divisor = n = 3 o
+ o o o
+ o o o
+ o o o
-10 + o o o 10
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-o-o-o-+-+-+-+-+-+-+-+-+-+-+-+-+m
o o o + m = nq + r
o o o + m/n = q + r/n
o o o +
o o o +
o o o -5+
Quotient vs Dividend for Floored Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
FLOORED r vs m 5r Divisor = n = 3
+
+
o o o o o + o o o o o
o o o o o + o o o o o
o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o m
-10 + 10
+
+
+ m = nq + r
-5+ m/n = q + r/n
Remainder vs Dividend for Floored Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
SYMMETRIC q vs m 5q Divisor = n = 3 o
+ o o o
+ o o o
+ o o o
-10 + o o o 10
+-+-+-+-+-+-+-+-+-+-+-+-+-o-o-o-o-o-+-+-+-+-+-+-+-+-+-+-+-+-+ m
o o o +
o o o + m = nq + r
o o o + m/n = q + r/n
o o o +
o -5+
Quotient vs Dividend for Symmetric Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
SYMMETRIC r vs m 5r Divisor = n = 3
+
+
+ o o o o o
-10 + o o o o o
o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o m
o o o o o + 10
o o o o o +
+
+ m = nq + r
-5+ m/n = q + r/n
Remainder vs Dividend for Symmetric Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
oFLOORED q vs m 5q Divisor = n = -3
o o o +
o o o +
o o o +
-10 o o o + 10
+-+-+-+-+-+-+-+-+-+-+-+-+-o-o-o-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+m
+ o o o
m = nq + r + o o o
m/n = q + r/n + o o o
+ o o o
-5+ o o o
Quotient vs Dividend for Floored Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
FLOORED r vs m 5r Divisor = n = -3
+
+
+
-10 + 10
o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o m
o o o o o + o o o o o
o o o o o + o o o o o
+
+ m = nq + r
-5+ m/n = q + r/n
Remainder vs Dividend for Floored Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
oSYMMETRIC q vs m 5r Divisor = n = -3
o o o +
o o o +
o o o +
-10 o o o + 10
+-+-+-+-+-+-+-+-+-+-+-+-+-o-o-o-o-o-+-+-+-+-+-+-+-+-+-+-+-+-+ m
+ o o o
m = nq + r + o o o
m/n = q + r/n + o o o
+ o o o
-5+ o
Quotient vs Dividend for Symmetric Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
SYMMETRIC r vs m 5r Divisor = n = -3
+
+
+ o o o o o
-10 + o o o o o
o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o-+-+-o m
o o o o o + 10
o o o o o +
+ m = nq + r
+ m/n = q + r/n
-5+
Remainder vs Dividend for Symmetric Integer Division
( m = dividend, n = divisor, q = quotient, and r = remainder)
┌───────────────────────────────────┐
│ Please move to Lesson 3 Part 010 │
└───────────────────────────────────┘