ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <darnold@northcoast.com>
Subject: Sample of the day ---Operator names
Date: Thu, 16 Sep 1999 11:34:55 -0700	[thread overview]
Message-ID: <3.0.5.32.19990916113455.00b56600@mail.northcoast.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

\magnification=1200

\AmSTeX\ makes it easy to define new operator names.

\define\tr{\operatorname{Tr}}

The sum of the elements on the main diagonal is called the {\it
trace} of the matrix; i.e., if
$$
A=\pmatrix
a_{11} & a_{12} & \dots & a_{1n}\\
a_{21} & a_{22} & \dots & a_{2n}\\
\vdots & \vdots & \ddots & \vdots\\
a_{n1} & a_{n2} & \dots & a_{nn}
\endpmatrix,
$$
then
$$
\tr(A)=a_{11}+a_{22}+\cdots+a_{nn}.
$$

You can also declare operator names for use with limits.

\define\res{\operatornamewithlimits{Res}}

$$
\res_{x=0}\frac{f(x)}{x}
$$

If $\res_{x=0} f(x)/x$, \dots
\bye

[-- Attachment #2: operators.dvi --]
[-- Type: application/octet-stream, Size: 1508 bytes --]

                 reply	other threads:[~1999-09-16 18:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.5.32.19990916113455.00b56600@mail.northcoast.com \
    --to=darnold@northcoast.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).