hermann on Tue, 27 May 2025 00:01:48 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
How to determine Mod(a,b) with t_COMPLEX b?
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: How to determine Mod(a,b) with t_COMPLEX b?
- From: hermann@stamm-wilbrandt.de
- Date: Tue, 27 May 2025 00:01:44 +0200
- Authentication-results: secure-mailgate.com; auth=pass smtp.auth=93.90.177.40@web103.dogado.net
- Delivery-date: Tue, 27 May 2025 00:01:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stamm-wilbrandt.de; s=cloudpit; t=1748296904; bh=R84hqLYDuwEoUrMVR5DAPMdl06HYgr0h8zDrz0e/7eU=; h=Date:From:To:Subject:From; b=aPVSC5o2QEs/pUYENm8yEO3n+4+xE2EhsUknFx9oD7AGyN+lFElC6Ru/p+zRAU3Ac uIdGS3Bd7RFTa0DucVtd8rLnZCaif2sCpHkSbokHk5DQJqcKOCdW0G/rxr4GxQRqE5 nIyN9RfXDV9/XZYcnM3HBueu/+M6r7d2M0SzKNx0=
- User-agent: Roundcube Webmail/1.4.13
$ gp -q
? a=1+4*I;b=3+2*I;
? a/b
11/13 + 10/13*I
? Mod(a,b)
*** at top-level: Mod(a,b)
*** ^--------
*** Mod: forbidden division t_COMPLEX % t_COMPLEX.
*** Break loop: type 'break' to go back to GP prompt
break>
The minimal residue of 1+4*I modulo 3+2*I is the yellow point -I in the
example:
https://en.wikipedia.org/wiki/Gaussian_integer#Describing_residue_classes
How can minimal residue of an input gaussian integer modulo a gaussian
integer be computed in PARI/GP?
Regards,
Hermann.