[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9875] Wrong results from the mod() functi
From: |
imad elh |
Subject: |
[Octave-patch-tracker] [patch #9875] Wrong results from the mod() function for some range of integers |
Date: |
Wed, 20 Nov 2019 16:05:05 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 |
URL:
<https://savannah.gnu.org/patch/?9875>
Summary: Wrong results from the mod() function for some range
of integers
Project: GNU Octave
Submitted by: imad_elh
Submitted on: mer. 20 nov. 2019 21:05:02 UTC
Category: None
Priority: 4
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hi,
following this simple demostrative process:
>> mod(42^8,4294967295)
ans = 1795713486
>> mod(429^8,4294967295)
ans = 1544028160
>> mod(4294^8,4294967295)
ans = 0
>> mod(42949^8,4294967295)
ans = 0
>> mod(429496^8,4294967295)
ans = 0
>> mod(4294967^8,4294967295)
ans = 0
one could simply see how that mod() function returns zero after its first
operand reaches some integer bias value.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?9875>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #9875] Wrong results from the mod() function for some range of integers,
imad elh <=