(42S) Quotient and Remainder

04052023, 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. (YQ*X)/X = Y/X  Q The expression is simply the fractional part that was roundedoff. For floordivide, simply make sure fractional part is nonnegative. 

« Next Oldest  Next Newest »

Messages In This Thread 
(42S) Quotient and Remainder  Werner  04052023, 09:38 AM
RE: (42S) Quotient and Remainder  Albert Chan  04052023, 12:39 PM
RE: (42S) Quotient and Remainder  Werner  04052023, 01:11 PM
RE: (42S) Quotient and Remainder  Albert Chan  04052023 01:48 PM
RE: (42S) Quotient and Remainder  Werner  04052023, 03:55 PM
RE: (42S) Quotient and Remainder  Albert Chan  04062023, 12:03 AM
RE: (42S) Quotient and Remainder  Albert Chan  04062023, 02:55 PM

User(s) browsing this thread: 1 Guest(s)