As we all know, the integers follow the following identity :
(A⋅B⋅C)modM=((A⋅B)modM⋅C)modM
But it does not work for real numbers having fractional part. For example:
1.7⋅1.7⋅1.7=0.913mod2.0
whereas,
1.7⋅1.7=0.89mod2.0
and, 0.89⋅1.7=1.513mod2.0
We see the two results are unequal. So, does the modular identities do not work with real numbers? If yes, is there any way I could do multiplication of real numbers to get the expected result?
No comments:
Post a Comment