Bill Allombert on Tue, 12 May 2015 14:42:52 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: incorrect type in gpow(0,n) (t_VEC)


On Thu, Feb 12, 2015 at 04:33:06PM +1100, Kevin Acres wrote:
> Hi,
> 
> I've noticed recently that something like [1,2,3]^[2] works fine,
> whereas if any element is zero I get an error:
> 
> ? [0,2,3]^[2]
>   ***   at top-level: [0,2,3]^[2]
>   ***                        ^----
>   *** _^_: incorrect type in gpow(0,n) (t_VEC).
>   ***   Break loop: type 'break' to go back to GP prompt
> 
> Is there a work around for this?

Yes, you can use
[0,2,3]^2.

(Note the dot!)

Cheers,
Bill.

PS: Sorry for the long delay, there was an issue with the antispam filter, so your email
only reached the list today.