1

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*

3
  • 2
    See also Why doesn't maths render as maths? and definitely look at Why is \[ … \] preferable to $$? Commented Jan 24, 2018 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
    Commented Jan 24, 2018 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
    Commented Jan 24, 2018 at 22:39

2 Answers 2

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.

0
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

1
  • 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
    Commented Jan 24, 2018 at 22:30

Not the answer you're looking for? Browse other questions tagged .