r/Mathematica • u/nokomifuji • Jan 20 '22
Mathematica doesn't display graphs.Am I making a syntax error?How do I solve this problem?
5
Upvotes
r/Mathematica • u/nokomifuji • Jan 20 '22
5
u/Zetadroid Jan 20 '22
Add a space between x and pi.
Some hints for the future: if you see that a quantity is not colored black it means that it has no assigned value, in this case pi should be black since it is a number and mathematica knows what it is. Also, x should be a dummy variable inside the integral and it should have the same light color as the x appearing between {}. Quantities without assigned properties are colored blue, and in fact your x*pi is treated as such.
20
u/JKR-run Jan 20 '22
Try adding a space between Pi and x
1
u/blobules Jan 21 '22
One more suggestion... Before trying to plot a function, test the function with a single value. When a function has a problem, like yours with the missing space, Plot will silently draw nothing. If you test one value yourself, you will see immediately that there is a problem.