# How to create my own math operator with limits?

How can i write my own math operator with limits? I want it to look like: \sum\limits_{e=1}^{m} but with a capital A (if possible bigger than the normal text) instead of the sum. Thanks for the help!

-

## migrated from stackoverflow.comJul 18 '11 at 20:57

This question came from our site for professional and enthusiast programmers.

Thanks for all the answers! really quick, really precise!! –  user6776 Jul 19 '11 at 8:35

\newcommand{\opA}{\mathop{\vphantom{\sum}\mathchoice
{\vcenter{\hbox{\huge A}}}
{\vcenter{\hbox{\Large A}}}{\mathrm{A}}{\mathrm{A}}}\displaylimits}


In this way the "A" will be as large as the \sum symbol.

-

Use the \DeclareMathOperator* command provided by the amsmath package. Example:

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\Aop}{A}
\begin{document}
$\Aop^a_b$
\end{document}

-

Use \mathop to turn A into a "math operator", and then use \limits to do sum-style limits:

 $$\mathop{A}\limits_{e=1}^{m}$$


Do you really want A, or do you want \bigwedge?

-
\documentclass{article}
\usepackage{amsmath}
\def\Aop{\operatornamewithlimits{%
\mathchoice{\vcenter{\hbox{\huge A}}}
{\vcenter{\hbox{\Large A}}}
{\mathrm{A}}
{\mathrm{A}}}}
\begin{document}

$\Aop^a_b \sum_a^b$

$\Aop^a_b \sum_a^b$

\end{document}


-