This HTML formats correctly in Sage, but not so in Sage Cloud
Hello,
I am trying to use this code in sage math cloud, but down where it says html(...), the lines f(x) = ... and p(x) = ... are on the same line, and I would like them on different lines.
var('x')
x0 = 0
f = cos(x)
p = plot(f,-10pi,10pi, 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,-10pi,10pi, color='green', thickness=2)
html('$f(x)\;=\;%s$'%latex(f))
html('$p(x)\;=\;%s$'%latex(ft))
show(dot + p + pt, ymin = -5, ymax = 5)
Ideas?
Quick hack: put
print ' 'after each of your html lines.