Math & ScienceHow write a long equation in a \sqrt ??

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
HenriqueJH99
Posts: 2
Joined: Wed Nov 04, 2020 1:56 pm

How write a long equation in a \sqrt ??

Post by HenriqueJH99 »

How I make somethin like that?
Image
I tried

Code: Select all

\begin{equation}
    \label{IiRMSModo1}
    I_{i_{RMS}} = \sqrt{I_{L_{mMed}}(D+\frac{1-D}{N+1})+N\frac{I_{L_{mMed}}I_{i_{Med}(1-D)}{N+ND+2}}+[\frac{NI_{i_{Med}}}{2(N+ND+2)\sqrt{L_kC_{eq}}}]^2T_S}
\end{equation}
this generate that:

Image

and

Code: Select all

\setlength{\arraycolsep}{0.0em}
\begin{eqnarray}
I_{i_{RMS}}&{}={}&\sqrt{I_{L_{mMed}}(D+\frac{1-D}{N+1})\nonumber\\
+N\frac{I_{L_{mMed}}I_{i_{Med}}(1-D)}{N+ND+2}\nonumber\\
+[\frac{NI_{i_{Med}}(1-D)}{2(N+ND+2\sqrt{L_kC_{eq}})}]^2T_S}\nonumber\\
\end{eqnarray}
\setlength{\arraycolsep}{5pt}
With the second code I get this error message :

Missing } inserted.

<inserted text>
}
l.670 +
N\frac{I_{L_{mMed}}I_{i_{Med}}(1-D)}{N+ND+2}\nonumber\\
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.

! Incomplete \ifcase; all text was ignored after line 672.
<inserted text>
\fi
l.672 \end
{eqnarray}
A forbidden control sequence occurred in skipped text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.


Anyone can help me? I'm starting to use Latex.
Last edited by HenriqueJH99 on Wed Nov 04, 2020 4:27 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
HenriqueJH99
Posts: 2
Joined: Wed Nov 04, 2020 1:56 pm

How write a long equation in a \sqrt ??

Post by HenriqueJH99 »

Jainrus28
Posts: 1
Joined: Tue Jan 23, 2024 3:51 pm

How write a long equation in a \sqrt ??

Post by Jainrus28 »

Hello. I found an answer to your question. You can use \left.\begin{cases} and \end{cases}\right\} to make 2 braces with 2 lines aligned to the left.

Code: Select all

\documentclass[11pt]{article}

\usepackage{mathptmx}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}

\begin{document}

\[ I_{i_{RMS}} = \sqrt{\frac{1}{T_s}
    \left.\begin{cases}
        I^2_{L_{m_{Med}}} T_s \left(D + \frac{1 \ - \ D}{N \ + \ 1}\right) - N\sqrt{L_k C_{eq}} I_{L_{Med}} I_{L_{k_{Pico}}} \left[\cos\left(\frac{DT_s}{\sqrt{L_k C_{eq}}}\right) - 1\right] \\
        + \ N^2 I^2_{L_{k_{Pico}}} \left[DT_s - \frac{\sqrt{L_k C_{eq}}}{2} sen \left(\frac{2DT_s}{\sqrt{L_k C_{eq}}}\right)\right]
    \end{cases}\right\}
} \]

\end{document}
Here is a link to the final product made in overleaf

https://www.overleaf.com/9756197671vgczxpgntqgz#b1941b
Post Reply