I've had to deal with adapt_to_callable a bit, and I too would greatly appreciate an improvement to it.
One thing that I think should be handled in adapt_to_callable, or whatever its replacement will be, is plot ranges. Users are usually allowed to explicitly specify variables in plot ranges (this overlaps with adapt_to_callable's variable inference functionality), and I see a lot of duplicated code to extract u_low and u_high from a plot range which may be a 2-tuple or a 3-tuple. In Carl Witty's implicit surface patch (#5249), I wrote a function called extract_vars_ranges_and_adapt which may be worth taking a look at. From the docstring, it "makes f into a fast callable function, while inferring its arguments and canonicalizing the provided ranges." This function can be found at line 1193 in <http://trac.sagemath.org/sage_trac/attachment/ticket/5249/trac5249.patch> Thanks, Bill --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
