Math & Scienceamsmath | Aligned Equations causing Error

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
thaelorin
Posts: 3
Joined: Tue May 08, 2012 1:45 am

amsmath | Aligned Equations causing Error

Post by thaelorin »

Hey, was trying to put fractions into fractions, and was running it through the compiler, but every time it tells me that the paragraph ended before align was complete.

Code: Select all

\item 
Determine whether the series is absolutely convergent.
\[\sum_{n=1}^\infty\frac{(-3)^n}{n^3}\]
\begin{align}
\lim_{n\rightarrow\infty} \left|\frac{a_{(n+1)}}{a_n}\right|		&=\left| \frac{\frac{(-3)^{n+1}}{(n+1)^3}}{\frac{(-3)^n}{n^3} } \right| 

\end{align}
Any advice on how I'm screwing this up? Cannot seem to figure out my mistake.
Last edited by localghost on Tue May 08, 2012 10:26 am, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

amsmath | Aligned Equations causing Error

Post by nlct »

The blank line before \end{align} indicates a paragraph break which isn't permitted in that environment. Remove or comment out the blank line:

Code: Select all

\begin{align}
\lim_{n\rightarrow\infty} \left|\frac{a_{(n+1)}}{a_n}\right|            &=\left| \frac{\frac{(-3)^{n+1}}{(n+1)^3}}{\frac{(-3)^n}{n^3} } \right|
%
\end{align}
Regards
Nicola Talbot
thaelorin
Posts: 3
Joined: Tue May 08, 2012 1:45 am

Re: amsmath | Aligned Equations causing Error

Post by thaelorin »

Thanks. I kinda knew that. It was a silly mistake that I couldn't see. I guess thats just what comes from working with a new language.
Post Reply