On Thu, Oct 8, 2009 at 11:56 PM, Mario Rodriguez
<biomates at telefonica.net> wrote:
>> (%i4) plot2d(f,[x,-3,3]);
>> (%o4)
>> (%i5) Warning: empty y range [0:0], adjusting to [-1:1]
>>
>> Theoretically, f(k) must be equal to %pi for k in [-1;1] and 0
>> outside. The plot does not show anything in [-1;1].
> The draw package has a similar problem. When the function returned by
> coerce-float-fun is applied to x values in the range [-1,1] to get the
> corresponding ordinate, it returns $%pi, instead of a float. An extra
> call to $float fixes this problem.
>
> Perhaps a better solution is to modify coerce-float-fun, if possible, so
> that both plot and draw work as expected. The alternative is to add some
> extra calls to Maxima's float function in several places.
Hmm. I tried to make coerce-float-fun smarter in the last revision or two,
but obviously I missed something; I get the same behavior in 5.19.2.
Can you please make a bug report with this example? Thanks.
best
Robert Dodier