Representación interactiva de funcións $y=f(x)$

{{{id=0| #auto %hide var('x') @interact def example(f=sin(1/x), rango_x='(-2*pi, 2*pi)'): xmin, xmax = sage_eval(rango_x); P = plot(f, (x, xmin, xmax)) html('

Gráfica de $f(x) = %s$

'%latex(f)) show(P) ///
f 
rango_x 
}}} {{{id=2| /// }}}