zeta(%i-1),numer; causes an error



On 2/19/12 11:11 AM, Raymond Toy wrote:
> On 2/19/12 9:09 AM, Robert Dodier wrote:
>> On 2/19/12, ???? <yasuaki.honda at gmail.com> wrote:
>>
>>> (%i1) zeta(%i-1),numer;
>>> BIGFLOAT: unable to convert #C(2.0 -1.0) to a CL or BIGFLOAT number.
>> Looks like BIGFLOAT:TO is called w/ a Lisp complex as its
>> argument, and it doesn't know what to do with that.
>> I suppose it should just return it unmodified.
>> I've attached a patch to do that; comments, anyone?
>> This seems to fix the bug reported.
> Thanks for looking into this.  I think your patch is correct, but I'd
> just use cl:numberp instead.  I think we want bigfloat:to to return any
> CL number as is.
>
>
Git repo updated.

Ray