Last active
December 6, 2025 06:04
-
-
Save Hermann-SW/9fd371d850ac1822e0fc3482ed3e7a2f to your computer and use it in GitHub Desktop.
modulus for Gaussian integers, with t_COMPLEX and number field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \\ from Karim Belabas, corresponds to GP nfeltdivrem() | |
| \\ https://pari.math.u-bordeaux.fr/archives/pari-users-2511/msg00054.html | |
| \\ | |
| gimod(w, z) = my(q = round(w / z)); w - q*z; | |
| gidivrem(w,z) = my(q = round(w / z)); [q, w - q*z]; |
Author
Author
unrelated github markdown test
Tips for collapsed sections
You can add a header
You can add text within a collapsed section.
/* C++ comments allow for code with nested section in markdown
nested collapsed sections
*/bla bla
/*
You can add an image or a code block, too.
puts "Hello World"foobar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example calculation with t_COMPLEX:
Example calculation with number field:
Many steps:
Better:
Easiest: