I think you mistyped the function in your code. I can reproduce your image with Cos[10 * x]: http://i.stack.imgur.com/uu6aM.png -- Try adding the option PlotPoints -> {25, 75}
– Michael E2Aug 23 '16 at 11:57
@Sascha: really? My friends 10.4 version on windows reproduces my error. And yes, problem persists on a new kernel (unfortunately). Even on a different machine I have (which runs version 10.0 I think).
– ZorawarAug 23 '16 at 13:15
@MichaelE2: Ah thanks. They seem to smooth it out. PlotPoints seems less intensive than MaxRecursion. And yes I did have a typo. Thanks! I should have had the range of x to be [0,20pi] but effectively the same thing. Thanks!
– ZorawarAug 23 '16 at 13:17
@vito: Thanks! I get a smooth plot as I expect with those options added. Thanks again!
– ZorawarAug 23 '16 at 13:20
Yes, MaxRecursion helps with local smoothing, but when it's needed everywhere, it can be expensive. OTOH, when it's needed in a small area, it will be more efficient than increasing PlotPoints.
– Michael E2Aug 23 '16 at 13:35
@MichaelE2: The documentation on MaxRecursion especially is a little sparse. If you'd like to flesh out what you said here into an answer it would be interesting to me and might be useful for others... (if you have the time :)
– ZorawarAug 23 '16 at 13:45
PlotPointsandMaxRecursion– Michael E2 Aug 23 '16 at 11:40PlotPoints -> 100orMaxRecursion -> 10– vito Aug 23 '16 at 11:41Cos[10 * x]: http://i.stack.imgur.com/uu6aM.png -- Try adding the optionPlotPoints -> {25, 75}– Michael E2 Aug 23 '16 at 11:57PlotPointsseems less intensive thanMaxRecursion. And yes I did have a typo. Thanks! I should have had the range of x to be [0,20pi] but effectively the same thing. Thanks! – Zorawar Aug 23 '16 at 13:17MaxRecursionhelps with local smoothing, but when it's needed everywhere, it can be expensive. OTOH, when it's needed in a small area, it will be more efficient than increasingPlotPoints. – Michael E2 Aug 23 '16 at 13:35MaxRecursionespecially is a little sparse. If you'd like to flesh out what you said here into an answer it would be interesting to me and might be useful for others... (if you have the time :) – Zorawar Aug 23 '16 at 13:45