0

I am trying to enter 3 different equations in one line without excessive space in between the equations. I tried the following:

\begin{equation}
C_1(h) = h^2 + 3h + 3 

C_2(h) = h^2 + 3h + 3 

C_3(h) = x^2 + e^{-\frac{1}{{(100(h-1)+0.001)}^2}}
\end{equation}

which results in: enter image description here

Q1: From the output, I want C_2 and C_3 to be centered just like the $C_1$.

Q2: I want equations for C_1, C_2, and C_3 to be labeled with different numbers (1), (2), and (3).

How can I do this?

Thank you,

0
1

With align:

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
C_1(h) &= h^2 + 3h + 3 \\
C_2(h) &= h^2 + 3h + 3 \\
C_3(h) &= x^2 + e^{-\frac{1}{{(100(h-1)+0.001)}^2}}
\end{align}
\end{document}
2
  • Thank you very much for your answer.
    – jschnieder
    Dec 18 '20 at 21:55
  • You can add label if later you want to refer to them, e.g., C_1(h) &= h^2 + 3h + 3 \label{C1} \\ and later "See (\ref{C1})".
    – TrungDung
    Dec 22 '20 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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