I am relatively new. I am trying to write a Recursive formula in latex. I know this popular example of recursive equation:
Code: Select all
\cfrac{1}{\sqrt{2}+
\cfrac{1}{\sqrt{2}+
\cfrac{1}{\sqrt{2}+\dotsb
}}}
\ddots
and write the last fraction, so, I need to vertically align equation. I don't know how to do this. I searched a lot and looked everywhere but found nothing. I believe there should be a way for this in Latex. Please help me.Any idea or help is appreciated in advance.