bugGNU Octave - Bugs: bug #46126, Polyfit bug: Different polynomial...

 
 

bug #46126: Polyfit bug: Different polynomial coefficients when using optional output

Submitted by:  None
Submitted on:  Mon 05 Oct 2015 07:49:56 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Nicole DrögeOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 05 Oct 2015 11:46:53 AM UTC, comment #4:

Then leave it as it is.
Thank you!

Nicole Dröge <droegen>
Mon 05 Oct 2015 11:43:02 AM UTC, comment #3:

Indeed sometimes separating the various calling forms of a function seams to lead to clearer doc. On the other hand, you have to walk through the whole doc to discover all the calling forms; hence the choice, for the whole Octave functions docs, to group all calling forms at the beginning of the doc.

If you can think of a clear improvement of the doc that preserves the list of interfaces at the beginning I may integrate it but not otherwise.

Pantxo Diribarne <pantxo>
Project Member
Mon 05 Oct 2015 11:07:38 AM UTC, comment #2:

Hi,

ok. I think the doc is really a little bit irritating.
Maybe you change the order of explanations, something like this:

But I don't know if it fits to the guidelines for writing a doc.

Nicole Dröge <droegen>
Mon 05 Oct 2015 10:02:41 AM UTC, comment #1:

Hi,

Looks like requesting the third coefficient changes the signification of the P output, as written in the doc:

So it must be used as following:

Can I close this report or do you think the documentation should be modified. It was quite clear to me how to use modified polynomial coeffs though.

Pantxo Diribarne <pantxo>
Project Member
Mon 05 Oct 2015 07:49:56 AM UTC, original submission:

Using the polyfit function without the optional arguments
gives different polynomial coefficients p than using polyfit with the optional arguments
My expectation and understanding of the polyfit doc is that p1=p2, but it is p1!=p2.
I am using an Win 7, 64 bit system with MinGW-32bit.

Attached I send an input file, which produces the error, and also log files of Octave 4.0.0 and 3.6.4 of the console output where the results can be reviewed.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #35066:  Bug_polyfit.m added by None (1KiB - application/octet-stream - Input file, which produces the bug, and output files with calculation results)
file #35067:  Bug_polyfit_Octave3.6.4.out added by None (1KiB - application/octet-stream - Input file, which produces the bug, and output files with calculation results)
file #35068:  Bug_polyfit_Octave4.0.0.out added by None (1KiB - application/octet-stream - Input file, which produces the bug, and output files with calculation results)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by droegen (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Oct 2015 12:24:09 PM UTCpantxoStatusWorks For Me=>Invalid
      Open/ClosedOpen=>Closed
    Mon 05 Oct 2015 11:43:02 AM UTCpantxoCategoryOctave Function=>Documentation
    Mon 05 Oct 2015 10:02:41 AM UTCpantxoStatusNone=>Works For Me
    Mon 05 Oct 2015 07:49:56 AM UTCNoneAttached File-=>Added Bug_polyfit.m, #35066
      Attached File-=>Added Bug_polyfit_Octave3.6.4.out, #35067
      Attached File-=>Added Bug_polyfit_Octave4.0.0.out, #35068

    Back to the top


    Powered by Savane 3.1-cleanup1