Max Alekseyev on Thu, 27 Sep 2007 23:12:17 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Pari get digit method?
|
- To: pari-users@list.cr.yp.to
- Subject: Re: Pari get digit method?
- From: "Max Alekseyev" <maxale@gmail.com>
- Date: Thu, 27 Sep 2007 14:05:33 -0700
- Delivery-date: Thu, 27 Sep 2007 23:12:17 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Ltfhg6a0xL260PSraa36xPrRcs0RvtFcOdSZnPwJYEI=; b=JBcZCr8rExVjzCNhrcD9DuPvHTkkpel1TejytIV9AbPXFmsME13p97/pNIlz8i9siYPJ+6MV/MHCC8NRgN+fgM6H2d4DPfDJPzWKOrTOxKJAl24N9gAYqT+DHk/zhWsH4dlTlNviIPO7YBJDASnAu6g2GWDC6ChRi2dcu30+QX8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QHAUNFcrhPO6jjZBd0GEo9qE4K0TAOYVJM1URogvWUX1ncx5SLn087SyHyTnv0Ik0VfvYX/CaVkC4vmZB4raBw2M/zlaJ+qqYFl7hVzn6N/7nuuq7/mTjA4eSAMpFfhqOcdgzQ83ssCZqS25Whw++lpCRG2Y8ULVacbytK3Detc=
- In-reply-to: <20070927205112.GA7222@math.u-bordeaux1.fr>
- Mailing-list: contact pari-users-help@list.cr.yp.to; run by ezmlm
- References: <4964.129.6.99.176.1190924992.squirrel@mail.outstep.com> <20070927205112.GA7222@math.u-bordeaux1.fr>
On 9/27/07, Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr> wrote:
> \\ coeff of 10^k
> kth_digit(n, k) = (n \ 10^k) % 10
All digits as a vector:
eval(Vec(Str(n)))
E.g.:
? eval(Vec(Str(723964)))
%1 = [7, 2, 3, 9, 6, 4]
Regards,
Max