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*

  • 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

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.

| improve this answer | |

Have you even tried it?

\[ \prod_{p \leq 7} \biggl( 1 - \frac{1}{p} \biggr) \]

enter image description here

| improve this answer | |
  • 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.