[Math] Proper representation for a conditional function

functions

I have a function shown in below image. But the 2nd line (the parenthesis) has something that I don't know how to formulate properly.

The equation (I was not allowed to post images directly)

1- Does this count as a piecewise function?

2- Would someone please help me to create a proper presentation?

Thanks.

Best Answer

I wouldn't try to write a one-line definition of $M_i$. That's bound to end up confusing.

Instead I might first define $d(R)$ to be the least index $i$ for which $R_i=0$, or $0$ if none of the $R_i$ are zero. Then I would write, e.g.,

$$M_i(R) = \begin{cases}F(R_i) & d(R) = 0\\1 &d(R) = i\\0 & \textrm{otherwise.}\end{cases}$$

Related Question