(42S) Quotient and Remainder
|
04-05-2023, 01:48 PM
Post: #4
|
|||
|
|||
RE: (42S) Quotient and Remainder
Hi, Werner
Sorry if I was a bit unclear. Python code only tried to show invariant, Y = Q*X + R, always hold. It does not ask for QR code to match it. Truncated quotient is fine, but should match with truncated remainder. Quote:I still have to do the Free42/DM42 one where I will be able to use FMA; I like the FMA approach. It is simple and direct. (Y-Q*X)/X = Y/X - Q The expression is simply the fractional part that was rounded-off. For floor-divide, simply make sure fractional part is non-negative. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42S) Quotient and Remainder - Werner - 04-05-2023, 09:38 AM
RE: (42S) Quotient and Remainder - Albert Chan - 04-05-2023, 12:39 PM
RE: (42S) Quotient and Remainder - Werner - 04-05-2023, 01:11 PM
RE: (42S) Quotient and Remainder - Albert Chan - 04-05-2023 01:48 PM
RE: (42S) Quotient and Remainder - Werner - 04-05-2023, 03:55 PM
RE: (42S) Quotient and Remainder - Albert Chan - 04-06-2023, 12:03 AM
RE: (42S) Quotient and Remainder - Albert Chan - 04-06-2023, 02:55 PM
|
User(s) browsing this thread: 1 Guest(s)