1 | initial version |
Your code should be:
sage: html.table([("A","B","C","D"), (k,j,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2j)/10),0,5,tol=0.0000000003, maxfun=500)[0] ,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2j)/10),0,5,tol=0.0000000003, maxfun=500)[1]) for k in [1..2] for j in [1..2] ], header=True)
(note I deleted two square brackets after the header)
In the next version of Sage, it could be done like this:
sage: html.table([(k,j,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2j)/10),0,5,tol=0.0000000003, maxfun=500)[0] ,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2j)/10),0,5,tol=0.0000000003, maxfun=500)[1]) for k in [1..2] for j in [1..2] ], header=("A","B","C","D"))