Can someone help me, I want to enumerate my mathematical expressions that I wrote inside $$ ... $$.
$$y=f( \sum_{i=1}^{N} w_ix_i+w_0)$$
I used \align but it doesn't work, I even used \begin{equation}
Please help
Can someone help me, I want to enumerate my mathematical expressions that I wrote inside $$ ... $$.
$$y=f( \sum_{i=1}^{N} w_ix_i+w_0)$$
I used \align but it doesn't work, I even used \begin{equation}
Please help
Like this?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
y& =f\biggl( \sum_{i=1}^{N} w_ix_i+w_0\biggr), \\
U&=i
\end{align}
\end{document}
P.S.: avoid $$ ... $$; use \[ ... \] or \begin{equation} ... \end{equation} instead.
It's not clear what you are looking for. If you are actually looking for a Plain TeX solution (which the $$...$$ syntax suggests), use \eqalignno. The third column holds the number.
$$\eqalignno{
y &= f\biggl( \sum_{i=1}^{N} w_ix_i+w_0 \biggr) & (1)
}$$
\bye
You could also use amstex.
\input amstex
\TagsOnRight
$$\align
y &= f\biggl( \sum_{i=1}^{N} w_ix_i+w_0 \biggr) \tag{1}
\endalign$$
\bye
The output is similar.
\[ … \]preferable to$$? – Henri Menke Jun 19 '17 at 01:26$$ ... $$group? Are you using PlainTeX or LaTeX? – Mico Jun 19 '17 at 01:56