I want to write the following equation:
For that I wrote a code:
\RequirePackage{fix-cm}
\documentclass[twocolumn]{svjour3}
%
\smartqed % flush right qed marks, e.g. at end of proof
%
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage[caption=false,font=footnotesize]{subfig}
\usepackage{mathtools}
\usepackage{nccmath}
\usepackage{booktabs}
\usepackage{float}
\usepackage{multirow}
\usepackage{makecell}
\usepackage[caption=false,font=footnotesize]{subfig}
\usepackage{varwidth}
\usepackage{placeins}
\usepackage{textcomp}
\usepackage{natbib}
\setcitestyle{aysep={}}
\bibliographystyle{spbasic}
\begin{document}
\begin{align}
w_{i} = \Bigg{1;\hspace{0.25cm} if\hspace{0.25cm} 0.25N \leq i \leq 0.75N \
0.5;\hspace{0.25cm} otherwise\
\end{align}
\end{document}


casesenvironment. (`\documentclass{article} \usepackage{amsmath} \begin{document} [w_{i}=\begin{cases} 1, & \text{if } 0.25N \leq i \leq 0.75N\ 0.5, & \text{otherwise}\ \end{cases} ] \end{document}
` should get you started.
– leandriis May 23 '21 at 10:37