]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - mjo-common.tex
Add \cartprodthree command to avoid nesting \cartprod.
[mjotex.git] / mjo-common.tex
index a4457883acbea4f39adfa6e90e63684533e37eed..26e761bda919ae79d587a16e8b435f49cd019694 100644 (file)
 % A pair of things.
 \providecommand*{\pair}[2]{ \left( {#1}, {#2} \right) }
 
+% The Cartesian product of two things.
+\providecommand*{\cartprod}[2]{ {#1} \times {#2} }
+
+% The Cartesian product of three things.
+\providecommand*{\cartprodthree}[3]{ \cartprod{{#1}}{\cartprod{{#2}}{{#3}}} }
+
 %
 % Product spaces
 %