Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can add the <p> or <br> tags to the html command to get the spacing you want.

x0  = 0
f   = cos(x)
p   = plot(f,-10*pi,10*pi, thickness=2)
dot = point((x0,f(x=x0)),pointsize=80,rgbcolor=(1,0,0))
def _(order=(1..200)):
  ft = f.taylor(x,x0,order)
  pt = plot(ft,-10*pi,10*pi, color='green', thickness=2)
  html('$f(x)\;=\;%s$ <br>'%latex(f))
  show(dot + p + pt, ymin = -5, ymax = 5)