Syntax question regarding function plotting in Mathematica.

2k Views Asked by At

Y = (Sin[2 [Pi]t]) (1 + (1/5) Sin[6 [Pi]t] + (1/10) Sin[8 [Pi]t])

I'm trying to plot this function in Mathematica, however when I run Plot[Y, {t, -15, 15}] nothing will show up on the graph.

I think the problem is I'm entering the syntax wrong for all the trig functions?

Sorry I'm new to Mathematica. Thank you for any help! Joe

1

There are 1 best solutions below

5
On BEST ANSWER

Remove the brackets from around $\pi$ and use parentheses instead (or the times operator *).

So, like this:

In[1]:= Y = (Sin[2 (Pi)t]) (1 + (1/5) Sin[6 (Pi)t] + (1/10) Sin[8 (Pi)t]);

In[2]:= Plot[Y, {t, -15, 15}]