On 6/2/12 9:28 AM, ObsessiveMathsFreak wrote:
> I have used the following sage code to create a nice table in the notebook
> ---------------------
> var('n k')
> N=5
> K=8
> H=[["$k$"]+["$L^{k}_{"+latex(n)+"}(x)$" for n in [0..(N)]]]
> Pknz_draw= [ [k]+[ (0*x+ gen_laguerre(n,k,x)).expand() for n in [0..N]]
> for k in [0..K] ]
> html.table(H+Pknz_draw,header=True)
Note that you can now give the header argument the actual header list:
H=["$k$"]+["$L^{k}_{"+latex(n)+"}(x)$" for n in [0..(N)]]
html.table(Pknz_draw, header=H)
> How can I save this table and use it in a seperate html file?
You could "edit" the worksheet and copy the html from the output area of
the cell.
Thanks,
Jason