Karim Belabas on Sat, 15 Apr 2023 23:12:51 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: How to compute modulo a complex ?
|
- To: tony.reix@laposte.net
- Subject: Re: How to compute modulo a complex ?
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Sat, 15 Apr 2023 23:11:27 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1681593080; c=relaxed/relaxed; bh=yUtNGZ4RO9gmNIXk7vahB+RO8vArUTedION6fMwTzXE=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=1dZb0CV1+YLZ9GHylkPfgiTe2zqLVbfeM6tIeyGhdrmm14dqddc1mSwuJzI4zX1tkMD9ArwgeF7CoYEaPxhmIb3OhallUIaQfAWYubuldU+GQGv/WbtpR/u2RgRLZ10vfZhGYPJFAUr5UT0m7ky8PArbGYLlcfcm5k/BYNzo6VHmnSM6U9jpDJaFP1UsgKuAcJPYbr9kUqXCnt1EormrA/yIq4hj7NeoC69tw4ueGBn8G9NYE/mSXy9DixNYKb1U8fwyRPPv9lNQ5pMVxqkaplDMYIO9Wc5TEWByYL1W+HLMhpO+dEMKw29a2Teuxhef+OM6QfvGpoDoukLOPtTzkHv8oqLiQhRHqoX8AKr4knbqnRdKqydqrLRcREROXRwaV96Jk/4yU+C00bsvgPy9ZKhX13loz0pOjXg3Lq2GYaG8ooyZt1ek2D3ACi7o6XrJGoqUcr3SL9Fu7NWa5tKOu2t9l6AB+MH6U995vDImtP15V28OndUEDn5dSzvsvhRS1lfsX7OgKPQuVUXFgSAUqy29ugyL6Fsv+poRjt/V9paBWv/ujtTUn2Te81xqEjfZQJOq0u4D8yzE3X4XyJvtZI3Po23Uu8vlc69IpAi+ApytrVLScBhS7loUKpepthkFQJ7lcTy3hsDPMIuIOMj7rOfKZuNkU7vHHz0DA73PVp0=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1681593080; cv=none; b=GUM5cW9abuV++IyKs1me1k6CPsLhqE09mkNLTwZVKogz3yoXz/MN72UMSeo1kRC9Fv/K5u8c18IXKfhWeoqc2q+rd0efoo1bceuOykQB6QdZmgtiVa+jUGT+f8z0ikexI7L6RjoGwLUhtG6BZ4dFHHyrjjoxpQbYPsZvpEWcguS38T11yFY2jV7Y452ZbwXhTaJUsr88nUrb9T0v9aNgeF3dzU7qhqJ/Y1NpnAKJKDVYSy4mIZCA5Nh6W1iQim/GHEcAscWyWiURUtd0M0wWz3/PiBjlAxgWfZ1TK37T5xQ/zGxzqRXNLCnGjaGTABYy/r100SdpBWFTB0iXwhcgGk/lVFj+d9/DCcXi/sUqQnd0Innn2w5+6ZdkE6cnBCpzWt70ejUzVfxGOadBLZygc9We4Gt8IQVf1Lz8AjM1Mv3UK4szdhfRlBijjUUdFaicDr+cOPmLBPl1ZAOpfs34bcudzH/av+kyXUlgywK8Vwv2R6Er4a8kvtr0bLsVIsuoaCkvVGheA1cYf/vpNakIqd+edx0DIiKdNJqe5+zeHazCmSig6kjqmNELPjbbjrXNujCqdZ6Q5fehZ6OkFkbRAG/wZSZw8QVwvevQFTZPO+lEB0kaEyfVz8n4amcK1kX3GhCHrHsfEjSFZDXlbPKfASCuE/XgQ6TwJuesd+BDGbw=
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Sat, 15 Apr 2023 23:12:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1681593080; bh=yUtNGZ4RO9gmNIXk7vahB+RO8vArUTedION6fMwTzXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CrdmMDr1Q75IPmGZ/LDmbx6Tz12Toj1DU9XenrXCrjRgV9Hdp7sTyQmdPMXgnqjsS DqJtLo6hXIqkzT0QUh8hTrLzgYF5Ivd1xIZYJIU2VLG6XnPp8NA8upPN7N0sgNTnK5 B3q828dpdm11m5riDrOVjr4B3iXB7s7f8ijL954KXoK/kuZBSSlWMuWTWajqG+UqQU rOoF4vJoorNr3rSQlNQ81jAOZqWv6p/Aetz7Sce7+937lqBjEuIR7qK3c5qWuBfgp5 ykC78q967QuSPSgFBQuKrKvbo+Sj9zmLddcHf0oq0deyPKlcxgVLna2QK+pAqUySV2 aAoMmcg4GQ2EmSn1WLyiJ5e9owWV2Drz4ooG7BqsWFC4ERhVmljxJ7R8qAi47O6jVb kpTN88lBxhfNZ4BpHHs32YHS1FLaER0B9llW8GjzaOkyjnYT/EfxEGmPcDWs+X0bq4 LcQOxNSzZObwUe0pz6pYvR2wbTgMOPZyqtccTpvJwX+tiRI9P1ZbYvcm2Y8qQhK7Uu hQxArV9zkUiuiQIIZ5QzBPlquDfKWCLN7mLaONi/1nnRm/6vzcKwo7a2fhuz2kGDAO FqTst3XTCUcZBVpGgf6RLaxSDNT+aeRb87WfS4ARTfLUIIphz4MjJFwg7m4QklIRX/ EXL4Nqr2/CABfU76CYijh8qA=
- In-reply-to: <131228522.19369.1681591840600@wlpnf0225>
- Mail-followup-to: tony.reix@laposte.net, pari-users@pari.math.u-bordeaux.fr
- References: <131228522.19369.1681591840600@wlpnf0225>
* tony.reix@laposte.net [2023-04-15 22:50]:
> Hi,I want to do:
> s=5
> s=Mod( (s^2-1)/(2*I*s) , 4 I )
> where I is the imaginary number. When trying, I get a forbiden
> division between polmod and complex.
No direct way. You can use the following function:
cxmod(a, b) = my(q = a/b); a - (floor(real(q)) + I * floor(imag(q))) * b;
Cheers,
K.B.
--
Pr Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/