]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - mjo-algebra.tex
Add mjo-algebra.tex with \polyring and \Frac commands.
[mjotex.git] / mjo-algebra.tex
diff --git a/mjo-algebra.tex b/mjo-algebra.tex
new file mode 100644 (file)
index 0000000..d70d9fd
--- /dev/null
@@ -0,0 +1,13 @@
+% Needed for \operatorname.
+\usepackage{amsopn}
+
+% The fraction field of its argument, an integral domain. The name
+% "Frac" was chosen here instead of "Quot" because the latter
+% corresponds to the term "quotient field," which can be mistaken in
+% some cases for... a quotient field (something mod something).
+\newcommand*{\Frac}[1]{\operatorname{Frac}\of{{#1}}}
+
+% The polynomial ring whose underlying commutative ring of
+% coefficients is the first argument and whose indeterminates (a
+% comma-separated list) are the second argumnt.
+\newcommand*{\polyring}[2]{{#1}\left[{#2}\right]}