Department of Computer Science

https://www.univ-soukahras.dz/en/dept/cs

Module: Initiation à la recherche

  1. Information
  2. Questions
  3. E-Learning

Writing Equations using Latex (8)

2 votes

What's the latex code for the following Equation:

Asked on 19:32, Monday 16 May 2016 By Imed BOUCHRIKA
In Initiation à la recherche


Answers (4)




Answer (1)

1 votes

\begin{equation}
z_i = \left\{
\begin{array}{r c l}
1 & if nearest(s_c,i) \in c &\\
0 & otherwise &
\end{array}
\right .
\end{equation}

Answered on 19:37, Tuesday 17 May 2016 by
In Initiation à la recherche



Answer (1)

1 votes

use ~ to enforce the spacing between text in Math mode

Answered on 07:16, Thursday 19 May 2016 by Imed BOUCHRIKA
In Initiation à la recherche



Answer (2)

0 votes

ok thinks. 

Answered on 11:45, Saturday 21 May 2016 by
In Initiation à la recherche



Answer (3)

0 votes

\begin{equation}
z_i =
\begin{cases}
1, \quad if \quad nearest{(s_c, i) \in c} \\
0 \quad otherwise
\end{cases}
\end{equation}

Answered on 23:01, Saturday 21 May 2016 by
In Initiation à la recherche



Do you have an answer ?