>>>>> "Raymond" == Raymond Toy <toy.raymond at gmail.com> writes:
>>>>> "Raymond" == Raymond Toy <toy.raymond at gmail.com> writes:
Raymond> 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
Raymond> Nice. The problem is in
Raymond> coerce-maxima-function-or-maxima-lambda. It needs an
Raymond> (catch 'errorsw foo) like what is done in
Raymond> %coerce-float-fun. With this change, we don't get the
Raymond> error and the plot comes out the same.
Raymond> Here is a possible patch.
Patch applied.
Ray