Max Alekseyev on Fri, 23 May 2008 09:19:21 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: "John Patrick Gerdeman" <j_gerdem@informatik.uni-kl.de>
- Subject: Re: type convertion
- From: "Max Alekseyev" <maxale@gmail.com>
- Date: Fri, 23 May 2008 00:15:58 -0700
- Cc: "Kostas Patsakis" <kpatsak@gmail.com>, pari-users@list.cr.yp.to
- Delivery-date: Fri, 23 May 2008 09:19:21 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TrX3ZzAUfKnXP8eGzqQ3a/p0CQSN5bugABG+rzLVFSU=; b=PpVzffmYWcn7cp/EtQszgeZhTw3nBQMpLyKBvwEqpWanNCyO+zktrhzLV3wSriEEvfH8YtOgEhdseJ3u21TE26Hk8xMnktnXHFmRz5cSCmaLmxkI40mr3+NJwTPERaKDBc/dqRFPzYctmsZfqC+3ReksS3586ezBjFlZ2ZBVbew=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Kf5RoQxljAyNavGuXaimsUkCm+FIa4vu3/P0mjCebQbqkFWxBaHiRle/Y0kAUX6TTaK3sCZTj8b9c0Kz2g15ZaYphomtql5DVtfKTg6TwntGPI8udtoXmmKxVx0EMvjulRIl4qMbWmMHOeEs+keEoVDbrldOBtYBLsfto2O2zK8=
- In-reply-to: <1211524337.6982.5.camel@HunterOrion>
- Mailing-list: contact pari-users-help@list.cr.yp.to; run by ezmlm
- References: <cf6c74360805222312t22c95e76wd92275d6ade22ce0@mail.gmail.com> <1211524337.6982.5.camel@HunterOrion>
There are such functions:
? x=Mod(10,4)
%1 = Mod(2, 4)
? lift(x)
%2 = 2
? component(x,1)
%3 = 4
? x.mod
%4 = 4
Regards,
Max
On Thu, May 22, 2008 at 11:32 PM, John Patrick Gerdeman
<j_gerdem@informatik.uni-kl.de> wrote:
> As far as I know there is no way to get either element from an INTMOD.
> But you could use %
>
> ?Mod(10,4)
> %1 = Mod(2, 4)
> ?10%4
> %2 = 2
>
> I hope this helps.
>
> John
>
> Am Freitag, den 23.05.2008, 09:12 +0300 schrieb Kostas Patsakis:
>> Is it possible to convert from INTMOD to integers?
>>
>> Thanks in advance,
>> Costas
>>
>>
>
>