Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want insert this math equation into my paper:

Math rockz!

However, the part in the brackets make me confused. I google math equation in LaTeX but find no relavent information. This is what I alreadly have now:

$MR(e) = \Pi_{(R_{i}.ID, R_{j}.ID)}()$

Could you please help me to fill in the brackets.

share|improve this question
1  
Please try to specify your problem (and edit the title accordingly). Are you struggling with any of the symbols? Then have a look at tex.stackexchange.com/questions/14/how-to-look-up-a-symbol. Is it the putting text on top of other text? Then specify that, please. –  doncherry Jan 17 '12 at 16:46
add comment

1 Answer 1

up vote 8 down vote accepted

First, never use $\Pi$ when you obviously mean $\prod$. Second, I guess dots here between $R_i$ and $ID$ should be centered.

Here is what I got:

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\Dist}{Dist}
\begin{document}
\pagestyle{empty}
\begin{displaymath}
  MR(e) = \prod_{(R_i\cdot ID, R_j\cdot ID)}
  \underset{\Dist_{sp}(r_i,r_j)\le\delta}{(R_i\bowtie R_j)} 
\end{displaymath}
\end{document}

enter image description here

share|improve this answer
    
I am appreciate for your help. One more question, do you know how to add this into a algorithm after \state(I use algorithms package). I know how to insert use $ $ method, but don't know how to use \begin{dispalymath} \end{dispalymath} –  user1069771 Jan 17 '12 at 16:54
    
Use this: $MR(e) = \prod_{(R_i\cdot ID, R_j\cdot ID)} \underset{\Dist_{sp}(r_i,r_j)\le\delta}{(R_i\bowtie R_j)}$. Note that the expression under \prod symbol becomes inline rather than under it: this is because you move from display math to inline math. –  Boris Jan 17 '12 at 16:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.