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



On 2/19/2012 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 think bfloat( ?complex(2,-1)) should return 2.0b0 - 1.0b0*%i
just as bfloat(2-%i) returns that.

But why is zeta() using bigfloats?

When Macsyma was written, lisp didn't have built-in complex numbers.
Even now, lisp doesn't have built-in complex numbers with bigfloat
parts, so we could either make a new
complex-constant-with-any-Maxima-numbers for Re and Im.
or just chug along with ((mplus) Re ((mtimes) %i Im))...



RJF