/* -*-ePiX-*- */ #include "epix.h" using namespace ePiX; P f(double t) { return P(t, pow(recip(t), 2)); } int main() { picture(P(-3, -2.5), P(3, 3), "2.4 x 2.2in"); begin(); bold(); line(P(xmin(), 0), P(xmax(), 0)); line(P(0, ymin()), P(0, ymax())); set_crop(); plot(f, xmin(), -0.1, 60); plot(f, 0.1, xmax(), 60); label(P(1,-1), "$y = 1/x^{2}$"); tikz_format(); end(); }