I am new in asymptote. I tried a code from AoPS. But it is not giving desired output. I am not getting any figure in the output. The code is
\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{asymptote}
\begin{document}
Hello.
I like to make pics with Asymptote like this one:
\begin{figure}[h]
\begin{asy}
import graph;
size(1inch);
filldraw(circle((0,0),1),yellow,black);
fill(circle((-.3,.4),.1),black);
fill(circle((.3,.4),.1),black);
draw(arc((0,0),.5,-140,-40));
\end{asy}
\end{figure}
\par It makes me happy,
since I can still type my normal LaTeX stuff around it:
\(\int_0^{\pi}{\sin{x}}\,dx=2\)
\end{document}
The output which I am getting is

pdflatex test.texasy test-1.asypdflatex test.tex– Akira Kakuto Mar 22 '20 at 04:19asyin the middle. For general reader coming across this question, refer to pdftex - Using Asymptote with pdfLaTeX - TeX - LaTeX Stack Exchange for instruction to use Asymptote. – user202729 Nov 19 '23 at 01:52