octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52787] Arithmetic functions cumsum, chop, pri


From: Sahil Yadav
Subject: [Octave-bug-tracker] [bug #52787] Arithmetic functions cumsum, chop, primes behave slight differently from document
Date: Wed, 3 Jan 2018 01:10:41 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

Follow-up Comment #2, bug #52787 (project octave):

OP has correctly pointed out the change in "primes". 

As for the "cumsum", since the documentation has that "extra" and "double"
will function the same as far as double precision is concerned, I have merged
the cases for extra and double. 

For "chop", there were separate conditions for cases when the bases have been
provided or not by the user with this note by jwe in the file :

## Further scaling and rounding with the base factor produces a
## value with ndigits exactly divisible by base.We skip that step
## unless base was explicitly provided.


Now since the OP has pointed the differences in the values generated by the
two cases, I have removed the comment and the conditions as well. 

Now it's upto the maintainers as to how they see the problems, these were just
my two cents.

PS: The "primes" changeset is in the 52787_2.diff file and the other two are
in 52787.diff file.

(file #42795, file #42796)
    _______________________________________________________

Additional Item Attachment:

File name: 52787.diff                     Size:1 KB
File name: 52787_2.diff                   Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52787>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]