sam said:

This is ambiguous, it could mean:

\(\displaystyle

(1)\ \ \frac{1+\cos(y)}{1+\sec(y)}

\)

\(\displaystyle

(2)\ \ 1+\frac{\cos(y)}{1+\sec(y)}

\)

\(\displaystyle

(3)\ \ 1+\frac{\cos(y)}{1}+\sec(y)

\) (not too likely)

Now the first of these seems the most likely, but you are leaving us guessing.

If you are writing this using plain ASCII then write it as:

(1+cos(y))/(1+sec(y))

The rule is: when something is ambiguous when written in plain ASCII then

add brackets until only the intended meaning is possible.

RonL