Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Last active December 6, 2025 06:04
Show Gist options
  • Select an option

  • Save Hermann-SW/9fd371d850ac1822e0fc3482ed3e7a2f to your computer and use it in GitHub Desktop.

Select an option

Save Hermann-SW/9fd371d850ac1822e0fc3482ed3e7a2f to your computer and use it in GitHub Desktop.
modulus for Gaussian integers, with t_COMPLEX and number field
\\ 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];
@Hermann-SW
Copy link
Author

Hermann-SW commented Nov 27, 2025

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