0

In the same way that \min and \max work, is there a version for "ave" meaning the average?

Thanks.

  • 4
    Welcome to TeX.SE! DO you look for command \ave? This is not standard way to write average (mostly people use line over expression). However, you can define it as \DeclareMathOperator{\ave}{ave}. For this you need to load amsmath package in document preamble: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\ave}{ave} \begin{document} $\ave{X}$ \end{document} – Zarko Feb 9 at 11:28
  • 1
    @Zarko - Please make your comment into a standalone answer. – Mico Feb 9 at 11:54
  • @Mico, done. Thanks for the encouragement! – Zarko Feb 9 at 12:02
3

Let me spell-out my comment to an answer:

  • ave is not standard way to write average (mostly people use line over expression).
  • however, you can define it as DeclareMathOperator{\ave}{ave} (for this you need to load amsmath package in document preamble):
\documentclass{article} 
\usepackage{amsmath} 
\DeclareMathOperator{\ave}{ave} 

\begin{document} 
$\ave{X(t)}$ (\verb+\ave{X(t)}+) or $\ave X(t)$ (\verb+\ave X(t)+) but people usually write $\overline{X(t)}$
\end{document}

enter image description here

  • Thank you, sadly I do need "ave" and not just the bar! – Janitt Feb 9 at 14:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.