1

This question already has an answer here:

I can code symbols of the type $$\prod_{i=1}^{n}$$ but when it comes to: enter image description here

I cannot get the less-than-equal sign placed as shown.Can this be done easily?

EDIT: below removed as reason explained in the comments **not sure why $\prod_{i=1}^{n}$ not displaying properly while in math.stackexchange its fine*

marked as duplicate by Henri Menke, egreg, ChrisS, Mensch, Au101 Jan 24 '18 at 23:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    See also Why doesn't maths render as maths? and definitely look at Why is \[ … \] preferable to $$? – Henri Menke Jan 24 '18 at 22:24
  • @Henri Menke thanks for the resources will look through them. Its just most people in math.stackexchange write it like I showed it thats why I could not find an example to work out how to do it! – onepound Jan 24 '18 at 22:32
  • Try \prod_{p\le 7}\left(1-\frac{1}{p}\right) as a starting point. Note that this will come out different when it is displayed \[..\] vs. inline $..$. – Sandy G Jan 24 '18 at 22:39
3

If it's for in-line mathematics, you can use

$\prod\limits_{i\le 7}$,

but be aware this may slightly increase the vertical spacing with the line below.

3

Have you even tried it?

\documentclass{article}
\begin{document}
\[ \prod_{p \leq 7} \biggl( 1 - \frac{1}{p} \biggr) \]
\end{document}

enter image description here

  • okay thanks that did the trick. $ \prod_{p \leq 7} \biggl( 1 - \frac{1}{p} \biggr) $ particulary in math.stackexchange not that I need it elsewhere. – onepound Jan 24 '18 at 22:30

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