I tried to plot this function and export it as .eps file but the plot does not look smooth at all

I'm absolute beginner at this tool, Is it a number of samples problem or what?
|
You have to increase the sampling rate, which is in the variable
|
|||||||||||||||
|
|
This plot needs quite a large number of samples to be represented correctly. I know you're asking for a way to do this in Asymptote, but I'd like to show a way to generate the plot directly within LaTeX using the PGFPlots package:
|
|||||
|
|
|
Apart from the Asymptote specific things (sampling resolution), the problem is heavily influenced by the |
|||
|
|
operator ..as the last parameter to thegraphcommand. To set the sample size of a particular graph to--say--50, add the parametern=50to a particulargraphcommand. – Charles Staats Mar 8 at 13:00draw(graph(g, 0, 180, n=500, join=operator ..)– mafp Mar 8 at 14:20