1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import graph; usepackage("palatino"); usepackage("mathpazo"); size(7inches,3inches); scale(true); real f(real x) { return sin(x); } pair F(real x) { return (x, f(x)); } xaxis("$x$"); yaxis("$y$"); draw(graph(f,-10.,10,operator ..), red);