% arara: pdflatex
% arara: asymptote: { engine: pdflatex, format: pdf, files: [ test-1.asy ] }
% arara: pdflatex
\documentclass{article}
\usepackage[inline]{asymptote}
\begin{document}
\begin{asy}
import graph;
size(6cm);
draw((-1,0) -- (-0.5,1) -- (0.5,1) -- (1,0) -- cycle);
dot((-1,0),green);
dot((+1,0),green);
dot((-0.5,1),blue);
dot((+0.5,1),blue);
real f(real x) {return 0.1*cos(2*pi*10*x)*cos(2*pi*1*x) +3/8;}
path g = graph(f,-3/4,3/4,n=1000, join=operator --);
draw(g, gray);
label("Hello world!", (0,0.1));