Ticket #12316 (new enhancement)

Opened 16 months ago

Last modified 16 months ago

find_fit does not work for piecewise functions

Reported by: Shashank Owned by: jason, jkantor
Priority: minor Milestone: sage-5.10
Component: numerical Keywords: piecewise find_fit
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

find_fit calls len(variables) which is not defined for piecewise functions. There is a variable "length" that is equivalent. If the function passed to find_fit is piecewise it should call "length" instead of "len(variables)".

Change History

comment:1 Changed 16 months ago by kcrisman

  • Type changed from PLEASE CHANGE to enhancement

comment:2 Changed 16 months ago by kcrisman

  • Report Upstream changed from Not yet reported upstream; Will do shortly. to N/A

comment:3 Changed 16 months ago by kcrisman

It would be great if you could post an example of what should work, by the way, just for reference. Thanks!

Note: See TracTickets for help on using tickets.