Bug in plot2d/coerce-float-fun



On 3/21/11 8:33 PM, Jaime Villate wrote:
> Hi,
>
> (%i4) f(x):= sin(x)/x$
> (%i5) plot2d(f(x), [x,-8,8]);
> plot2d: expression evaluates to non-numeric value somewhere in plotting
> range.
> (%o5) 
> (%i6) plot2d(f, [x,-8,8]);
> expt: undefined: 0 to a negative exponent.
> #0: f(x=0.0)
>
> %i5 shows the plot correctly but %i6 does not.
> The expression sin(x)/x gives no problem for x=0, but when the function
Nice.  The problem is in coerce-maxima-function-or-maxima-lambda.  It
needs an (catch 'errorsw foo) like what is done in %coerce-float-fun. 
With this change, we don't get the error and the plot comes out the same.

Ray