Properties
Similar Topics
Statistics
Comments
1
Participants
2
Subscribers
0
Votes
1
Views
929
Share

FitPoly returning wrong function for some overdetermined systems
Solved
The FitPoly command is occasionally returning incorrect functions when provided with points fitting a lower degree curve.
For example,
- FitPoly[{(0,0),(-1,1),(1,-1)},2]
should return -x, but returns x.
- FitPoly[{(0,0),(-1,1),(1,-1)},1]
returns the correct value -x.
Other examples include
- FitPoly[{(1,-1),(0,0),(-1,-1),(2,-4)},3]
This seems to be an issue when the leading coefficient is -1 and the degree is one higher than necessary; the leading coefficient is missing its -1 sign term.
For example,
- FitPoly[{(0,1),(1,2),(2,1),(3,-2)},3]
returns x^2+2x+1 instead of -x^2+2x+1.
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
Thanks, fixed for 5.0.346.0
Thanks, fixed for 5.0.346.0
Comments have been locked on this page!