As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

4 votes
Accepted

Adding optional argument (as exponent) to custom math expressions

You can use a flag value to represent “no value”. In this case, since it's for typesetting, it's pretty safe to use an empty default and test for that: \newcommand\bigO[2][]% {\mathcal{O}(#2\if\...
Phelype Oleinik's user avatar

Top 50 recent answers are included