1 | initial version |
You can add the <p>
or <br>
tags to the html
command to get the spacing you want.
var('x')
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))
@interact
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))
html('<p>$p(x)\;=\;%s$</p>'%latex(ft))
show(dot + p + pt, ymin = -5, ymax = 5)