I have a problem creating an exponential function in equation mode in Latex. I would like to have this exponential function: exponential^((y^2)/4). Does anyone know have to do that? David
2 Answers
In the equation
environment, you shouldn't use the $
sign(*):
\begin{equation} e^{y^2/4} \end{equation}
or
\begin{equation} e^{\frac{1}{4} y^2} \end{equation}
should work.
(*) Except in such cases:
\begin{equation} x=0 \text{ if $x$ and $y$ are nice people} \end{equation}
-
6
-
1
-
2@MaxNoe Upright e is a convention used in certain fields, but certainly not all. As pure mathematician I don't set it upright. Nor would I use
\operatorname{e}
, however I do use\exp(...)
inline and on large expressions. Commented Jan 31, 2015 at 14:46 -
Thank you for your help. In my case, I think all the e-expressions you gave me works perfectly well. Thanks!– DavidCommented Feb 1, 2015 at 8:11
-
@MaxNoe why do you say so? All constants should be upright? For example, wikipedia does not use that convention for the exponential function page.– cserpellCommented May 26, 2022 at 0:53
\begin{equation}
e^{\frac{y^2}{4}}
\end{equation}
-
2
^
has basel
and exponent(
and the second^
has base/
and exponent2
I would guess that is not what you intend, but I can not guess what function you did intend$
is for starting math mode, so you should not use it if you are already in math mode inequation