|
From: | Maynard Wright |
Subject: | Re: bug |
Date: | Thu, 30 Jan 2020 07:25:34 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On Thu, Jan 30, 2020 at 7:59 AM Richardson, Anthony <address@hidden> wrote:
> Sent: Wednesday, January 29, 2020 10:37 PM
> To: address@hidden
> Subject: bug
>
> The below is my program.
>
> If I use px=mod(ii,a) instead px=ii-fix(ii/a)*a;
>
> Error occurred
>
> I think this is some bugs.
>
> Yours Ted Furuya
>
> for a=1:100;
> for ii=a+1:500;
> px=ii-fix(ii/a)*a;
> p2=fix(ii/a);
> p3=mod(3*a,ii);
> if ii<a*3&&px==7&&p2==1&&p3==5,qx=a+ii;endif
> endfor
> endfor
> qx
In Octave version 5.1.0 on Windows 10, I get the same output with either line.
Tony Richardson
It also works both ways in Octave 5.1.9 in Ubuntu.
--
DAS
Just to verify with an older version, it works either way using octave 4.2.2 under Kubuntu 18.04.
Maynard Wright
[Prev in Thread] | Current Thread | [Next in Thread] |